From bf85f02dd35b67007f6732d3c7dc76d7ac7f2a3d Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 2 Apr 2011 07:41:52 +0000 Subject: Update remaining kdelibs inherits() functions to use new object name defines instead of hard coded string literals git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1226843 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kdefx/kstyle.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'kdefx') diff --git a/kdefx/kstyle.cpp b/kdefx/kstyle.cpp index a7602e50f..58caa39b7 100644 --- a/kdefx/kstyle.cpp +++ b/kdefx/kstyle.cpp @@ -575,13 +575,13 @@ void KStyle::tqdrawPrimitive( TQ_PrimitiveElement pe, // Check if we are a normal toolbar or a hidden dockwidget. if ( parent && - (parent->inherits("QToolBar") || // Normal toolbar - (parent->inherits("QMainWindow")) )) // Collapsed dock + (parent->inherits(TQTOOLBAR_OBJECT_NAME_STRING) || // Normal toolbar + (parent->inherits(TQMAINWINDOW_OBJECT_NAME_STRING)) )) // Collapsed dock // Draw a toolbar handle drawKStylePrimitive( KPE_ToolBarHandle, p, widget, r, cg, flags, opt ); - else if ( widget->inherits("QDockWindowHandle") ) + else if ( widget->inherits(TQDOCKWINDOWHANDLE_OBJECT_NAME_STRING) ) // Draw a dock window handle drawKStylePrimitive( KPE_DockWindowHandle, p, widget, r, cg, flags, opt ); @@ -987,9 +987,9 @@ int KStyle::tqpixelMetric(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->tqparentWidget() ) - && !parent->inherits("QToolBar") - && !parent->inherits("QMainWindow") - && widget->inherits("QDockWindowHandle") ) + && !parent->inherits(TQTOOLBAR_OBJECT_NAME_STRING) + && !parent->inherits(TQMAINWINDOW_OBJECT_NAME_STRING) + && widget->inherits(TQDOCKWINDOWHANDLE_OBJECT_NAME_STRING) ) return widget->fontMetrics().lineSpacing(); else return TQCommonStyle::tqpixelMetric(m, widget); -- cgit v1.2.1