Skip to content

Commit

Permalink
itemfakevim: fix build with qt 6.6.0 (#2508)
Browse files Browse the repository at this point in the history
  • Loading branch information
NickCao authored Oct 17, 2023
1 parent 340aaaa commit 19e9dd1
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions plugins/itemfakevim/fakevim/fakevimhandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1057,14 +1057,6 @@ inline QString msgMarkNotSet(const QString &text)
return Tr::tr("Mark \"%1\" not set.").arg(text);
}

static void initSingleShotTimer(QTimer *timer, int interval, FakeVimHandler::Private *receiver,
void (FakeVimHandler::Private::*slot)())
{
timer->setSingleShot(true);
timer->setInterval(interval);
QObject::connect(timer, &QTimer::timeout, receiver, slot);
}

class Input
{
public:
Expand Down Expand Up @@ -2424,6 +2416,16 @@ class FakeVimHandler::Private : public QObject
FakeVimSettings &s = *fakeVimSettings();
};

static void initSingleShotTimer(QTimer *timer,
int interval,
FakeVimHandler::Private *receiver,
void (FakeVimHandler::Private::*slot)())
{
timer->setSingleShot(true);
timer->setInterval(interval);
QObject::connect(timer, &QTimer::timeout, receiver, slot);
}

FakeVimHandler::Private::GlobalData FakeVimHandler::Private::g;

FakeVimHandler::Private::Private(FakeVimHandler *parent, QWidget *widget)
Expand Down

0 comments on commit 19e9dd1

Please sign in to comment.