summaryrefslogtreecommitdiffstats
path: root/lib/kofficeui/KoTabChooser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/kofficeui/KoTabChooser.cpp')
-rw-r--r--lib/kofficeui/KoTabChooser.cpp34
1 files changed, 17 insertions, 17 deletions
diff --git a/lib/kofficeui/KoTabChooser.cpp b/lib/kofficeui/KoTabChooser.cpp
index 414db6bb..71a12342 100644
--- a/lib/kofficeui/KoTabChooser.cpp
+++ b/lib/kofficeui/KoTabChooser.cpp
@@ -22,9 +22,9 @@
/******************************************************************/
#include <KoTabChooser.h>
-#include <qpainter.h>
-#include <qpopupmenu.h>
-#include <qcursor.h>
+#include <tqpainter.h>
+#include <tqpopupmenu.h>
+#include <tqcursor.h>
#include <klocale.h>
@@ -43,8 +43,8 @@ public:
/******************************************************************/
/*================================================================*/
-KoTabChooser::KoTabChooser( QWidget *parent, int _flags )
- : QFrame( parent, "" )
+KoTabChooser::KoTabChooser( TQWidget *tqparent, int _flags )
+ : TQFrame( tqparent, "" )
{
setFrameStyle( MenuBarPanel );
flags = _flags;
@@ -63,7 +63,7 @@ KoTabChooser::KoTabChooser( QWidget *parent, int _flags )
}
/*================================================================*/
-void KoTabChooser::mousePressEvent( QMouseEvent *e )
+void KoTabChooser::mousePressEvent( TQMouseEvent *e )
{
if ( currType == 0 ) return;
@@ -71,7 +71,7 @@ void KoTabChooser::mousePressEvent( QMouseEvent *e )
return;
switch ( e->button() ) {
- case LeftButton: case MidButton: {
+ case Qt::LeftButton: case Qt::MidButton: {
switch ( currType ) {
case TAB_LEFT: {
if ( flags & TAB_CENTER ) currType = TAB_CENTER;
@@ -94,10 +94,10 @@ void KoTabChooser::mousePressEvent( QMouseEvent *e )
else if ( flags & TAB_RIGHT ) currType = TAB_RIGHT;
} break;
}
- repaint( true );
+ tqrepaint( true );
} break;
- case RightButton: {
- QPoint pnt( QCursor::pos() );
+ case Qt::RightButton: {
+ TQPoint pnt( TQCursor::pos() );
rb_menu->setItemChecked( mLeft, false );
rb_menu->setItemChecked( mCenter, false );
@@ -122,11 +122,11 @@ void KoTabChooser::mousePressEvent( QMouseEvent *e )
}
/*================================================================*/
-void KoTabChooser::drawContents( QPainter *painter )
+void KoTabChooser::drawContents( TQPainter *painter )
{
if ( currType == 0 ) return;
- painter->setPen( QPen( black, 2, SolidLine ) );
+ painter->setPen( TQPen( black, 2, SolidLine ) );
switch ( currType ) {
case TAB_LEFT: {
@@ -153,12 +153,12 @@ void KoTabChooser::drawContents( QPainter *painter )
/*================================================================*/
void KoTabChooser::setupMenu()
{
- rb_menu = new QPopupMenu();
+ rb_menu = new TQPopupMenu();
Q_CHECK_PTR( rb_menu );
- mLeft = rb_menu->insertItem( i18n( "Tabulator &Left" ), this, SLOT( rbLeft() ) );
- mCenter = rb_menu->insertItem( i18n( "Tabulator &Center" ), this, SLOT( rbCenter() ) );
- mRight = rb_menu->insertItem( i18n( "Tabulator &Right" ), this, SLOT( rbRight() ) );
- mDecPoint = rb_menu->insertItem( i18n( "Tabulator &Decimal Point" ), this, SLOT( rbDecPoint() ) );
+ mLeft = rb_menu->insertItem( i18n( "Tabulator &Left" ), this, TQT_SLOT( rbLeft() ) );
+ mCenter = rb_menu->insertItem( i18n( "Tabulator &Center" ), this, TQT_SLOT( rbCenter() ) );
+ mRight = rb_menu->insertItem( i18n( "Tabulator &Right" ), this, TQT_SLOT( rbRight() ) );
+ mDecPoint = rb_menu->insertItem( i18n( "Tabulator &Decimal Point" ), this, TQT_SLOT( rbDecPoint() ) );
rb_menu->setCheckable( false );
}