Fixes: fix signature of FakeVimPlugin::removeHandler

Details: QObject * -> QWidget *
This commit is contained in:
hjk
2009-01-05 13:56:31 +01:00
parent 6848155c7d
commit d54e8d95d4
2 changed files with 6 additions and 6 deletions

View File

@@ -165,14 +165,14 @@ void FakeVimPlugin::installHandler()
//QMainWindow mw; //QMainWindow mw;
connect(m_handler, SIGNAL(commandBufferChanged(QString)), connect(m_handler, SIGNAL(commandBufferChanged(QString)),
this, SLOT(showCommandBuffer(QString))); this, SLOT(showCommandBuffer(QString)));
connect(m_handler, SIGNAL(quitRequested(QObject *)), connect(m_handler, SIGNAL(quitRequested(QWidget *)),
this, SLOT(removeHandler(QObject *))); this, SLOT(removeHandler(QWidget *)));
} }
void FakeVimPlugin::removeHandler(QObject *ob) void FakeVimPlugin::removeHandler(QWidget *widget)
{ {
ob->removeEventFilter(m_handler); widget->removeEventFilter(m_handler);
QPlainTextEdit *plainTextEdit = qobject_cast<QPlainTextEdit *>(ob); QPlainTextEdit *plainTextEdit = qobject_cast<QPlainTextEdit *>(widget);
if (!plainTextEdit) if (!plainTextEdit)
return; return;
plainTextEdit->setCursorWidth(m_savedCursorWidth); plainTextEdit->setCursorWidth(m_savedCursorWidth);

View File

@@ -67,7 +67,7 @@ private:
private slots: private slots:
void installHandler(); void installHandler();
void removeHandler(QObject *ob); void removeHandler(QWidget *widget);
void showCommandBuffer(const QString &contents); void showCommandBuffer(const QString &contents);
private: private: