forked from qt-creator/qt-creator
fakevim: provide a means to see configuration variables
This commit is contained in:
@@ -59,6 +59,7 @@
|
||||
#include <QtCore/QPoint>
|
||||
#include <QtCore/QSettings>
|
||||
|
||||
#include <QtGui/QMessageBox>
|
||||
#include <QtGui/QPlainTextEdit>
|
||||
#include <QtGui/QTextBlock>
|
||||
#include <QtGui/QTextCursor>
|
||||
@@ -149,6 +150,8 @@ void FakeVimPlugin::installHandler()
|
||||
if (!textEditor)
|
||||
return;
|
||||
|
||||
connect(m_handler, SIGNAL(extraInformationChanged(QString)),
|
||||
this, SLOT(showExtraInformation(QString)));
|
||||
connect(m_handler, SIGNAL(commandBufferChanged(QString)),
|
||||
this, SLOT(showCommandBuffer(QString)));
|
||||
connect(m_handler, SIGNAL(quitRequested(QWidget *)),
|
||||
@@ -171,6 +174,11 @@ void FakeVimPlugin::showCommandBuffer(const QString &contents)
|
||||
tr("Quit FakeVim"), m_handler, SLOT(quit()));
|
||||
}
|
||||
|
||||
void FakeVimPlugin::showExtraInformation(const QString &text)
|
||||
{
|
||||
QMessageBox::information(0, tr("FakeVim Information"), text);
|
||||
}
|
||||
|
||||
|
||||
//#include "fakevimplugin.moc"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user