[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdelibs/kstyles/plastik
From: André Wöbbeking <Woebbeking () web ! de>
Date: 2005-12-11 22:44:32
Message-ID: 1134341072.782177.4977.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 487779 by woebbe:
menubar
M +19 -3 plastik.cpp
M +1 -1 plastik.h
--- trunk/KDE/kdelibs/kstyles/plastik/plastik.cpp #487778:487779
@@ -198,7 +198,7 @@
// settings.beginGroup("/plastikstyle/Settings");
_scrollBarLines = settings.readBoolEntry("/scrollBarLines", false);
_animateProgressBar = settings.readBoolEntry("/animateProgressBar", false);
-// _drawToolBarSeparator = settings.readBoolEntry("/drawToolBarSeparator", true);
+ _drawToolBarSeparator = settings.readBoolEntry("/drawToolBarSeparator", true);
_drawToolBarItemSeparator = settings.readBoolEntry("/drawToolBarItemSeparator", true);
_drawFocusRect = settings.readBoolEntry("/drawFocusRect", true);
_drawTriangularExpander = settings.readBoolEntry("/drawTriangularExpander", false);
@@ -510,7 +510,23 @@
case WT_MenuBar:
{
- // TODO
+ p->fillRect(r, pal.window());
+
+ if ( _drawToolBarSeparator ) {
+ if ( r.width() > r.height() ) {
+ p->setPen( getColor(pal, PanelLight) );
+ p->drawLine( r.left(), r.top(), r.right(), r.top() );
+ p->setPen( getColor(pal, PanelDark) );
+ p->drawLine( r.left(), r.bottom(), r.right(), r.bottom() );
+ }
+ else {
+ p->setPen( getColor(pal, PanelLight) );
+ p->drawLine( r.left(), r.top(), r.left(), r.bottom() );
+ p->setPen( getColor(pal, PanelDark) );
+ p->drawLine( r.right(), r.top(), r.right(), r.bottom() );
+ }
+ }
+ return;
}
break;
@@ -1423,7 +1439,7 @@
{
const int lineWidth(panel->lineWidth);
p->fillRect(r.adjusted(lineWidth, lineWidth, -lineWidth, -lineWidth),
- pal.brush(QPalette::Base));
+ pal.base());
if (lineWidth > 0)
drawPrimitive(PE_FrameLineEdit, panel, p, widget);
--- trunk/KDE/kdelibs/kstyles/plastik/plastik.h #487778:487779
@@ -288,7 +288,7 @@
int _contrast;
bool _scrollBarLines;
bool _animateProgressBar;
-// bool _drawToolBarSeparator;
+ bool _drawToolBarSeparator;
bool _drawToolBarItemSeparator;
bool _drawFocusRect;
bool _drawTriangularExpander;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic