summaryrefslogtreecommitdiffstats
path: root/lib/widgets/resizablecombo.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/widgets/resizablecombo.cpp')
-rw-r--r--lib/widgets/resizablecombo.cpp36
1 files changed, 18 insertions, 18 deletions
diff --git a/lib/widgets/resizablecombo.cpp b/lib/widgets/resizablecombo.cpp
index 7d7ecb39..6ca7e239 100644
--- a/lib/widgets/resizablecombo.cpp
+++ b/lib/widgets/resizablecombo.cpp
@@ -20,11 +20,11 @@
#include "kcomboview.h"
-#include <qevent.h>
-#include <qlayout.h>
-#include <qpixmap.h>
-#include <qapplication.h>
-#include <qwhatsthis.h>
+#include <tqevent.h>
+#include <tqlayout.h>
+#include <tqpixmap.h>
+#include <tqapplication.h>
+#include <tqwhatsthis.h>
#include <klocale.h>
@@ -51,43 +51,43 @@ static const char * resize_xpm[] = {
" . ",
" "};
-ResizableCombo::ResizableCombo(KComboView *view, QWidget *parent, const char *name):
- QWidget(parent, name), m_sizer(0), m_combo(view)
+ResizableCombo::ResizableCombo(KComboView *view, TQWidget *parent, const char *name):
+ TQWidget(parent, name), m_sizer(0), m_combo(view)
{
- QHBoxLayout *l = new QHBoxLayout(this);
- view->reparent(this, QPoint(0,0));
+ TQHBoxLayout *l = new TQHBoxLayout(this);
+ view->reparent(this, TQPoint(0,0));
l->addWidget(view);
m_sizer = new MyPushButton(this);
- m_sizer->setPixmap(QPixmap(resize_xpm));
- QWhatsThis::add(m_sizer, i18n("Drag this to resize the combobox."));
+ m_sizer->setPixmap(TQPixmap(resize_xpm));
+ TQWhatsThis::add(m_sizer, i18n("Drag this to resize the combobox."));
l->addWidget(m_sizer);
}
-void MyPushButton::mousePressEvent( QMouseEvent * e )
+void MyPushButton::mousePressEvent( TQMouseEvent * e )
{
m_resizing = true;
m_pressedPos = e->globalPos();
m_width = m_combo->m_combo->width();
- QPushButton::mousePressEvent(e);
+ TQPushButton::mousePressEvent(e);
}
-void MyPushButton::mouseReleaseEvent( QMouseEvent * e )
+void MyPushButton::mouseReleaseEvent( TQMouseEvent * e )
{
m_resizing = false;
- QPushButton::mouseReleaseEvent(e);
+ TQPushButton::mouseReleaseEvent(e);
}
-void MyPushButton::mouseMoveEvent( QMouseEvent * e )
+void MyPushButton::mouseMoveEvent( TQMouseEvent * e )
{
if (m_resizing)
m_combo->m_combo->setMinimumWidth(m_width + e->globalPos().x() - pressedPos().x());
- QPushButton::mouseMoveEvent(e);
+ TQPushButton::mouseMoveEvent(e);
}
MyPushButton::MyPushButton( ResizableCombo * parent, const char * name )
- :QPushButton(parent, name), m_resizing(false), m_combo(parent)
+ :TQPushButton(parent, name), m_resizing(false), m_combo(parent)
{
setFocusPolicy(NoFocus);
setFlat(true);