summaryrefslogtreecommitdiffstats
path: root/kdevdesigner/designer/widgetaction.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kdevdesigner/designer/widgetaction.cpp')
-rw-r--r--kdevdesigner/designer/widgetaction.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/kdevdesigner/designer/widgetaction.cpp b/kdevdesigner/designer/widgetaction.cpp
index 9547b049..c2ce0721 100644
--- a/kdevdesigner/designer/widgetaction.cpp
+++ b/kdevdesigner/designer/widgetaction.cpp
@@ -35,7 +35,7 @@ static TQStyle *windowsStyle = 0;
void WidgetAction::addedTo( TQWidget *w, TQWidget *container )
{
- if ( ::tqqt_cast<TQToolButton*>(w) && ::tqqt_cast<TQScrollView*>(container->tqparent()->tqparent()) ) {
+ if ( ::tqqt_cast<TQToolButton*>(w) && ::tqqt_cast<TQScrollView*>(container->parent()->parent()) ) {
if ( !windowsStyle )
windowsStyle = TQStyleFactory::create( "windows" );
w->setStyle( windowsStyle );