diff options
| author | Peter Penz <[email protected]> | 2008-10-22 06:11:59 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2008-10-22 06:11:59 +0000 |
| commit | cb928888f7e8b0450fc8c4cf0dd4f5ea3c46eb42 (patch) | |
| tree | 11f24e2eddef75394832fed82415aa6ad1b004f8 /src/tooltipmanager.cpp | |
| parent | 4516323b9b63893792395ff065fb09239828add9 (diff) | |
* don't show a tooltip if a rubberband selection is done
* hide a tooltip if a drag operation has been started
BUG: 173148
CCMAIL: [email protected]
svn path=/trunk/KDE/kdebase/apps/; revision=874641
Diffstat (limited to 'src/tooltipmanager.cpp')
| -rw-r--r-- | src/tooltipmanager.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/tooltipmanager.cpp b/src/tooltipmanager.cpp index ad1dbe5d3..3caff4ae1 100644 --- a/src/tooltipmanager.cpp +++ b/src/tooltipmanager.cpp @@ -182,6 +182,12 @@ void ToolTipManager::prepareToolTip() void ToolTipManager::showToolTip(KToolTipItem* tip) { + if (QApplication::mouseButtons() & Qt::LeftButton) { + delete tip; + tip = 0; + return; + } + KStyleOptionToolTip option; // TODO: get option content from KToolTip or add KToolTip::sizeHint() method option.direction = QApplication::layoutDirection(); |
