avoid placing the items over the icon; much more readable

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=758450
This commit is contained in:
Aaron J. Seigo 2008-01-07 22:53:52 +00:00
parent 55d699dace
commit b0786e6528

View File

@ -125,7 +125,8 @@ void DesktopToolbox::hoverEnterEvent(QGraphicsSceneHoverEvent *event)
maxwidth);
}
// put tools 5px from screen edge
int x = m_size*2 - maxwidth - 5; // pos().x();
const int iconWidth = 32;
int x = m_size*2 - maxwidth - iconWidth - 5;
int y = 5; // pos().y();
Plasma::Phase* phase = Plasma::Phase::self();
foreach (QGraphicsItem* tool, QGraphicsItem::children()) {