diff options
author | Michele Calgaro <[email protected]> | 2023-11-26 02:33:14 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2023-11-26 17:32:41 +0900 |
commit | d31a7027d0b8e2237b1b398e436e82e9944b38cb (patch) | |
tree | 1cd933e46759d2209dad0c74090f1e3487ab4b3e /kdevdesigner/designer/layout.cpp | |
parent | 8308ebcedcc01c7588346da09b69b97b5c8e8059 (diff) | |
download | tdevelop-d31a7027d0b8e2237b1b398e436e82e9944b38cb.tar.gz tdevelop-d31a7027d0b8e2237b1b398e436e82e9944b38cb.zip |
Replaced various '#define' with actual strings - part 4
Signed-off-by: Michele Calgaro <[email protected]>
(cherry picked from commit 676a13490dc7163e5c99a0f39094a2a4148d3963)
Diffstat (limited to 'kdevdesigner/designer/layout.cpp')
-rw-r--r-- | kdevdesigner/designer/layout.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/kdevdesigner/designer/layout.cpp b/kdevdesigner/designer/layout.cpp index f2198a36..4aae7be6 100644 --- a/kdevdesigner/designer/layout.cpp +++ b/kdevdesigner/designer/layout.cpp @@ -167,7 +167,7 @@ bool Layout::prepareLayout( bool &needMove, bool &needReparent ) for ( TQWidget *w = widgets.first(); w; w = widgets.next() ) w->raise(); needMove = !layoutBase; - needReparent = needMove || ::tqqt_cast<TQLayoutWidget*>(layoutBase) || ::tqqt_cast<TQSplitter*>(layoutBase); + needReparent = needMove || ::tqt_cast<TQLayoutWidget*>(layoutBase) || ::tqt_cast<TQSplitter*>(layoutBase); if ( !layoutBase ) { if ( !useSplitter ) layoutBase = WidgetFactory::create( WidgetDatabase::idFromClassName( "TQLayoutWidget" ), @@ -216,7 +216,7 @@ void Layout::undoLayout() } formWindow->selectWidget( TQT_TQOBJECT(layoutBase), FALSE ); WidgetFactory::deleteLayout( layoutBase ); - if ( parent != layoutBase && !::tqqt_cast<TQMainWindow*>(layoutBase) ) { + if ( parent != layoutBase && !::tqt_cast<TQMainWindow*>(layoutBase) ) { layoutBase->hide(); TQString n = layoutBase->name(); n.prepend( "qt_dead_widget_" ); @@ -321,13 +321,13 @@ void HorizontalLayout::doLayout() layout->addWidget( w, 0, ( (Spacer*)w )->alignment() ); else layout->addWidget( w ); - if ( ::tqqt_cast<TQLayoutWidget*>(w) ) + if ( ::tqt_cast<TQLayoutWidget*>(w) ) ( (TQLayoutWidget*)w )->updateSizePolicy(); } w->show(); } - if ( ::tqqt_cast<TQSplitter*>(layoutBase) ) + if ( ::tqt_cast<TQSplitter*>(layoutBase) ) ( (TQSplitter*)layoutBase )->setOrientation( TQt::Horizontal ); finishLayout( needMove, layout ); @@ -385,13 +385,13 @@ void VerticalLayout::doLayout() layout->addWidget( w, 0, ( (Spacer*)w )->alignment() ); else layout->addWidget( w ); - if ( ::tqqt_cast<TQLayoutWidget*>(w) ) + if ( ::tqt_cast<TQLayoutWidget*>(w) ) ( (TQLayoutWidget*)w )->updateSizePolicy(); } w->show(); } - if ( ::tqqt_cast<TQSplitter*>(layoutBase) ) + if ( ::tqt_cast<TQSplitter*>(layoutBase) ) ( (TQSplitter*)layoutBase )->setOrientation( TQt::Vertical ); finishLayout( needMove, layout ); @@ -759,11 +759,11 @@ void GridLayout::doLayout() if ( needReparent && w->parent() != layoutBase ) w->reparent( layoutBase, 0, TQPoint( 0, 0 ), FALSE ); if ( rs * cs == 1 ) { - layout->addWidget( w, r, c, ::tqqt_cast<Spacer*>(w) ? ( (Spacer*)w )->alignment() : 0 ); + layout->addWidget( w, r, c, ::tqt_cast<Spacer*>(w) ? ( (Spacer*)w )->alignment() : 0 ); } else { - layout->addMultiCellWidget( w, r, r+rs-1, c, c+cs-1, ::tqqt_cast<Spacer*>(w) ? ( (Spacer*)w )->alignment() : 0 ); + layout->addMultiCellWidget( w, r, r+rs-1, c, c+cs-1, ::tqt_cast<Spacer*>(w) ? ( (Spacer*)w )->alignment() : 0 ); } - if ( ::tqqt_cast<TQLayoutWidget*>(w) ) + if ( ::tqt_cast<TQLayoutWidget*>(w) ) ( (TQLayoutWidget*)w )->updateSizePolicy(); w->show(); } else { |