[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdelibs/kstyles/keramik
From: Maks Orlovich <maksim () kde ! org>
Date: 2003-10-19 3:36:54
[Download RAW message or body]
CVS commit by orlovich:
Provide custom PM_TabBarTabShiftVertical for bottom tabs since QCommonStyle's only \
puts the icons way too low (as seen in Konsole). Perhaps this (or likely 2/-2, for \
styles that have less quirky tab sizing) should really be in KStyle, though, since \
other styles have the exact same problem (although visibility of it depends a lot on \
the bevel look). Fredrik, Chris, Karol, Sandro, what do you guys think of that \
option? CCMAIL:fredrik@kde.org,gallium@kde.org,clee@cl133.org,ceebx@users.sourceforge.net
M +15 -1 keramik.cpp 1.118
--- kdelibs/kstyles/keramik/keramik.cpp #1.117:1.118
@@ -2357,4 +2357,18 @@ int KeramikStyle::pixelMetric(PixelMetri
case PM_TabBarTabOverlap:
return 0;
+
+ case PM_TabBarTabShiftVertical:
+ {
+ const QTabBar* tb;
+ if (tb = ::qt_cast<const QTabBar*>(widget))
+ {
+ if (tb->shape() == QTabBar::RoundedBelow ||
+ tb->shape() == QTabBar::TriangularBelow)
+ return 0;
+ }
+
+ return 2; //For top, or if not sure
+ }
+
case PM_TitleBarHeight:
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic