diff options
Diffstat (limited to 'experimental/tqtinterface/qt4/tools/designer/designer/mainwindow.cpp')
-rw-r--r-- | experimental/tqtinterface/qt4/tools/designer/designer/mainwindow.cpp | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/experimental/tqtinterface/qt4/tools/designer/designer/mainwindow.cpp b/experimental/tqtinterface/qt4/tools/designer/designer/mainwindow.cpp index c5c74851c..7629b2191 100644 --- a/experimental/tqtinterface/qt4/tools/designer/designer/mainwindow.cpp +++ b/experimental/tqtinterface/qt4/tools/designer/designer/mainwindow.cpp @@ -930,8 +930,8 @@ bool MainWindow::eventFilter( TQObject *o, TQEvent *e ) { if ( ::tqqt_cast<MenuBarEditor*>(o) || ::tqqt_cast<PopupMenuEditor*>(o) || ( o && - ( ::tqqt_cast<MenuBarEditor*>(o->tqparent()) || - ::tqqt_cast<PopupMenuEditor*>(o->tqparent()) ) ) ) { + ( ::tqqt_cast<MenuBarEditor*>(o->parent()) || + ::tqqt_cast<PopupMenuEditor*>(o->parent()) ) ) ) { if ( e->type() == TQEvent::Accel && ::tqqt_cast<PopupMenuEditor*>(o) ) { return TRUE; // consume accel events @@ -992,9 +992,9 @@ bool MainWindow::eventFilter( TQObject *o, TQEvent *e ) ( ::tqqt_cast<TQComboBox*>(o) || ::tqqt_cast<TQToolButton*>(o) || ::tqqt_cast<TQDesignerToolBarSeparator*>(o) ) && - o->tqparent() - && ( ::tqqt_cast<TQDesignerToolBar*>(o->tqparent()) - || ::tqqt_cast<TQDesignerWidgetStack*>(o->tqparent())) ) ) { + o->parent() + && ( ::tqqt_cast<TQDesignerToolBar*>(o->parent()) + || ::tqqt_cast<TQDesignerWidgetStack*>(o->parent())) ) ) { TQWidget *w = (TQWidget*)o; if ( ::tqqt_cast<TQToolButton*>(w) || ::tqqt_cast<TQComboBox*>(w) || @@ -1107,7 +1107,7 @@ bool MainWindow::eventFilter( TQObject *o, TQEvent *e ) ::tqqt_cast<SizeHandle*>(o) || ::tqqt_cast<OrderIndicator*>(o) ) { if ( ::tqqt_cast<TQToolButton*>(o) && ((TQToolButton*)o)->isOn() && - o->tqparent() && ::tqqt_cast<TQToolBar*>(o->tqparent()) && formWindow() ) + o->parent() && ::tqqt_cast<TQToolBar*>(o->parent()) && formWindow() ) formWindow()->setToolFixed(); break; } @@ -1150,7 +1150,7 @@ bool MainWindow::eventFilter( TQObject *o, TQEvent *e ) ::tqqt_cast<SizeHandle*>(o) || ::tqqt_cast<OrderIndicator*>(o) ) break; - if ( WidgetFactory::layoutType( (TQWidget*)o->tqparent() ) != WidgetFactory::NoLayout ) { + if ( WidgetFactory::layoutType( (TQWidget*)o->parent() ) != WidgetFactory::NoLayout ) { ( (FormWindow*)w )->updateSelection( (TQWidget*)o ); if ( e->type() != TQEvent::Resize ) ( (FormWindow*)w )->updateChildSelections( (TQWidget*)o ); @@ -1232,12 +1232,12 @@ bool MainWindow::eventFilter( TQObject *o, TQEvent *e ) TQWidget *MainWindow::isAFormWindowChild( TQT_BASE_OBJECT_NAME *o ) const { - if ( ::tqqt_cast<TQWizard*>(TQT_TQOBJECT(o)->tqparent()) && !::tqqt_cast<TQPushButton*>(o) ) + if ( ::tqqt_cast<TQWizard*>(TQT_TQOBJECT(o)->parent()) && !::tqqt_cast<TQPushButton*>(o) ) return 0; while ( o ) { if ( ::tqqt_cast<FormWindow*>(o) ) return (TQWidget*)o; - o = TQT_TQOBJECT(o)->tqparent(); + o = TQT_TQOBJECT(o)->parent(); } return 0; } @@ -1249,7 +1249,7 @@ TQWidget *MainWindow::isAToolBarChild( TQT_BASE_OBJECT_NAME *o ) const return (TQWidget*)o; if ( ::tqqt_cast<FormWindow*>(o) ) return 0; - o = TQT_TQOBJECT(o)->tqparent(); + o = TQT_TQOBJECT(o)->parent(); } return 0; } @@ -2266,7 +2266,7 @@ void MainWindow::readConfig() if ( !ok ) { if ( oWindow ) { oWindow->shuttingDown(); - ( (TQDockWindow*)oWindow->tqparent() )->hide(); + ( (TQDockWindow*)oWindow->parent() )->hide(); } TQPixmap pix; pix.load( backPixName ); @@ -2423,7 +2423,7 @@ void MainWindow::readConfig() } if ( readPreviousConfig && oWindow ) { oWindow->shuttingDown(); - ( (TQDockWindow*)oWindow->tqparent() )->hide(); + ( (TQDockWindow*)oWindow->parent() )->hide(); } rebuildCustomWidgetGUI(); @@ -2454,9 +2454,9 @@ HierarchyView *MainWindow::objectHierarchy() const return hierarchyView; } -TQPopupMenu *MainWindow::setupNormalHierarchyMenu( TQWidget *tqparent ) +TQPopupMenu *MainWindow::setupNormalHierarchyMenu( TQWidget *parent ) { - TQPopupMenu *menu = new TQPopupMenu( tqparent ); + TQPopupMenu *menu = new TQPopupMenu( parent ); actionEditCut->addTo( menu ); actionEditCopy->addTo( menu ); @@ -2466,12 +2466,12 @@ TQPopupMenu *MainWindow::setupNormalHierarchyMenu( TQWidget *tqparent ) return menu; } -TQPopupMenu *MainWindow::setupTabWidgetHierarchyMenu( TQWidget *tqparent, const char *addSlot, const char *removeSlot ) +TQPopupMenu *MainWindow::setupTabWidgetHierarchyMenu( TQWidget *parent, const char *addSlot, const char *removeSlot ) { - TQPopupMenu *menu = new TQPopupMenu( tqparent ); + TQPopupMenu *menu = new TQPopupMenu( parent ); - menu->insertItem( tr( "Add Page" ), tqparent, addSlot ); - menu->insertItem( tr( "Delete Page" ), tqparent, removeSlot ); + menu->insertItem( tr( "Add Page" ), parent, addSlot ); + menu->insertItem( tr( "Delete Page" ), parent, removeSlot ); menu->insertSeparator(); actionEditCut->addTo( menu ); actionEditCopy->addTo( menu ); |