summaryrefslogtreecommitdiffstats
path: root/krename/tabs.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'krename/tabs.cpp')
-rw-r--r--krename/tabs.cpp44
1 files changed, 22 insertions, 22 deletions
diff --git a/krename/tabs.cpp b/krename/tabs.cpp
index b6ed00e..bb3543a 100644
--- a/krename/tabs.cpp
+++ b/krename/tabs.cpp
@@ -19,10 +19,10 @@
#include "krenameimpl.h"
#include "kmyhistorycombo.h"
-// Qt includes
-#include <qlayout.h>
-#include <qsizepolicy.h>
-#include <qtabwidget.h>
+// TQt includes
+#include <tqlayout.h>
+#include <tqsizepolicy.h>
+#include <tqtabwidget.h>
// KDE includes
#include <kapplication.h>
@@ -33,16 +33,16 @@
#include <kpushbutton.h>
#include <kstartupinfo.h>
-tabs::tabs(KRenameImpl* impl, QRect r, QWidget *parent, const char *name )
- : QDialog(parent,name)
+tabs::tabs(KRenameImpl* impl, TQRect r, TQWidget *tqparent, const char *name )
+ : TQDialog(tqparent,name)
{
setIcon( BarIcon( "krename" ) );
- QVBoxLayout* layout = new QVBoxLayout( this, 6, 6 );
- QHBoxLayout* buttons = new QHBoxLayout( 0, 6, 6 );
- QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Expanding );
+ TQVBoxLayout* tqlayout = new TQVBoxLayout( this, 6, 6 );
+ TQHBoxLayout* buttons = new TQHBoxLayout( 0, 6, 6 );
+ TQSpacerItem* spacer = new TQSpacerItem( 20, 20, TQSizePolicy::Expanding, TQSizePolicy::Expanding );
- tab = new QTabWidget( this );
+ tab = new TQTabWidget( this );
finishButton = new KPushButton( i18n("&Finish"), this );
finishButton->setIconSet( SmallIconSet( "finish" ) );
finishButton->setDefault( true );
@@ -53,21 +53,21 @@ tabs::tabs(KRenameImpl* impl, QRect r, QWidget *parent, const char *name )
buttons->addWidget( finishButton );
buttons->addWidget( cancelButton );
- layout->addWidget( tab );
- layout->addLayout( buttons );
- layout->setStretchFactor( tab, 2 );
+ tqlayout->addWidget( tab );
+ tqlayout->addLayout( buttons );
+ tqlayout->setStretchFactor( tab, 2 );
menuBar = new KMenuBar( this );
- layout->setMenuBar( menuBar );
+ tqlayout->setMenuBar( menuBar );
- connect( cancelButton, SIGNAL( clicked() ), this, SLOT( close() ) );
+ connect( cancelButton, TQT_SIGNAL( clicked() ), this, TQT_SLOT( close() ) );
krename = impl ? impl : new KRenameImpl( this, menuBar, finishButton );
- connect( krename, SIGNAL( pageDone( QWidget*, const QString & ) ), this, SLOT( slotAddPage( QWidget*, const QString & ) ) );
- connect( krename, SIGNAL( showPage( int ) ), this, SLOT( slotShowPage( int ) ) );
- connect( krename, SIGNAL( enableFinish( bool ) ), this, SLOT( slotEnableFinish( bool ) ) );
- connect( tab, SIGNAL( currentChanged( QWidget* ) ), this, SLOT( slotTabChanged() ) );
+ connect( krename, TQT_SIGNAL( pageDone( TQWidget*, const TQString & ) ), this, TQT_SLOT( slotAddPage( TQWidget*, const TQString & ) ) );
+ connect( krename, TQT_SIGNAL( showPage( int ) ), this, TQT_SLOT( slotShowPage( int ) ) );
+ connect( krename, TQT_SIGNAL( enableFinish( bool ) ), this, TQT_SLOT( slotEnableFinish( bool ) ) );
+ connect( tab, TQT_SIGNAL( currentChanged( TQWidget* ) ), this, TQT_SLOT( slotTabChanged() ) );
if( impl )
{
@@ -86,7 +86,7 @@ tabs::~tabs()
{
}
-void tabs::slotAddPage( QWidget* page, const QString & title )
+void tabs::slotAddPage( TQWidget* page, const TQString & title )
{
tab->addTab( page, title );
}
@@ -110,10 +110,10 @@ void tabs::slotTabChanged()
}
}
-void tabs::keyPressEvent( QKeyEvent *e )
+void tabs::keyPressEvent( TQKeyEvent *e )
{
// ESC should not close KRename
- if( e->key() == Qt::Key_Escape )
+ if( e->key() == TQt::Key_Escape )
e->accept();
else
e->ignore();