diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 22:19:39 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 22:19:39 +0000 |
commit | ebff9b8f18117b829c604c117b239f2d7d18f55e (patch) | |
tree | 4588a93d641d0694dffa2342243ef7bb18da141d /style/qtc_kstyle.cpp | |
parent | a66f7ec245037f5a3d9c57717d749d4f7d06f2ca (diff) | |
download | tde-style-qtcurve-ebff9b8f18117b829c604c117b239f2d7d18f55e.tar.gz tde-style-qtcurve-ebff9b8f18117b829c604c117b239f2d7d18f55e.zip |
rename the following methods:
tqparent parent
tqmask mask
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kde-style-qtcurve@1246260 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'style/qtc_kstyle.cpp')
-rw-r--r-- | style/qtc_kstyle.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/style/qtc_kstyle.cpp b/style/qtc_kstyle.cpp index 4d479a9..910ec7c 100644 --- a/style/qtc_kstyle.cpp +++ b/style/qtc_kstyle.cpp @@ -392,18 +392,18 @@ void TQtCKStyle::drawPrimitive( PrimitiveElement pe, if (pe == PE_DockWindowHandle) { // Wild workarounds are here. Beware. - TQWidget *widget, *tqparent; + TQWidget *widget, *parent; if (p && p->device()->devType() == TQInternal::Widget) { widget = static_cast<TQWidget*>(p->device()); - tqparent = widget->parentWidget(); + parent = widget->parentWidget(); } else return; // Don't paint on non-widgets // Check if we are a normal toolbar or a hidden dockwidget. - if ( tqparent && - (tqparent->inherits(TQTOOLBAR_OBJECT_NAME_STRING) || // Normal toolbar - (tqparent->inherits(TQMAINWINDOW_OBJECT_NAME_STRING)) )) // Collapsed dock + if ( parent && + (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 ); @@ -760,12 +760,12 @@ int TQtCKStyle::tqpixelMetric(PixelMetric m, const TQWidget* widget) const case PM_DockWindowHandleExtent: { - TQWidget* tqparent = 0; + TQWidget* parent = 0; // 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 && (tqparent = widget->parentWidget() ) - && !tqparent->inherits(TQTOOLBAR_OBJECT_NAME_STRING) - && !tqparent->inherits(TQMAINWINDOW_OBJECT_NAME_STRING) + if (widget && (parent = widget->parentWidget() ) + && !parent->inherits(TQTOOLBAR_OBJECT_NAME_STRING) + && !parent->inherits(TQMAINWINDOW_OBJECT_NAME_STRING) && widget->inherits(TQDOCKWINDOWHANDLE_OBJECT_NAME_STRING) ) return widget->fontMetrics().lineSpacing(); else |