summaryrefslogtreecommitdiffstats
path: root/kdefx
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-09-19 02:30:00 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-09-19 02:30:00 +0000
commit26a188969ca3722e932a942ad2bb8b5adc85dca0 (patch)
tree182ca3be9de284627bb2920b37e6b6485ee1b4ac /kdefx
parenta404b1aa1ab8881af67c5e27dfc0960a5e7065c8 (diff)
downloadtdelibs-26a188969ca3722e932a942ad2bb8b5adc85dca0.tar.gz
tdelibs-26a188969ca3722e932a942ad2bb8b5adc85dca0.zip
Fixed toolbar handle artifacts with certain themes
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1176911 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdefx')
-rw-r--r--kdefx/kstyle.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/kdefx/kstyle.cpp b/kdefx/kstyle.cpp
index dc5216125..6ebabf681 100644
--- a/kdefx/kstyle.cpp
+++ b/kdefx/kstyle.cpp
@@ -576,8 +576,8 @@ void KStyle::drawPrimitive( PrimitiveElement pe,
// Check if we are a normal toolbar or a hidden dockwidget.
if ( parent &&
- (parent->inherits("TQToolBar") || // Normal toolbar
- (parent->inherits("TQMainWindow")) )) // Collapsed dock
+ (parent->inherits("QToolBar") || // Normal toolbar
+ (parent->inherits("QMainWindow")) )) // Collapsed dock
// Draw a toolbar handle
drawKStylePrimitive( KPE_ToolBarHandle, p, widget, r, cg, flags, opt );
@@ -988,8 +988,8 @@ int KStyle::pixelMetric(PixelMetric m, const TQWidget* widget) const
// Check that we are not a normal toolbar or a hidden dockwidget,
// in which case we need to adjust the height for font size
if (widget && (parent = widget->parentWidget() )
- && !parent->inherits("TQToolBar")
- && !parent->inherits("TQMainWindow")
+ && !parent->inherits("QToolBar")
+ && !parent->inherits("QMainWindow")
&& widget->inherits("QDockWindowHandle") )
return widget->fontMetrics().lineSpacing();
else