diff options
| author | Peter Penz <[email protected]> | 2009-01-19 08:57:35 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2009-01-19 08:57:35 +0000 |
| commit | d522c6701d4eedd9021f0f431c6dc56f1ada04ed (patch) | |
| tree | 162c082133ebfa663545fa82eb6f4c6eaefd3ba3 /src/dolphincolumnwidget.cpp | |
| parent | 920307602bee17c6c3225db58ecdefd48a380ff0 (diff) | |
hide the tooltips when a key is pressed (thanks to Shaun Reich for the initial patch)
CCMAIL: [email protected]
svn path=/trunk/KDE/kdebase/apps/; revision=913383
Diffstat (limited to 'src/dolphincolumnwidget.cpp')
| -rw-r--r-- | src/dolphincolumnwidget.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/dolphincolumnwidget.cpp b/src/dolphincolumnwidget.cpp index b86cd7269..af6246809 100644 --- a/src/dolphincolumnwidget.cpp +++ b/src/dolphincolumnwidget.cpp @@ -64,6 +64,7 @@ DolphinColumnWidget::DolphinColumnWidget(QWidget* parent, m_dolphinModel(0), m_proxyModel(0), m_previewGenerator(0), + m_toolTipManager(0), m_dropRect() { setMouseTracking(true); @@ -140,7 +141,7 @@ DolphinColumnWidget::DolphinColumnWidget(QWidget* parent, m_previewGenerator->setPreviewShown(m_view->m_controller->dolphinView()->showPreview()); if (DolphinSettings::instance().generalSettings()->showToolTips()) { - new ToolTipManager(this, m_proxyModel); + m_toolTipManager = new ToolTipManager(this, m_proxyModel); } m_dirLister->openUrl(url, KDirLister::NoFlags); @@ -390,6 +391,9 @@ void DolphinColumnWidget::keyPressEvent(QKeyEvent* event) QListView::keyPressEvent(event); requestActivation(); m_view->m_controller->handleKeyPressEvent(event); + if (m_toolTipManager != 0) { + m_toolTipManager->hideTip(); + } } void DolphinColumnWidget::contextMenuEvent(QContextMenuEvent* event) |
