diff options
author | hjk <qthjk@ovi.com> | 2012-01-26 01:18:02 +0100 |
---|---|---|
committer | Eike Ziller <eike.ziller@nokia.com> | 2012-01-27 14:52:24 +0100 |
commit | 2df4cb21fedb279d003006e30db145957edcb6b7 (patch) | |
tree | 60f0b4c32ace57b01c2a1ec7ee56cdc336f824da /src/plugins/locator/locatorwidget.cpp | |
parent | 81ca5298c30a283c2b59426faadc64d8f44164e4 (diff) |
Core::ModeManager: make some functions static
Change-Id: I5c1275ba3f596d8911fd2e4404181bf57b58f494
Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
Diffstat (limited to 'src/plugins/locator/locatorwidget.cpp')
-rw-r--r-- | src/plugins/locator/locatorwidget.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/plugins/locator/locatorwidget.cpp b/src/plugins/locator/locatorwidget.cpp index ebff87b81f..179b9a40be 100644 --- a/src/plugins/locator/locatorwidget.cpp +++ b/src/plugins/locator/locatorwidget.cpp @@ -469,7 +469,7 @@ bool LocatorWidget::eventFilter(QObject *obj, QEvent *event) case Qt::Key_Escape: if (!ke->modifiers()) { event->accept(); - QTimer::singleShot(0, Core::ModeManager::instance(), SLOT(setFocusToCurrentMode())); + QTimer::singleShot(0, this, SLOT(setFocusToCurrentMode())); return true; } case Qt::Key_Alt: @@ -485,6 +485,11 @@ bool LocatorWidget::eventFilter(QObject *obj, QEvent *event) return QWidget::eventFilter(obj, event); } +void LocatorWidget::setFocusToCurrentMode() +{ + Core::ModeManager::setFocusToCurrentMode(); +} + void LocatorWidget::showCompletionList() { const int border = m_completionList->frameWidth(); |