summaryrefslogtreecommitdiffstats
path: root/ksquirrel/sq_iconlistbox.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ksquirrel/sq_iconlistbox.cpp')
-rw-r--r--ksquirrel/sq_iconlistbox.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/ksquirrel/sq_iconlistbox.cpp b/ksquirrel/sq_iconlistbox.cpp
index 5c67eac..39e155a 100644
--- a/ksquirrel/sq_iconlistbox.cpp
+++ b/ksquirrel/sq_iconlistbox.cpp
@@ -22,10 +22,10 @@
#include "sq_iconlistbox.h"
#include "sq_iconlistitem.h"
-SQ_IconListBox::SQ_IconListBox(QWidget *parent, const char *name, WFlags f) : KListBox(parent, name, f),
+SQ_IconListBox::SQ_IconListBox(TQWidget *tqparent, const char *name, WFlags f) : KListBox(tqparent, name, f),
mHeightValid(false), mWidthValid(false)
{
- setHScrollBarMode(QScrollView::AlwaysOff);
+ setHScrollBarMode(TQScrollView::AlwaysOff);
}
void SQ_IconListBox::updateWidth()
@@ -34,40 +34,40 @@ void SQ_IconListBox::updateWidth()
{
int maxWidth = 10, w;
- for(QListBoxItem *i = item(0); i != 0; i = i->next())
+ for(TQListBoxItem *i = item(0); i != 0; i = i->next())
{
w = ((SQ_IconListItem *)i)->width(this);
- maxWidth = QMAX(w, maxWidth);
+ maxWidth = TQMAX(w, maxWidth);
}
- for(QListBoxItem *i = item(0); i != 0; i = i->next())
+ for(TQListBoxItem *i = item(0); i != 0; i = i->next())
((SQ_IconListItem *)i)->expandMinimumWidth(maxWidth + 30);
if(verticalScrollBar()->isVisible())
- maxWidth += verticalScrollBar()->sizeHint().width();
+ maxWidth += verticalScrollBar()->tqsizeHint().width();
setFixedWidth(maxWidth + frameWidth()*2 + 30);
mWidthValid = true;
}
}
-void SQ_IconListBox::invalidateHeight()
+void SQ_IconListBox::tqinvalidateHeight()
{
mHeightValid = false;
}
-void SQ_IconListBox::invalidateWidth()
+void SQ_IconListBox::tqinvalidateWidth()
{
mWidthValid = false;
}
-void SQ_IconListBox::updateAndInstall(QObject *o)
+void SQ_IconListBox::updateAndInstall(TQObject *o)
{
- invalidateHeight();
- invalidateWidth();
+ tqinvalidateHeight();
+ tqinvalidateWidth();
updateWidth();
- QFont listFont(font());
+ TQFont listFont(font());
listFont.setBold(true);
setFont(listFont);