Skip to content

Commit

Permalink
Merge pull request #2878 from NickCao/main
Browse files Browse the repository at this point in the history
fakevim: fix build with qt 6.6.0
  • Loading branch information
pbek authored Oct 12, 2023
2 parents d199468 + 3116af3 commit 369b888
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions src/libraries/fakevim/fakevim/fakevimhandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1177,14 +1177,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 @@ -2538,6 +2530,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 369b888

Please sign in to comment.