[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdelibs/kdeui/widgets
From: Christoph Feck <christoph () maxiom ! de>
Date: 2010-11-30 18:19:20
Message-ID: 20101130181920.424EDAC8A3 () svn ! kde ! org
[Download RAW message or body]
SVN commit 1202399 by cfeck:
Use CC_ToolButton instead of PE_PanelButtonTool
BUG: 258279
M +5 -4 kmultitabbar.cpp
--- trunk/KDE/kdelibs/kdeui/widgets/kmultitabbar.cpp #1202398:1202399
@@ -354,8 +354,11 @@
initStyleOption(&opt);
// Paint bevel..
- if (underMouse() || isChecked())
- style()->drawPrimitive(QStyle::PE_PanelButtonTool, &opt, &painter);
+ if (underMouse() || isChecked()) {
+ opt.text.clear();
+ opt.icon = QIcon();
+ style()->drawComplexControl(QStyle::CC_ToolButton, &opt, &painter, this);
+ }
int hMargin, vMargin;
computeMargins(&hMargin, &vMargin);
@@ -385,8 +388,6 @@
t.clear();
}
- opt.text = t;
-
// Label time.... Simple case: no text, so just plop down the icon right in the center
// We only do this when the button never draws the text, to avoid jumps in icon position
// when resizing
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic