Skip to content
Snippets Groups Projects
Commit d54e8d95 authored by hjk's avatar hjk
Browse files

Fixes: fix signature of FakeVimPlugin::removeHandler

Details: QObject * -> QWidget *
parent 6848155c
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
......@@ -67,7 +67,7 @@ private:
private slots:
void installHandler();
void removeHandler(QObject *ob);
void removeHandler(QWidget *widget);
void showCommandBuffer(const QString &contents);
private:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment