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:
parent
55d699dace
commit
b0786e6528
@ -125,7 +125,8 @@ void DesktopToolbox::hoverEnterEvent(QGraphicsSceneHoverEvent *event)
|
|||||||
maxwidth);
|
maxwidth);
|
||||||
}
|
}
|
||||||
// put tools 5px from screen edge
|
// 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();
|
int y = 5; // pos().y();
|
||||||
Plasma::Phase* phase = Plasma::Phase::self();
|
Plasma::Phase* phase = Plasma::Phase::self();
|
||||||
foreach (QGraphicsItem* tool, QGraphicsItem::children()) {
|
foreach (QGraphicsItem* tool, QGraphicsItem::children()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user