diff options
Diffstat (limited to 'ksquirrel/sidebar/sq_multibar.cpp')
-rw-r--r-- | ksquirrel/sidebar/sq_multibar.cpp | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/ksquirrel/sidebar/sq_multibar.cpp b/ksquirrel/sidebar/sq_multibar.cpp index 2074399..3f1ba27 100644 --- a/ksquirrel/sidebar/sq_multibar.cpp +++ b/ksquirrel/sidebar/sq_multibar.cpp @@ -19,9 +19,9 @@ #include "config.h" #endif -#include <qwidgetstack.h> -#include <qsignalmapper.h> -#include <qsplitter.h> +#include <tqwidgetstack.h> +#include <tqsignalmapper.h> +#include <tqsplitter.h> #include <kmultitabbar.h> #include <kglobal.h> @@ -34,7 +34,7 @@ SQ_MultiBar * SQ_MultiBar::m_inst = 0; -SQ_MultiBar::SQ_MultiBar(QWidget *parent, const char *name) : QHBox(parent, name) +SQ_MultiBar::SQ_MultiBar(TQWidget *tqparent, const char *name) : TQHBox(tqparent, name) { m_inst = this; m_id = 0; @@ -43,9 +43,9 @@ SQ_MultiBar::SQ_MultiBar(QWidget *parent, const char *name) : QHBox(parent, name SQ_Config::instance()->setGroup("Interface"); m_width = SQ_Config::instance()->readNumEntry("splitter", 220); - mapper = new QSignalMapper(this); + mapper = new TQSignalMapper(TQT_TQOBJECT(this)); - connect(mapper, SIGNAL(mapped(int)), this, SLOT(raiseWidget(int))); + connect(mapper, TQT_SIGNAL(mapped(int)), this, TQT_SLOT(raiseWidget(int))); mt = new KMultiTabBar(KMultiTabBar::Vertical, this); @@ -56,15 +56,15 @@ SQ_MultiBar::SQ_MultiBar(QWidget *parent, const char *name) : QHBox(parent, name setSpacing(0); - QSplitter *ts = new QSplitter(Qt::Vertical, this); + TQSplitter *ts = new TQSplitter(Qt::Vertical, this); ts->setOpaqueResize(false); - // QWigdetStack will contain all widgets - stack = new QWidgetStack(ts); + // TQWigdetStack will contain all widgets + stack = new TQWidgetStack(ts); new SQ_PreviewWidget(ts); - QValueList<int> sz; + TQValueList<int> sz; sz.append(5500); sz.append(4500); ts->setSizes(sz); @@ -73,7 +73,7 @@ SQ_MultiBar::SQ_MultiBar(QWidget *parent, const char *name) : QHBox(parent, name SQ_MultiBar::~SQ_MultiBar() {} -void SQ_MultiBar::addWidget(QWidget *new_w, const QString &text, const QString &icon) +void SQ_MultiBar::addWidget(TQWidget *new_w, const TQString &text, const TQString &icon) { // add widget to stack stack->addWidget(new_w, m_id); @@ -82,10 +82,10 @@ void SQ_MultiBar::addWidget(QWidget *new_w, const QString &text, const QString & mt->appendTab(KGlobal::iconLoader()->loadIcon(icon, KIcon::Desktop, 22), m_id, text); // since we cann't determine which tab was clicked, - // we should use QSignalMapper to determine it. - mapper->setMapping(mt->tab(m_id), m_id); + // we should use TQSignalMapper to determine it. + mapper->setMapping(TQT_TQOBJECT(mt->tab(m_id)), m_id); - connect(mt->tab(m_id), SIGNAL(clicked()), mapper, SLOT(map())); + connect(mt->tab(m_id), TQT_SIGNAL(clicked()), mapper, TQT_SLOT(map())); m_id++; } @@ -102,8 +102,8 @@ void SQ_MultiBar::raiseWidget(int id) m_selected = id; - setMinimumSize(QSize(0, 0)); - setMaximumSize(QSize(10000, 10000)); + setMinimumSize(TQSize(0, 0)); + setMaximumSize(TQSize(10000, 10000)); stack->raiseWidget(id); stack->resize(m_width, stack->height()); stack->show(); @@ -126,7 +126,7 @@ void SQ_MultiBar::raiseWidget(int id) void SQ_MultiBar::updateLayout() { - setFixedWidth(mt->sizeHint().width()); + setFixedWidth(mt->tqsizeHint().width()); stack->hide(); } |