put the proper margin on top of extenderitems
svn path=/trunk/KDE/kdelibs/; revision=1111853
This commit is contained in:
parent
997e6b32ea
commit
65ca45681f
@ -857,7 +857,6 @@ void ExtenderItemPrivate::themeChanged()
|
|||||||
}
|
}
|
||||||
|
|
||||||
background->getMargins(bgLeft, bgTop, bgRight, bgBottom);
|
background->getMargins(bgLeft, bgTop, bgRight, bgBottom);
|
||||||
layout->setContentsMargins(bgLeft, bgTop, bgRight, bgBottom);
|
|
||||||
|
|
||||||
dragger->setImagePath("widgets/extender-dragger");
|
dragger->setImagePath("widgets/extender-dragger");
|
||||||
|
|
||||||
@ -876,6 +875,9 @@ void ExtenderItemPrivate::themeChanged()
|
|||||||
|
|
||||||
dragger->getMargins(dragLeft, dragTop, dragRight, dragBottom);
|
dragger->getMargins(dragLeft, dragTop, dragRight, dragBottom);
|
||||||
|
|
||||||
|
//the ugly +2 is the default one
|
||||||
|
layout->setContentsMargins(bgLeft, bgTop+dragTop+2, bgRight, bgBottom);
|
||||||
|
|
||||||
QSizeF panelSize(QSizeF(q->size().width() - bgLeft - bgRight,
|
QSizeF panelSize(QSizeF(q->size().width() - bgLeft - bgRight,
|
||||||
iconSize + dragTop + dragBottom));
|
iconSize + dragTop + dragBottom));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user