summaryrefslogtreecommitdiffstats
path: root/kradio3/plugins/gui-quickbar/buttonflowlayout.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kradio3/plugins/gui-quickbar/buttonflowlayout.cpp')
-rw-r--r--kradio3/plugins/gui-quickbar/buttonflowlayout.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/kradio3/plugins/gui-quickbar/buttonflowlayout.cpp b/kradio3/plugins/gui-quickbar/buttonflowlayout.cpp
index 4cd8dd0..38cdbac 100644
--- a/kradio3/plugins/gui-quickbar/buttonflowlayout.cpp
+++ b/kradio3/plugins/gui-quickbar/buttonflowlayout.cpp
@@ -1,7 +1,7 @@
/****************************************************************************
-** $Id: buttonflowtqlayout.cpp 272 2005-05-18 08:12:51Z emw $
+** $Id: buttonflowlayout.cpp 272 2005-05-18 08:12:51Z emw $
**
-** Implementing your own tqlayout: flow example
+** Implementing your own layout: flow example
**
** Copyright (C) 1996 by Trolltech AS. All rights reserved.
**
@@ -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
@@ -133,7 +133,7 @@ void ButtonFlowLayout::setGeometry( const TQRect &r )
int ButtonFlowLayout::doLayout( const TQRect &r, bool testonly )
{
-/* kdDebug() << "buttonflowtqlayout::doLayout ("
+/* kdDebug() << "buttonflowlayout::doLayout ("
<< r.x() << "," << r.y() << ","
<< r.width() << "," << r.height() << ", " << testonly << ")\n";
*/
@@ -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(geometry().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()));
@@ -249,7 +249,7 @@ int ButtonFlowLayout::count() const {
\reimp
*/
TQLayoutItem* ButtonFlowLayout::itemAt(int index) const {
- return index >= 0 && index < list.count() ? (const_cast<TQPtrList<TQLayoutItem>&>(list).tqat(index)) : 0;
+ return index >= 0 && index < list.count() ? (const_cast<TQPtrList<TQLayoutItem>&>(list).at(index)) : 0;
}
/*!
@@ -258,8 +258,8 @@ TQLayoutItem* ButtonFlowLayout::itemAt(int index) const {
TQLayoutItem* ButtonFlowLayout::takeAt(int index) {
if (index < 0 || index >= list.count())
return 0;
- TQLayoutItem *item = list.tqat(index);
- list.remove(list.tqat(index));
+ TQLayoutItem *item = list.at(index);
+ list.remove(list.at(index));
delete item;
invalidate();