diff options
Diffstat (limited to 'src/gui/kdeext/klearlook.cpp')
-rw-r--r-- | src/gui/kdeext/klearlook.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/gui/kdeext/klearlook.cpp b/src/gui/kdeext/klearlook.cpp index 698620f..cdf8904 100644 --- a/src/gui/kdeext/klearlook.cpp +++ b/src/gui/kdeext/klearlook.cpp @@ -170,17 +170,17 @@ inline TQColor midColor( const TQColor &a, const TQColor &b, double factor = 1.0 static bool isFormWidget( const TQWidget *widget ) { //Form widgets are in the KHTMLView, but that has 2 further inner levels //of widgets - TQClipperWidget, and outside of that, TQViewportWidget - TQWidget * potentialClipPort = widget->tqparentWidget(); + TQWidget * potentialClipPort = widget->parentWidget(); if ( !potentialClipPort || potentialClipPort->isTopLevel() ) return false; - TQWidget *potentialViewPort = potentialClipPort->tqparentWidget(); + TQWidget *potentialViewPort = potentialClipPort->parentWidget(); if ( !potentialViewPort || potentialViewPort->isTopLevel() || qstrcmp( potentialViewPort->name(), "qt_viewport" ) ) return false; - TQWidget *potentialKHTML = potentialViewPort->tqparentWidget(); + TQWidget *potentialKHTML = potentialViewPort->parentWidget(); if ( !potentialKHTML || potentialKHTML->isTopLevel() || qstrcmp( potentialKHTML->className(), "KHTMLView" ) ) return false; @@ -3088,14 +3088,14 @@ void KlearlookStyle::tqdrawComplexControl( } bool onControlButtons = false, - onToolbar = widget->tqparentWidget() && ::tqqt_cast<TQToolBar *>( widget->tqparentWidget() ), + onToolbar = widget->parentWidget() && ::tqqt_cast<TQToolBar *>( widget->parentWidget() ), onExtender = !onToolbar && - widget->tqparentWidget() && - widget->tqparentWidget() ->inherits( "TQToolBarExtensionWidget" ) && - ::tqqt_cast<TQToolBar *>( widget->tqparentWidget() ->tqparentWidget() ); + widget->parentWidget() && + widget->parentWidget() ->inherits( "TQToolBarExtensionWidget" ) && + ::tqqt_cast<TQToolBar *>( widget->parentWidget() ->parentWidget() ); - if ( !onToolbar && !onExtender && widget->tqparentWidget() && - !qstrcmp( widget->tqparentWidget() ->name(), "qt_maxcontrols" ) ) + if ( !onToolbar && !onExtender && widget->parentWidget() && + !qstrcmp( widget->parentWidget() ->name(), "qt_maxcontrols" ) ) onControlButtons = true; if ( active & SC_ToolButton ) @@ -3122,11 +3122,11 @@ void KlearlookStyle::tqdrawComplexControl( } // Check whether to draw a background pixmap - else if ( toolbutton->tqparentWidget() && - toolbutton->tqparentWidget() ->backgroundPixmap() && - !toolbutton->tqparentWidget() ->backgroundPixmap() ->isNull() ) { + else if ( toolbutton->parentWidget() && + toolbutton->parentWidget() ->backgroundPixmap() && + !toolbutton->parentWidget() ->backgroundPixmap() ->isNull() ) { p->drawTiledPixmap( r, - *( toolbutton->tqparentWidget() ->backgroundPixmap() ), toolbutton->pos() ); + *( toolbutton->parentWidget() ->backgroundPixmap() ), toolbutton->pos() ); } else if ( widget->tqparent() ) { if ( ::tqqt_cast<const TQToolBar *>( widget->tqparent() ) ) { TQToolBar * tqparent = ( TQToolBar* ) widget->tqparent(); |