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 38cdbac..4cd8dd0 100644
--- a/kradio3/plugins/gui-quickbar/buttonflowlayout.cpp
+++ b/kradio3/plugins/gui-quickbar/buttonflowlayout.cpp
@@ -1,7 +1,7 @@
/****************************************************************************
-** $Id: buttonflowlayout.cpp 272 2005-05-18 08:12:51Z emw $
+** $Id: buttonflowtqlayout.cpp 272 2005-05-18 08:12:51Z emw $
**
-** Implementing your own layout: flow example
+** Implementing your own tqlayout: flow example
**
** Copyright (C) 1996 by Trolltech AS. All rights reserved.
**
@@ -104,9 +104,9 @@ bool ButtonFlowLayout::hasHeightForWidth() const
return TRUE;
}
-TQSize ButtonFlowLayout::sizeHint() const
+TQSize ButtonFlowLayout::tqsizeHint() const
{
- return minimumSize();
+ return tqminimumSize();
}
TQSizePolicy::ExpandData ButtonFlowLayout::expanding() const
@@ -133,7 +133,7 @@ void ButtonFlowLayout::setGeometry( const TQRect &r )
int ButtonFlowLayout::doLayout( const TQRect &r, bool testonly )
{
-/* kdDebug() << "buttonflowlayout::doLayout ("
+/* kdDebug() << "buttonflowtqlayout::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->sizeHint().width() );
- buttonHeight = TQMAX( buttonHeight, o->sizeHint().height() );
+ buttonWidth = TQMAX( buttonWidth, o->tqsizeHint().width() );
+ buttonHeight = TQMAX( buttonHeight, o->tqsizeHint().height() );
}
// calculate the optimal width
@@ -217,19 +217,19 @@ int ButtonFlowLayout::doLayout( const TQRect &r, bool testonly )
}
-TQSize ButtonFlowLayout::minimumSize() const
+TQSize ButtonFlowLayout::tqminimumSize() const
{
- return minimumSize(geometry().size());
+ return tqminimumSize(tqgeometry().size());
}
-TQSize ButtonFlowLayout::minimumSize(const TQSize &r) const
+TQSize ButtonFlowLayout::tqminimumSize(const TQSize &r) const
{
TQSize s(0, 0);
for (TQPtrListIterator<TQLayoutItem> it(list); it.current(); ++it) {
TQLayoutItem *o = it.current();
- s = s.expandedTo( o->sizeHint()); //minimumSize() );
+ s = s.expandedTo( o->tqsizeHint()); //tqminimumSize() );
}
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).at(index)) : 0;
+ return index >= 0 && index < list.count() ? (const_cast<TQPtrList<TQLayoutItem>&>(list).tqat(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.at(index);
- list.remove(list.at(index));
+ TQLayoutItem *item = list.tqat(index);
+ list.remove(list.tqat(index));
delete item;
invalidate();