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 20:26:36 +0900 |
commit | 5b51c9fc784f692e2df23253181a618f94d0db73 (patch) | |
tree | e9100a0e8efdff5cc02df9f034553eaed5aebbfb /kommander/editor/layout.cpp | |
parent | 6d4be82cca25be5191a287efca0ebaaa2777875e (diff) | |
download | tdewebdev-5b51c9fc784f692e2df23253181a618f94d0db73.tar.gz tdewebdev-5b51c9fc784f692e2df23253181a618f94d0db73.zip |
Drop TQT_BASE_OBJECT* defines
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 8ac0be0f7fbc73ec137ed768ccc6a2e0f41ee2b9)
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 ); |