[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/KDE/4.3/kdebase/workspace/plasma/containments/panel
From: Giulio Camuffo <giuliocamuffo () gmail ! com>
Date: 2009-09-23 8:52:12
Message-ID: 1253695932.833722.7099.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 1027000 by camuffo:
backport SVN commit r1026902
don't resize the panel on themeUpdated()
BUG: 184905
M +0 -32 panel.cpp
--- branches/KDE/4.3/kdebase/workspace/plasma/containments/panel/panel.cpp #1026999:1027000
@@ -662,38 +662,6 @@
void Panel::themeUpdated()
{
- if (!layout()) {
- return;
- }
-
- //if the theme is changed all the calculations needs to be done again
- //and resize based on the change in the theme bordersize
-
- qreal oldLeftWidth;
- qreal newLeftWidth;
- qreal oldTopHeight;
- qreal newTopHeight;
- qreal oldRightWidth;
- qreal newRightWidth;
- qreal oldBottomHeight;
- qreal newBottomHeight;
-
- layout()->getContentsMargins(&oldLeftWidth, &oldTopHeight, &oldRightWidth, &oldBottomHeight);
- m_background->getMargins(newLeftWidth, newTopHeight, newRightWidth, newBottomHeight);
-
- QSize newSize(size().width()-(oldLeftWidth - newLeftWidth)-(oldRightWidth - newRightWidth),
- size().height()-(oldTopHeight - newTopHeight)-(oldBottomHeight - newBottomHeight));
-
- resize(newSize);
-
- if (formFactor() == Plasma::Vertical) {
- setMaximumWidth(newSize.width());
- setMinimumWidth(newSize.width());
- } else {
- setMaximumHeight(newSize.height());
- setMinimumHeight(newSize.height());
- }
-
updateBorders(geometry().toRect(), true);
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic