[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdebase/kicker/core
From: Aaron J. Seigo <aseigo () kde ! org>
Date: 2004-12-01 2:31:05
Message-ID: 20041201023105.00B181B98C () office ! kde ! org
[Download RAW message or body]
CVS commit by aseigo:
proper offset for the handle dimples
tested it with hicolor, plastik, keramik, litev3. all look better now.
M +4 -19 applethandle.cpp 1.24
--- kdebase/kicker/core/applethandle.cpp #1.23:1.24
@@ -273,22 +273,4 @@ void AppletHandleDrag::paintEvent(QPaint
QRect r = rect();
- switch (popupDirection())
- {
- case KPanelApplet::Up:
- r.rBottom() -= 3;
- break;
-
- case KPanelApplet::Down:
- r.rTop() += 3;
- break;
-
- case KPanelApplet::Left:
- r.rRight() -= 3;
- break;
-
- case KPanelApplet::Right:
- r.rLeft() += 3;
- break;
- }
if (orientation() == Horizontal)
@@ -300,4 +282,5 @@ void AppletHandleDrag::paintEvent(QPaint
&p, QRect(width() - 2, 0, 2, height()),
colorGroup(), QStyle::Style_Horizontal);
+ r.rRight() -= 2;
}
else
@@ -307,4 +290,5 @@ void AppletHandleDrag::paintEvent(QPaint
&p, QRect(0, 0, 2, height()),
colorGroup(), QStyle::Style_Horizontal);
+ r.rLeft() += 2;
}
}
@@ -315,4 +299,5 @@ void AppletHandleDrag::paintEvent(QPaint
&p, QRect(0, 0, width(), 2),
colorGroup(), QStyle::Style_Horizontal);
+ r.rTop() += 2;
}
@@ -412,5 +397,5 @@ void AppletHandleButton::drawButton( QPa
}
- p->drawPixmap(((w - pixmap()->width()) / 2),
+ p->drawPixmap((w - pixmap()->width()) / 2,
(h - pixmap()->height()) / 2,
*pixmap());
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic