]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Removed fix for negative x-coordinate again and added a TODO. We must provide a solut...
authorPeter Penz <peter.penz19@gmail.com>
Tue, 19 Aug 2008 06:33:28 +0000 (06:33 +0000)
committerPeter Penz <peter.penz19@gmail.com>
Tue, 19 Aug 2008 06:33:28 +0000 (06:33 +0000)
CCMAIL: kdedevel@etotheipiplusone.com

svn path=/trunk/KDE/kdebase/apps/; revision=849168

src/tooltipmanager.cpp

index 2b41ac48f797a0361f79502950f8a1499cb52f03..71c29e51b7f001c05f3cfcd23c2b8131a7d22226 100644 (file)
@@ -129,19 +129,10 @@ void ToolTipManager::showToolTip()
     // - the content is not drawn inside m_itemRect
     int x = m_itemRect.right();
     int y = m_itemRect.bottom();
+    // TODO: handle usecase if x or y get smaller than the 
+    // desktop-left or the desktop-top
     if (x + size.width() - 1 > desktop.right()) {
-        // Any room to the left of the item? 
-        if (m_itemRect.left() - size.width() > desktop.left())
-        {
-            x = m_itemRect.left() - size.width();
-        }
-        else
-        {
-            // Move left until we are back onscreen; we'll be horizontally
-            // overlapping m_itemRect, but hopefully the y value will keep us
-            // from drawing inside it.
-            x = desktop.right() - size.width();
-        }
+        x = m_itemRect.left() - size.width();
     }
     if (y + size.height() - 1 > desktop.bottom()) {
         y = m_itemRect.top() - size.height();