forked from qt-creator/qt-creator
Merge branch '0.9.2-rc1' of git@scm.dev.nokia.troll.no:creator/mainline into 0.9.2-rc1
This commit is contained in:
@@ -180,7 +180,16 @@ bool FakeVimPluginPrivate::initialize()
|
||||
|
||||
void FakeVimPluginPrivate::installHandler(Core::IEditor *editor)
|
||||
{
|
||||
if (!editor)
|
||||
return;
|
||||
|
||||
QWidget *widget = editor->widget();
|
||||
if (!widget)
|
||||
return;
|
||||
|
||||
// we can only handle QTextEdit and QPlainTextEdit
|
||||
if (!qobject_cast<QTextEdit *>(widget) && !qobject_cast<QPlainTextEdit *>(widget))
|
||||
return;
|
||||
|
||||
FakeVimHandler *handler = new FakeVimHandler(widget, widget);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user