diff options
| author | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-08-12 18:48:49 +0900 |
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-08-18 19:12:33 +0900 |
| commit | 8ac0be0f7fbc73ec137ed768ccc6a2e0f41ee2b9 (patch) | |
| tree | 2a0d2f7cace40c019136ff68b73df43ad95ddf67 /kommander/editor/layout.cpp | |
| parent | 19e527845958845e1fbd5b6d350e9d15c099f939 (diff) | |
| download | tdewebdev-8ac0be0f7fbc73ec137ed768ccc6a2e0f41ee2b9.tar.gz tdewebdev-8ac0be0f7fbc73ec137ed768ccc6a2e0f41ee2b9.zip | |
Drop TQT_BASE_OBJECT* defines
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'kommander/editor/layout.cpp')
| -rw-r--r-- | kommander/editor/layout.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/kommander/editor/layout.cpp b/kommander/editor/layout.cpp index 026b39f4..4fe32309 100644 --- a/kommander/editor/layout.cpp +++ b/kommander/editor/layout.cpp @@ -306,7 +306,7 @@ void HorizontalLayout::doLayout() TQHBoxLayout *layout = (TQHBoxLayout*)WidgetFactory::createLayout( layoutBase, 0, WidgetFactory::HBox ); for ( TQWidget *w = widgets.first(); w; w = widgets.next() ) { - if ( needReparent && TQT_BASE_OBJECT(w->parent()) != TQT_BASE_OBJECT(layoutBase) ) + if ( needReparent && w->parent() != layoutBase ) w->reparent( layoutBase, 0, TQPoint( 0, 0 ), false ); if ( !useSplitter ) { if ( qstrcmp( w->className(), "Spacer" ) == 0 ) @@ -370,7 +370,7 @@ void VerticalLayout::doLayout() TQVBoxLayout *layout = (TQVBoxLayout*)WidgetFactory::createLayout( layoutBase, 0, WidgetFactory::VBox ); for ( TQWidget *w = widgets.first(); w; w = widgets.next() ) { - if ( needReparent && TQT_BASE_OBJECT(w->parent()) != TQT_BASE_OBJECT(layoutBase) ) + if ( needReparent && w->parent() != layoutBase ) w->reparent( layoutBase, 0, TQPoint( 0, 0 ), false ); if ( !useSplitter ) { if ( qstrcmp( w->className(), "Spacer" ) == 0 ) @@ -742,7 +742,7 @@ void GridLayout::doLayout() int r, c, rs, cs; for ( w = widgets.first(); w; w = widgets.next() ) { if ( grid->locateWidget( w, r, c, rs, cs) ) { - if ( needReparent && TQT_BASE_OBJECT(w->parent()) != TQT_BASE_OBJECT(layoutBase) ) + if ( needReparent && w->parent() != layoutBase ) w->reparent( layoutBase, 0, TQPoint( 0, 0 ), false ); if ( rs * cs == 1 ) { layout->addWidget( w, r, c, w->inherits( "Spacer" ) ? ( (Spacer*)w )->alignment() : 0 ); |
