Skip to content

Commit

Permalink
FakeVim: Fix build with Qt 6.6
Browse files Browse the repository at this point in the history
The connect doesn't work with incomplete type FakeVimHandler::Private
anymore, so move the code.

Change-Id: I686cd19a985f965cebf7d0a927cff4dc80ae746d
Reviewed-by: hjk <hjk@qt.io>
  • Loading branch information
e4z9 committed May 8, 2023
1 parent cd73f8c commit e56e3b6
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions src/plugins/fakevim/fakevimhandler.cpp
Expand Up @@ -1017,14 +1017,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 @@ -2384,6 +2376,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 e56e3b6

Please sign in to comment.