From 65ca45681f0f199f9c6795b60da9fe0963bd2b66 Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Tue, 6 Apr 2010 20:19:53 +0000 Subject: [PATCH] put the proper margin on top of extenderitems svn path=/trunk/KDE/kdelibs/; revision=1111853 --- extenders/extenderitem.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/extenders/extenderitem.cpp b/extenders/extenderitem.cpp index 970328cbd..bb31463dc 100644 --- a/extenders/extenderitem.cpp +++ b/extenders/extenderitem.cpp @@ -857,7 +857,6 @@ void ExtenderItemPrivate::themeChanged() } background->getMargins(bgLeft, bgTop, bgRight, bgBottom); - layout->setContentsMargins(bgLeft, bgTop, bgRight, bgBottom); dragger->setImagePath("widgets/extender-dragger"); @@ -876,6 +875,9 @@ void ExtenderItemPrivate::themeChanged() 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, iconSize + dragTop + dragBottom));