[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdelibs/kstyles/plastik
From: Sandro Giessl <sandro () giessl ! com>
Date: 2005-08-15 15:08:15
Message-ID: 1124118495.905610.8678.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 449437 by giessl:
keep 1:1 aspect ration of check boxes
M +4 -1 plastik.cpp
--- trunk/KDE/kdelibs/kstyles/plastik/plastik.cpp #449436:449437
@@ -1417,11 +1417,14 @@
p->setPen(oldPen);
}
-void PlastikStyle::renderCheckBox(QPainter *p, const QRect &r, const QPalette &pal,
+void PlastikStyle::renderCheckBox(QPainter *p, const QRect &rect, const QPalette &pal,
bool enabled, bool mouseOver, int primitive) const
{
QColor contentColor = enabled?pal.base().color():pal.background().color();
+ int s = QMIN(rect.width(), rect.height());
+ QRect r = centerRect(rect, s, s);
+
uint contourFlags = Draw_Left|Draw_Right|Draw_Top|Draw_Bottom;
if(!enabled) {
contourFlags |= Is_Disabled;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic