diff options
Diffstat (limited to 'kradio3/plugins/gui-quickbar/buttonflowlayout.cpp')
-rw-r--r-- | kradio3/plugins/gui-quickbar/buttonflowlayout.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/kradio3/plugins/gui-quickbar/buttonflowlayout.cpp b/kradio3/plugins/gui-quickbar/buttonflowlayout.cpp index 4cd8dd0..528f9c5 100644 --- a/kradio3/plugins/gui-quickbar/buttonflowlayout.cpp +++ b/kradio3/plugins/gui-quickbar/buttonflowlayout.cpp @@ -104,9 +104,9 @@ bool ButtonFlowLayout::hasHeightForWidth() const return TRUE; } -TQSize ButtonFlowLayout::tqsizeHint() const +TQSize ButtonFlowLayout::sizeHint() const { - return tqminimumSize(); + return minimumSize(); } TQSizePolicy::ExpandData ButtonFlowLayout::expanding() const @@ -154,8 +154,8 @@ int ButtonFlowLayout::doLayout( const TQRect &r, bool testonly ) it.toFirst(); while ( (o=it.current()) != 0 ) { ++it; - buttonWidth = TQMAX( buttonWidth, o->tqsizeHint().width() ); - buttonHeight = TQMAX( buttonHeight, o->tqsizeHint().height() ); + buttonWidth = TQMAX( buttonWidth, o->sizeHint().width() ); + buttonHeight = TQMAX( buttonHeight, o->sizeHint().height() ); } // calculate the optimal width @@ -217,19 +217,19 @@ int ButtonFlowLayout::doLayout( const TQRect &r, bool testonly ) } -TQSize ButtonFlowLayout::tqminimumSize() const +TQSize ButtonFlowLayout::minimumSize() const { - return tqminimumSize(tqgeometry().size()); + return minimumSize(tqgeometry().size()); } -TQSize ButtonFlowLayout::tqminimumSize(const TQSize &r) const +TQSize ButtonFlowLayout::minimumSize(const TQSize &r) const { TQSize s(0, 0); for (TQPtrListIterator<TQLayoutItem> it(list); it.current(); ++it) { TQLayoutItem *o = it.current(); - s = s.expandedTo( o->tqsizeHint()); //tqminimumSize() ); + s = s.expandedTo( o->sizeHint()); //minimumSize() ); } s.setHeight(heightForWidth(r.width())); |