[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdeplasma-addons/applets/dict
From: Aaron J. Seigo <aseigo () kde ! org>
Date: 2010-05-08 15:57:39
Message-ID: 20100508160203.CBE9FAC8B0 () svn ! kde ! org
[Download RAW message or body]
SVN commit 1124286 by aseigo:
don't show tooltips in vert/horiz form factors, patch by David Benjamin
CCMAIL:davidben@mit.edu
REVIEW:3923
BUG:232763
M +12 -2 dict.cpp
--- trunk/KDE/kdeplasma-addons/applets/dict/dict.cpp #1124285:1124286
@@ -73,14 +73,24 @@
setHasConfigurationInterface(engineChoice);
// tooltip stuff
- Plasma::ToolTipContent toolTipData = Plasma::ToolTipContent();
+ Plasma::ToolTipContent toolTipData;
toolTipData.setAutohide(true);
toolTipData.setMainText(name());
toolTipData.setImage(KIcon("accessories-dictionary"));
+ Plasma::ToolTipManager::self()->setContent(this, toolTipData);
+
+ // Only register the tooltip in panels
+ switch (formFactor()) {
+ case Plasma::Horizontal:
+ case Plasma::Vertical:
Plasma::ToolTipManager::self()->registerWidget(this);
- Plasma::ToolTipManager::self()->setContent(this, toolTipData);
+ break;
+ default:
+ Plasma::ToolTipManager::self()->unregisterWidget(this);
+ break;
}
+}
DictApplet::~DictApplet()
{
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic