From d54e8d95d470a8c815e3638abe49e1a21d045e32 Mon Sep 17 00:00:00 2001 From: hjk <qtc-committer@nokia.com> Date: Mon, 5 Jan 2009 13:56:31 +0100 Subject: [PATCH] Fixes: fix signature of FakeVimPlugin::removeHandler Details: QObject * -> QWidget * --- src/plugins/fakevim/fakevimplugin.cpp | 10 +++++----- src/plugins/fakevim/fakevimplugin.h | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/plugins/fakevim/fakevimplugin.cpp b/src/plugins/fakevim/fakevimplugin.cpp index 72671a37c60..20b3b082a58 100644 --- a/src/plugins/fakevim/fakevimplugin.cpp +++ b/src/plugins/fakevim/fakevimplugin.cpp @@ -165,14 +165,14 @@ void FakeVimPlugin::installHandler() //QMainWindow mw; connect(m_handler, SIGNAL(commandBufferChanged(QString)), this, SLOT(showCommandBuffer(QString))); - connect(m_handler, SIGNAL(quitRequested(QObject *)), - this, SLOT(removeHandler(QObject *))); + connect(m_handler, SIGNAL(quitRequested(QWidget *)), + this, SLOT(removeHandler(QWidget *))); } -void FakeVimPlugin::removeHandler(QObject *ob) +void FakeVimPlugin::removeHandler(QWidget *widget) { - ob->removeEventFilter(m_handler); - QPlainTextEdit *plainTextEdit = qobject_cast<QPlainTextEdit *>(ob); + widget->removeEventFilter(m_handler); + QPlainTextEdit *plainTextEdit = qobject_cast<QPlainTextEdit *>(widget); if (!plainTextEdit) return; plainTextEdit->setCursorWidth(m_savedCursorWidth); diff --git a/src/plugins/fakevim/fakevimplugin.h b/src/plugins/fakevim/fakevimplugin.h index f31ad1e68e6..6561e871b00 100644 --- a/src/plugins/fakevim/fakevimplugin.h +++ b/src/plugins/fakevim/fakevimplugin.h @@ -67,7 +67,7 @@ private: private slots: void installHandler(); - void removeHandler(QObject *ob); + void removeHandler(QWidget *widget); void showCommandBuffer(const QString &contents); private: -- GitLab