From 22253cd8fbc0bd2e70f32aaf1f95ea3a3e819a60 Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 10 Aug 2011 22:19:39 +0000 Subject: rename the following methods: tqparent parent tqmask mask git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdesdk@1246260 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- scheck/scheck.cpp | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'scheck') diff --git a/scheck/scheck.cpp b/scheck/scheck.cpp index 033051b8..5d8d3582 100644 --- a/scheck/scheck.cpp +++ b/scheck/scheck.cpp @@ -1341,7 +1341,7 @@ void StyleCheckStyle::drawPrimitive( PrimitiveElement pe, } - // RADIOBUTTON (exclusive indicator) tqmask + // RADIOBUTTON (exclusive indicator) mask // ------------------------------------------------------------------- case PE_ExclusiveIndicatorMask: { if (maskBmp.isNull()) { @@ -2330,21 +2330,21 @@ void StyleCheckStyle::tqdrawComplexControl( ComplexControl control, TQPixmap pixmap = *(toolbutton->parentWidget()->backgroundPixmap()); p->drawTiledPixmap( r, pixmap, toolbutton->pos() ); } - else if (widget->tqparent()) + else if (widget->parent()) { - if (widget->tqparent()->inherits(TQTOOLBAR_OBJECT_NAME_STRING)) + if (widget->parent()->inherits(TQTOOLBAR_OBJECT_NAME_STRING)) { - TQToolBar* tqparent = (TQToolBar*)widget->tqparent(); - TQRect pr = tqparent->rect(); + TQToolBar* parent = (TQToolBar*)widget->parent(); + TQRect pr = parent->rect(); renderGradient( p, r, cg.button(), - tqparent->orientation() == Qt::Vertical, + parent->orientation() == Qt::Vertical, r.x(), r.y(), pr.width()-2, pr.height()-2); } - else if (widget->tqparent()->inherits("TQToolBarExtensionWidget")) + else if (widget->parent()->inherits("TQToolBarExtensionWidget")) { - TQWidget* tqparent = (TQWidget*)widget->tqparent(); - TQToolBar* toolbar = (TQToolBar*)tqparent->tqparent(); + TQWidget* parent = (TQWidget*)widget->parent(); + TQToolBar* toolbar = (TQToolBar*)parent->parent(); TQRect tr = toolbar->rect(); if ( toolbar->orientation() == Qt::Horizontal ) { @@ -2682,14 +2682,14 @@ bool StyleCheckStyle::eventFilter( TQObject *object, TQEvent *event ) bool nestedGroupBox = false; TQString stripped_title = removedXX(stripAccelViolations(gb->title())); - //Walk tqparent hierarchy to check whether any are groupboxes too.. - TQObject* tqparent = TQT_TQOBJECT(gb); + //Walk parent hierarchy to check whether any are groupboxes too.. + TQObject* parent = TQT_TQOBJECT(gb); // GCC suggested parentheses around assignment used as truth value // I suggested that it could eat me. GCC won. - while ( (tqparent = tqparent->tqparent()) ) + while ( (parent = parent->parent()) ) { - if (tqparent->inherits(TQGROUPBOX_OBJECT_NAME_STRING)) + if (parent->inherits(TQGROUPBOX_OBJECT_NAME_STRING)) { nestedGroupBox = true; break; -- cgit v1.2.1