┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2008-09-22 18:00:41 +0000
committerPeter Penz <[email protected]>2008-09-22 18:00:41 +0000
commitb5432d60372e2dad6d31cd4e6d28e4da5d47a7e4 (patch)
tree4c50e12cd723cce7dad54c2495480802a7b65fa0 /src
parent17bb43dea47335f4c20a84fed7255680089db745 (diff)
The else path is never reached -> removed it (thanks to Simon St James for the hint)
CCMAIL: [email protected] svn path=/trunk/KDE/kdebase/apps/; revision=863623
Diffstat (limited to 'src')
-rw-r--r--src/tooltipmanager.cpp10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/tooltipmanager.cpp b/src/tooltipmanager.cpp
index 231f4db15..ad1dbe5d3 100644
--- a/src/tooltipmanager.cpp
+++ b/src/tooltipmanager.cpp
@@ -230,14 +230,8 @@ void ToolTipManager::showToolTip(KToolTipItem* tip)
}
y = hasRoomBelow ? m_itemRect.bottom() : m_itemRect.top() - size.height();
} else {
- if (hasRoomToLeft || hasRoomToRight) {
- x = hasRoomToRight ? m_itemRect.right() : m_itemRect.left() - size.width();
- } else {
- // Put the tooltip at the far right of the screen. The item will be overlapped
- // horizontally, but the y-coordinate will be adjusted afterwards so that no overlapping
- // occurs vertically.
- x = desktop.right() - size.width();
- }
+ Q_ASSERT(hasRoomToLeft || hasRoomToRight);
+ x = hasRoomToRight ? m_itemRect.right() : m_itemRect.left() - size.width();
// Put the tooltip at the bottom of the screen. The x-coordinate has already
// been adjusted, so that no overlapping with m_itemRect occurs.