summaryrefslogtreecommitdiffstats
path: root/kdeui/tests
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:46:43 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:46:43 +0000
commitffe8a83e053396df448e9413828527613ca3bd46 (patch)
treea73d4169e02df4a50f9a12cb165fcd0ab5bac7c6 /kdeui/tests
parent682bf3bfdcbcbb1fca85e8a36ed03e062e0555d5 (diff)
downloadtdelibs-ffe8a83e053396df448e9413828527613ca3bd46.tar.gz
tdelibs-ffe8a83e053396df448e9413828527613ca3bd46.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1157647 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdeui/tests')
-rw-r--r--kdeui/tests/itemcontainertest.cpp106
-rw-r--r--kdeui/tests/itemcontainertest.h24
-rw-r--r--kdeui/tests/kaboutdialogtest.cpp8
-rw-r--r--kdeui/tests/kaccelgentest.cpp16
-rw-r--r--kdeui/tests/kactiontest.cpp18
-rw-r--r--kdeui/tests/kalphaicontest.h14
-rw-r--r--kdeui/tests/kblendtest.cpp32
-rw-r--r--kdeui/tests/kblendtest.h12
-rw-r--r--kdeui/tests/kbuttonboxtest.cpp104
-rw-r--r--kdeui/tests/kcolordlgtest.cpp4
-rw-r--r--kdeui/tests/kcolortest.cpp14
-rw-r--r--kdeui/tests/kcolortest.h10
-rw-r--r--kdeui/tests/kcomboboxtest.cpp104
-rw-r--r--kdeui/tests/kcomboboxtest.h16
-rw-r--r--kdeui/tests/kcompletiontest.cpp76
-rw-r--r--kdeui/tests/kcompletiontest.h42
-rw-r--r--kdeui/tests/kdatepicktest.cpp2
-rw-r--r--kdeui/tests/kdatewidgettest.cpp2
-rw-r--r--kdeui/tests/kdesattest.cpp24
-rw-r--r--kdeui/tests/kdesattest.h10
-rw-r--r--kdeui/tests/kdialogbasetest.cpp14
-rw-r--r--kdeui/tests/kdocktest.cpp12
-rw-r--r--kdeui/tests/kdocktest.h2
-rw-r--r--kdeui/tests/kdockwidgetdemo.cpp268
-rw-r--r--kdeui/tests/kdockwidgetdemo.h102
-rw-r--r--kdeui/tests/kdockwidgettest.cpp46
-rw-r--r--kdeui/tests/kdockwidgettest.h18
-rw-r--r--kdeui/tests/kdualcolortest.cpp38
-rw-r--r--kdeui/tests/kdualcolortest.h10
-rw-r--r--kdeui/tests/keditlistboxtest.cpp12
-rw-r--r--kdeui/tests/kedittest.cpp4
-rw-r--r--kdeui/tests/kfontdialogtest.cpp6
-rw-r--r--kdeui/tests/kgradienttest.cpp16
-rw-r--r--kdeui/tests/kgradienttest.h8
-rw-r--r--kdeui/tests/khashtest.cpp20
-rw-r--r--kdeui/tests/khashtest.h8
-rw-r--r--kdeui/tests/kinputdialogtest.cpp12
-rw-r--r--kdeui/tests/kjanuswidgettest.cpp16
-rw-r--r--kdeui/tests/kledtest.cpp24
-rw-r--r--kdeui/tests/kledtest.h18
-rw-r--r--kdeui/tests/klineeditdlgtest.cpp4
-rw-r--r--kdeui/tests/klineedittest.cpp54
-rw-r--r--kdeui/tests/klineedittest.h20
-rw-r--r--kdeui/tests/klistviewtest.cpp2
-rw-r--r--kdeui/tests/kmainwindowrestoretest.cpp4
-rw-r--r--kdeui/tests/kmainwindowtest.cpp8
-rw-r--r--kdeui/tests/kmessageboxtest.cpp46
-rw-r--r--kdeui/tests/knuminputtest.cpp32
-rw-r--r--kdeui/tests/knuminputtest.h4
-rw-r--r--kdeui/tests/kpalettetest.cpp10
-rw-r--r--kdeui/tests/kpanelmenutest.cpp10
-rw-r--r--kdeui/tests/kpanelmenutest.h4
-rw-r--r--kdeui/tests/kpixmapregionselectordialogtest.cpp8
-rw-r--r--kdeui/tests/kpopuptest.cpp18
-rw-r--r--kdeui/tests/kprogresstest.cpp10
-rw-r--r--kdeui/tests/krulertest.cpp140
-rw-r--r--kdeui/tests/krulertest.h34
-rw-r--r--kdeui/tests/kseparatortest.cpp10
-rw-r--r--kdeui/tests/kspelltest.cpp18
-rw-r--r--kdeui/tests/kstatusbartest.cpp34
-rw-r--r--kdeui/tests/kstatusbartest.h10
-rw-r--r--kdeui/tests/ksystemtraytest.cpp2
-rw-r--r--kdeui/tests/ktabctltest.cpp56
-rw-r--r--kdeui/tests/ktabctltest.h12
-rw-r--r--kdeui/tests/ktabwidgettest.cpp164
-rw-r--r--kdeui/tests/ktabwidgettest.h54
-rw-r--r--kdeui/tests/ktextedittest.cpp4
-rw-r--r--kdeui/tests/ktoolbarlabelactiontest.cpp8
-rw-r--r--kdeui/tests/kunbalancedgrdtest.cpp36
-rw-r--r--kdeui/tests/kunbalancedgrdtest.h22
-rw-r--r--kdeui/tests/kwindowtest.cpp122
-rw-r--r--kdeui/tests/kwindowtest.h24
-rw-r--r--kdeui/tests/kwizardtest.cpp22
-rw-r--r--kdeui/tests/kwordwraptest.cpp10
-rw-r--r--kdeui/tests/kxmlguitest.cpp12
-rw-r--r--kdeui/tests/kxmlguitest.h6
-rw-r--r--kdeui/tests/qxembedtest.cpp24
77 files changed, 1175 insertions, 1175 deletions
diff --git a/kdeui/tests/itemcontainertest.cpp b/kdeui/tests/itemcontainertest.cpp
index 7ad145c9e..1767bec5f 100644
--- a/kdeui/tests/itemcontainertest.cpp
+++ b/kdeui/tests/itemcontainertest.cpp
@@ -8,13 +8,13 @@
*
*/
-#include <qlayout.h>
-#include <qvbox.h>
-#include <qhbox.h>
-#include <qbuttongroup.h>
-#include <qradiobutton.h>
-#include <qcheckbox.h>
-#include <qlabel.h>
+#include <tqlayout.h>
+#include <tqvbox.h>
+#include <tqhbox.h>
+#include <tqbuttongroup.h>
+#include <tqradiobutton.h>
+#include <tqcheckbox.h>
+#include <tqlabel.h>
#include <kapplication.h>
#include <kglobal.h>
@@ -56,70 +56,70 @@ static const char * item_xpm[] = {
KApplication *app;
-TopLevel::TopLevel(QWidget *parent, const char *name)
- : QWidget(parent, name)
+TopLevel::TopLevel(TQWidget *parent, const char *name)
+ : TQWidget(parent, name)
{
setCaption("Item container test application");
- QHBoxLayout* hBox = new QHBoxLayout( this );
- QVBoxLayout* vBox = new QVBoxLayout( hBox );
+ TQHBoxLayout* hBox = new TQHBoxLayout( this );
+ TQVBoxLayout* vBox = new TQVBoxLayout( hBox );
hBox->addSpacing( 5 );
//Selection mode selection
- m_pbgMode = new QButtonGroup( 1, Qt::Horizontal, "Selection Mode", this);
- m_pbgMode->insert(new QRadioButton("NoSlection", m_pbgMode), TopLevel::NoSelection );
- m_pbgMode->insert(new QRadioButton("Single", m_pbgMode), TopLevel::Single );
- m_pbgMode->insert(new QRadioButton("Multi", m_pbgMode), TopLevel::Multi );
- m_pbgMode->insert(new QRadioButton("Extended", m_pbgMode), TopLevel::Extended );
+ m_pbgMode = new TQButtonGroup( 1, Qt::Horizontal, "Selection Mode", this);
+ m_pbgMode->insert(new TQRadioButton("NoSlection", m_pbgMode), TopLevel::NoSelection );
+ m_pbgMode->insert(new TQRadioButton("Single", m_pbgMode), TopLevel::Single );
+ m_pbgMode->insert(new TQRadioButton("Multi", m_pbgMode), TopLevel::Multi );
+ m_pbgMode->insert(new TQRadioButton("Extended", m_pbgMode), TopLevel::Extended );
m_pbgMode->setExclusive( true );
vBox->addWidget( m_pbgMode );
- connect( m_pbgMode, SIGNAL( clicked( int ) ),
- this, SLOT( slotSwitchMode( int ) ) );
+ connect( m_pbgMode, TQT_SIGNAL( clicked( int ) ),
+ this, TQT_SLOT( slotSwitchMode( int ) ) );
//Signal labels
- QGroupBox* gbWiget = new QGroupBox( 1, Qt::Horizontal, "Widget", this);
- m_plblWidget = new QLabel( gbWiget );
+ TQGroupBox* gbWiget = new TQGroupBox( 1, Qt::Horizontal, "Widget", this);
+ m_plblWidget = new TQLabel( gbWiget );
vBox->addWidget( gbWiget );
- QGroupBox* gbSignal = new QGroupBox( 1, Qt::Horizontal, "emitted Signal", this);
- m_plblSignal = new QLabel( gbSignal );
+ TQGroupBox* gbSignal = new TQGroupBox( 1, Qt::Horizontal, "emitted Signal", this);
+ m_plblSignal = new TQLabel( gbSignal );
vBox->addWidget( gbSignal );
- QGroupBox* gbItem = new QGroupBox( 1, Qt::Horizontal, "on Item", this);
- m_plblItem = new QLabel( gbItem );
+ TQGroupBox* gbItem = new TQGroupBox( 1, Qt::Horizontal, "on Item", this);
+ m_plblItem = new TQLabel( gbItem );
vBox->addWidget( gbItem );
- QButtonGroup* bgListView = new QButtonGroup( 1, Qt::Horizontal, "KListView", this);
- QCheckBox* cbListView = new QCheckBox("Single Column", bgListView);
+ TQButtonGroup* bgListView = new TQButtonGroup( 1, Qt::Horizontal, "KListView", this);
+ TQCheckBox* cbListView = new TQCheckBox("Single Column", bgListView);
vBox->addWidget( bgListView );
- connect( cbListView, SIGNAL( toggled( bool ) ),
- this, SLOT( slotToggleSingleColumn( bool ) ) );
+ connect( cbListView, TQT_SIGNAL( toggled( bool ) ),
+ this, TQT_SLOT( slotToggleSingleColumn( bool ) ) );
KGlobal::config()->reparseConfiguration();
//Create IconView
- QGroupBox* gbIconView = new QGroupBox( 1, Qt::Horizontal, "KIconView", this);
+ TQGroupBox* gbIconView = new TQGroupBox( 1, Qt::Horizontal, "KIconView", this);
m_pIconView = new KIconView( gbIconView );
hBox->addWidget( gbIconView );
hBox->addSpacing( 5 );
- connect( m_pIconView, SIGNAL( executed( QIconViewItem* ) ),
- this, SLOT( slotIconViewExec( QIconViewItem* ) ) );
+ connect( m_pIconView, TQT_SIGNAL( executed( TQIconViewItem* ) ),
+ this, TQT_SLOT( slotIconViewExec( TQIconViewItem* ) ) );
//Create ListView
- QGroupBox* gbListView = new QGroupBox( 1, Qt::Horizontal, "KListView", this);
+ TQGroupBox* gbListView = new TQGroupBox( 1, Qt::Horizontal, "KListView", this);
m_pListView = new KListView( gbListView );
m_pListView->addColumn("Item");
m_pListView->addColumn("Text");
hBox->addWidget( gbListView );
hBox->addSpacing( 5 );
- connect( m_pListView, SIGNAL( executed( QListViewItem* ) ),
- this, SLOT( slotListViewExec( QListViewItem* ) ) );
+ connect( m_pListView, TQT_SIGNAL( executed( TQListViewItem* ) ),
+ this, TQT_SLOT( slotListViewExec( TQListViewItem* ) ) );
//Create ListBox
- QGroupBox* gbListBox = new QGroupBox( 1, Qt::Horizontal, "KListBox", this);
+ TQGroupBox* gbListBox = new TQGroupBox( 1, Qt::Horizontal, "KListBox", this);
m_pListBox = new KListBox( gbListBox );
hBox->addWidget( gbListBox );
- connect( m_pListBox, SIGNAL( executed( QListBoxItem* ) ),
- this, SLOT( slotListBoxExec( QListBoxItem* ) ) );
+ connect( m_pListBox, TQT_SIGNAL( executed( TQListBoxItem* ) ),
+ this, TQT_SLOT( slotListBoxExec( TQListBoxItem* ) ) );
//Initialize buttons
cbListView->setChecked( !m_pListView->allColumnsShowFocus() );
@@ -128,19 +128,19 @@ TopLevel::TopLevel(QWidget *parent, const char *name)
//Fill container widgets
for( int i = 0; i < 10; i++ ) {
- new QIconViewItem( m_pIconView, QString("Item%1").arg(i), QPixmap(item_xpm) );
+ new TQIconViewItem( m_pIconView, TQString("Item%1").arg(i), TQPixmap(item_xpm) );
- QListViewItem* lv = new QListViewItem( m_pListView, QString("Item%1").arg(i), QString("Text%1").arg(i) );
- lv->setPixmap( 0, QPixmap(item_xpm));
- lv->setPixmap( 1, QPixmap(item_xpm));
+ TQListViewItem* lv = new TQListViewItem( m_pListView, TQString("Item%1").arg(i), TQString("Text%1").arg(i) );
+ lv->setPixmap( 0, TQPixmap(item_xpm));
+ lv->setPixmap( 1, TQPixmap(item_xpm));
- new QListBoxPixmap( m_pListBox, QPixmap(item_xpm), QString("Item%1").arg(i));
+ new TQListBoxPixmap( m_pListBox, TQPixmap(item_xpm), TQString("Item%1").arg(i));
}
- connect( m_pIconView, SIGNAL( clicked( QIconViewItem* ) ),
- this, SLOT( slotClicked( QIconViewItem* ) ) );
- connect( m_pIconView, SIGNAL( doubleClicked( QIconViewItem* ) ),
- this, SLOT( slotDoubleClicked( QIconViewItem* ) ) );
+ connect( m_pIconView, TQT_SIGNAL( clicked( TQIconViewItem* ) ),
+ this, TQT_SLOT( slotClicked( TQIconViewItem* ) ) );
+ connect( m_pIconView, TQT_SIGNAL( doubleClicked( TQIconViewItem* ) ),
+ this, TQT_SLOT( slotDoubleClicked( TQIconViewItem* ) ) );
}
void TopLevel::slotSwitchMode( int id )
@@ -152,22 +152,22 @@ void TopLevel::slotSwitchMode( int id )
switch( id ) {
case TopLevel::NoSelection:
m_pIconView->setSelectionMode( KIconView::NoSelection );
- m_pListView->setSelectionMode( QListView::NoSelection );
+ m_pListView->setSelectionMode( TQListView::NoSelection );
m_pListBox->setSelectionMode( KListBox::NoSelection );
break;
case TopLevel::Single:
m_pIconView->setSelectionMode( KIconView::Single );
- m_pListView->setSelectionMode( QListView::Single );
+ m_pListView->setSelectionMode( TQListView::Single );
m_pListBox->setSelectionMode( KListBox::Single );
break;
case TopLevel::Multi:
m_pIconView->setSelectionMode( KIconView::Multi );
- m_pListView->setSelectionMode( QListView::Multi );
+ m_pListView->setSelectionMode( TQListView::Multi );
m_pListBox->setSelectionMode( KListBox::Multi );
break;
case TopLevel::Extended:
m_pIconView->setSelectionMode( KIconView::Extended );
- m_pListView->setSelectionMode( QListView::Extended );
+ m_pListView->setSelectionMode( TQListView::Extended );
m_pListBox->setSelectionMode( KListBox::Extended );
break;
default:
@@ -175,7 +175,7 @@ void TopLevel::slotSwitchMode( int id )
}
}
-void TopLevel::slotIconViewExec( QIconViewItem* item )
+void TopLevel::slotIconViewExec( TQIconViewItem* item )
{
m_plblWidget->setText("KIconView");
m_plblSignal->setText("executed");
@@ -185,7 +185,7 @@ void TopLevel::slotIconViewExec( QIconViewItem* item )
m_plblItem->setText("Viewport");
}
-void TopLevel::slotListViewExec( QListViewItem* item )
+void TopLevel::slotListViewExec( TQListViewItem* item )
{
m_plblWidget->setText("KListView");
m_plblSignal->setText("executed");
@@ -195,7 +195,7 @@ void TopLevel::slotListViewExec( QListViewItem* item )
m_plblItem->setText("Viewport");
}
-void TopLevel::slotListBoxExec( QListBoxItem* item )
+void TopLevel::slotListBoxExec( TQListBoxItem* item )
{
m_plblWidget->setText("KListBox");
m_plblSignal->setText("executed");
diff --git a/kdeui/tests/itemcontainertest.h b/kdeui/tests/itemcontainertest.h
index c6091f5e5..01f7c006c 100644
--- a/kdeui/tests/itemcontainertest.h
+++ b/kdeui/tests/itemcontainertest.h
@@ -1,7 +1,7 @@
#ifndef _ITEMCONTAINERTEST_H
#define _ITEMCONTAINERTEST_H
-#include <qwidget.h>
+#include <tqwidget.h>
class KIconView;
class KListView;
@@ -14,7 +14,7 @@ class TopLevel : public QWidget
Q_OBJECT
public:
- TopLevel( QWidget *parent=0, const char *name=0 );
+ TopLevel( TQWidget *parent=0, const char *name=0 );
enum ViewID { IconView, ListView, ListBox };
enum ModeID { NoSelection, Single, Multi, Extended };
@@ -23,23 +23,23 @@ public slots:
//void slotSwitchView( int id );
void slotSwitchMode( int id );
- void slotIconViewExec( QIconViewItem* item );
- void slotListViewExec( QListViewItem* item );
- void slotListBoxExec( QListBoxItem* item );
+ void slotIconViewExec( TQIconViewItem* item );
+ void slotListViewExec( TQListViewItem* item );
+ void slotListBoxExec( TQListBoxItem* item );
void slotToggleSingleColumn( bool b );
- void slotClicked( QIconViewItem* ) { qDebug("CLICK");}
- void slotDoubleClicked( QIconViewItem* ) { qDebug("DOUBLE CLICK");}
+ void slotClicked( TQIconViewItem* ) { qDebug("CLICK");}
+ void slotDoubleClicked( TQIconViewItem* ) { qDebug("DOUBLE CLICK");}
protected:
KIconView* m_pIconView;
KListView* m_pListView;
KListBox* m_pListBox;
- QButtonGroup* m_pbgView;
- QButtonGroup* m_pbgMode;
- QLabel* m_plblWidget;
- QLabel* m_plblSignal;
- QLabel* m_plblItem;
+ TQButtonGroup* m_pbgView;
+ TQButtonGroup* m_pbgMode;
+ TQLabel* m_plblWidget;
+ TQLabel* m_plblSignal;
+ TQLabel* m_plblItem;
};
#endif
diff --git a/kdeui/tests/kaboutdialogtest.cpp b/kdeui/tests/kaboutdialogtest.cpp
index 89d25d531..ea92096b0 100644
--- a/kdeui/tests/kaboutdialogtest.cpp
+++ b/kdeui/tests/kaboutdialogtest.cpp
@@ -10,16 +10,16 @@
#include "kaboutdialog.h"
// #include <kimgio.h>
-#include <qimage.h>
+#include <tqimage.h>
#include <kapplication.h>
#include <klocale.h>
int main(int argc, char** argv)
{
(void)new KApplication(argc, argv, "KAboutDialogTest");
- QImage logo;
- QImage bg;
- QPixmap pix;
+ TQImage logo;
+ TQImage bg;
+ TQPixmap pix;
KAboutDialog about;
// -----
// kimgioRegister();
diff --git a/kdeui/tests/kaccelgentest.cpp b/kdeui/tests/kaccelgentest.cpp
index d619bdfba..f5f95ac57 100644
--- a/kdeui/tests/kaccelgentest.cpp
+++ b/kdeui/tests/kaccelgentest.cpp
@@ -1,13 +1,13 @@
#include "kaccelgen.h"
-#include <qstringlist.h>
+#include <tqstringlist.h>
#include <iostream>
using std::cout;
using std::endl;
-void check( const QString &what, const QStringList &expected, const QStringList &received )
+void check( const TQString &what, const TQStringList &expected, const TQStringList &received )
{
cout << "Testing " << what.latin1() << ": ";
if ( expected == received ) {
@@ -21,20 +21,20 @@ void check( const QString &what, const QStringList &expected, const QStringList
int main()
{
- QStringList input;
+ TQStringList input;
input << "foo" << "bar item" << "&baz" << "bif" << "boz" << "boz 2"
<< "yoyo && dyne";
- QStringList expected;
+ TQStringList expected;
expected << "&foo" << "bar &item" << "&baz" << "bif" << "b&oz" << "boz &2"
<< "&yoyo && dyne";
- QStringList output;
+ TQStringList output;
KAccelGen::generate( input, output );
- check( "QStringList value generation", expected, output );
+ check( "TQStringList value generation", expected, output );
- QMap<QString,QString> map;
- for (QStringList::ConstIterator it = input.begin(); it != input.end(); ++it) {
+ TQMap<TQString,TQString> map;
+ for (TQStringList::ConstIterator it = input.begin(); it != input.end(); ++it) {
map.insert(*it, *it);
}
input.sort();
diff --git a/kdeui/tests/kactiontest.cpp b/kdeui/tests/kactiontest.cpp
index 60fa334ee..ea97883c8 100644
--- a/kdeui/tests/kactiontest.cpp
+++ b/kdeui/tests/kactiontest.cpp
@@ -1,5 +1,5 @@
-#include <qguardedptr.h>
+#include <tqguardedptr.h>
#include <kapplication.h>
#include <kaction.h>
@@ -10,15 +10,15 @@ int main( int argc, char **argv )
{
KApplication app( argc, argv, "kactiontest" );
- KActionCollection coll( static_cast<QObject *>( 0 ) );
+ KActionCollection coll( static_cast<TQObject *>( 0 ) );
- QGuardedPtr<KAction> action1 = new KRadioAction("test",0, &coll);
- QGuardedPtr<KAction> action2 = new KRadioAction("test",0, &coll);
- QGuardedPtr<KAction> action3 = new KRadioAction("test",0, &coll);
- QGuardedPtr<KAction> action4 = new KRadioAction("test",0, &coll);
- QGuardedPtr<KAction> action5 = new KRadioAction("test",0, &coll);
- QGuardedPtr<KAction> action6 = new KRadioAction("test",0, &coll);
- QGuardedPtr<KAction> action7 = new KRadioAction("test",0, &coll);
+ TQGuardedPtr<KAction> action1 = new KRadioAction("test",0, &coll);
+ TQGuardedPtr<KAction> action2 = new KRadioAction("test",0, &coll);
+ TQGuardedPtr<KAction> action3 = new KRadioAction("test",0, &coll);
+ TQGuardedPtr<KAction> action4 = new KRadioAction("test",0, &coll);
+ TQGuardedPtr<KAction> action5 = new KRadioAction("test",0, &coll);
+ TQGuardedPtr<KAction> action6 = new KRadioAction("test",0, &coll);
+ TQGuardedPtr<KAction> action7 = new KRadioAction("test",0, &coll);
coll.clear();
assert( coll.isEmpty() );
diff --git a/kdeui/tests/kalphaicontest.h b/kdeui/tests/kalphaicontest.h
index 66d26e6f3..6143b569d 100644
--- a/kdeui/tests/kalphaicontest.h
+++ b/kdeui/tests/kalphaicontest.h
@@ -1,7 +1,7 @@
#include <kdebug.h>
-#include <qwidget.h>
-#include <qimage.h>
-#include <qpixmap.h>
+#include <tqwidget.h>
+#include <tqimage.h>
+#include <tqpixmap.h>
#include <kimageeffect.h>
#include <kalphapainter.h>
@@ -10,11 +10,11 @@ class KAlphaTest : public QWidget
public:
KAlphaTest();
protected:
- void paintEvent(QPaintEvent *);
+ void paintEvent(TQPaintEvent *);
private:
- QImage m_image;
- QPixmap m_pixmap;
- QImage m_bg;
+ TQImage m_image;
+ TQPixmap m_pixmap;
+ TQImage m_bg;
public:
static bool m_useDblBuffer;
diff --git a/kdeui/tests/kblendtest.cpp b/kdeui/tests/kblendtest.cpp
index f12d65b2b..e2d36a575 100644
--- a/kdeui/tests/kblendtest.cpp
+++ b/kdeui/tests/kblendtest.cpp
@@ -1,33 +1,33 @@
#include "kblendtest.h"
#include <kapplication.h>
#include <kimageeffect.h>
-#include <qpainter.h>
-#include <qdatetime.h>
-#include <qstring.h>
+#include <tqpainter.h>
+#include <tqdatetime.h>
+#include <tqstring.h>
int cols = 3, rows = 3; // how many
-KBlendWidget::KBlendWidget(QWidget *parent, const char *name)
- :QWidget(parent, name)
+KBlendWidget::KBlendWidget(TQWidget *parent, const char *name)
+ :TQWidget(parent, name)
{
bgnd = qRgb(255, 255, 255);
- image = QImage("testimage.png");
+ image = TQImage("testimage.png");
resize(image.width()*2+60, image.height()*3+80);
setBackgroundColor(bgnd);
}
-void KBlendWidget::paintEvent(QPaintEvent */*ev*/)
+void KBlendWidget::paintEvent(TQPaintEvent */*ev*/)
{
- QTime time;
+ TQTime time;
int it, ft;
- QString say;
+ TQString say;
- image = QImage("testimage.png");
+ image = TQImage("testimage.png");
- QPainter p(this);
+ TQPainter p(this);
p.setPen(Qt::black);
// you see here use of anti_dir param (blend from down to up, here)
@@ -39,7 +39,7 @@ void KBlendWidget::paintEvent(QPaintEvent */*ev*/)
p.drawImage(20, 20, image);
p.drawText(5 , 15, say);
- image = QImage("testimage.png");
+ image = TQImage("testimage.png");
// here a negative initial intensity is used (1/2 of image is unaffected)
it = time.elapsed();
@@ -49,7 +49,7 @@ void KBlendWidget::paintEvent(QPaintEvent */*ev*/)
p.drawImage(40+image.width(), 20, image);
p.drawText(15+image.width() , 15, say);
- image = QImage("testimage.png");
+ image = TQImage("testimage.png");
it = time.elapsed();
KImageEffect::blend(image, 0., bgnd, KImageEffect::DiagonalGradient,true);
@@ -58,7 +58,7 @@ void KBlendWidget::paintEvent(QPaintEvent */*ev*/)
p.drawImage(20, 40+image.height(), image);
p.drawText(5 , 35+image.height(), say);
- image = QImage("testimage.png");
+ image = TQImage("testimage.png");
it = time.elapsed();
KImageEffect::blend(image, 0.1, bgnd, KImageEffect::CrossDiagonalGradient);
@@ -67,7 +67,7 @@ void KBlendWidget::paintEvent(QPaintEvent */*ev*/)
p.drawImage(40+image.width(), 40+image.height(), image);
p.drawText(25+image.width() , 35 + image.height(), say);
- image = QImage("testimage.png");
+ image = TQImage("testimage.png");
it = time.elapsed();
KImageEffect::blend(image, -0.6, bgnd, KImageEffect::RectangleGradient);
@@ -76,7 +76,7 @@ void KBlendWidget::paintEvent(QPaintEvent */*ev*/)
p.drawImage(20, 60+2*image.height(), image);
p.drawText(5 , 55+2*image.height(), say);
- image = QImage("testimage.png");
+ image = TQImage("testimage.png");
it = time.elapsed();
KImageEffect::blend(image, 0.2, bgnd, KImageEffect::EllipticGradient);
diff --git a/kdeui/tests/kblendtest.h b/kdeui/tests/kblendtest.h
index 800f2d562..b0f4485dd 100644
--- a/kdeui/tests/kblendtest.h
+++ b/kdeui/tests/kblendtest.h
@@ -7,18 +7,18 @@
#ifndef __KBLEND_TEST_H
#define __KBLEND_TEST_H
-#include <qwidget.h>
-#include <qimage.h>
+#include <tqwidget.h>
+#include <tqimage.h>
class KBlendWidget : public QWidget
{
public:
- KBlendWidget(QWidget *parent=0, const char *name=0);
+ KBlendWidget(TQWidget *parent=0, const char *name=0);
protected:
- void paintEvent(QPaintEvent *ev);
+ void paintEvent(TQPaintEvent *ev);
private:
- QImage image, original;
- QColor bgnd;
+ TQImage image, original;
+ TQColor bgnd;
};
#endif
diff --git a/kdeui/tests/kbuttonboxtest.cpp b/kdeui/tests/kbuttonboxtest.cpp
index d9b070bc0..1773c47f9 100644
--- a/kdeui/tests/kbuttonboxtest.cpp
+++ b/kdeui/tests/kbuttonboxtest.cpp
@@ -18,20 +18,20 @@
*/
#include <kapplication.h>
#include "kbuttonbox.h"
-#include <qlayout.h>
-#include <qlabel.h>
-#include <qdialog.h>
-#include <qpushbutton.h>
+#include <tqlayout.h>
+#include <tqlabel.h>
+#include <tqdialog.h>
+#include <tqpushbutton.h>
int main(int argc, char **argv) {
KApplication a(argc, argv, "dummy");
// example 1
{
- QDialog *w = new QDialog(0, "A common dialog", true);
+ TQDialog *w = new TQDialog(0, "A common dialog", true);
w->setCaption("Example 1");
- QVBoxLayout *tl = new QVBoxLayout(w, 5);
- QLabel *l = new QLabel("A very common dialog\n\n"\
+ TQVBoxLayout *tl = new TQVBoxLayout(w, 5);
+ TQLabel *l = new TQLabel("A very common dialog\n\n"\
"OK and Cancel are left aligned, Help\n"\
"is right aligned. Try resizing\n"\
"the window!\n"
@@ -41,12 +41,12 @@ int main(int argc, char **argv) {
l->setMinimumSize(l->sizeHint());
tl->addWidget(l,1);
KButtonBox *bbox = new KButtonBox(w);
- QPushButton *b = bbox->addButton("OK");
+ TQPushButton *b = bbox->addButton("OK");
b->setDefault(true);
- w->connect(b, SIGNAL(clicked()),
- w, SLOT(accept()));
- w->connect(bbox->addButton("Cancel"), SIGNAL(clicked()),
- w, SLOT(accept()));
+ w->connect(b, TQT_SIGNAL(clicked()),
+ w, TQT_SLOT(accept()));
+ w->connect(bbox->addButton("Cancel"), TQT_SIGNAL(clicked()),
+ w, TQT_SLOT(accept()));
bbox->addStretch(1);
bbox->addButton("Help");
@@ -59,10 +59,10 @@ int main(int argc, char **argv) {
// example 2
{
- QDialog *w = new QDialog(0, "Right aligned buttons", true);
+ TQDialog *w = new TQDialog(0, "Right aligned buttons", true);
w->setCaption("Example 2");
- QVBoxLayout *tl = new QVBoxLayout(w, 5);
- QLabel *l = new QLabel("Another common dialog\n\n"\
+ TQVBoxLayout *tl = new TQVBoxLayout(w, 5);
+ TQLabel *l = new TQLabel("Another common dialog\n\n"\
"OK and Cancel are right aligned\n"\
"Try resizing the window!", w);
l->setAlignment(Qt::AlignVCenter|Qt::AlignLeft|Qt::WordBreak);
@@ -70,12 +70,12 @@ int main(int argc, char **argv) {
tl->addWidget(l,1);
KButtonBox *bbox = new KButtonBox(w);
bbox->addStretch(1);
- QPushButton *b = bbox->addButton("OK");
+ TQPushButton *b = bbox->addButton("OK");
b->setDefault(true);
- w->connect(b, SIGNAL(clicked()),
- w, SLOT(accept()));
- w->connect(bbox->addButton("Cancel"), SIGNAL(clicked()),
- w, SLOT(accept()));
+ w->connect(b, TQT_SIGNAL(clicked()),
+ w, TQT_SLOT(accept()));
+ w->connect(bbox->addButton("Cancel"), TQT_SIGNAL(clicked()),
+ w, TQT_SLOT(accept()));
bbox->layout();
tl->addWidget(bbox,0);
tl->activate();
@@ -85,10 +85,10 @@ int main(int argc, char **argv) {
// example 3
{
- QDialog *w = new QDialog(0, "Middle aligned buttons", true);
+ TQDialog *w = new TQDialog(0, "Middle aligned buttons", true);
w->setCaption("Example 3");
- QVBoxLayout *tl = new QVBoxLayout(w, 5);
- QLabel *l = new QLabel("Another common dialog\n\n"\
+ TQVBoxLayout *tl = new TQVBoxLayout(w, 5);
+ TQLabel *l = new TQLabel("Another common dialog\n\n"\
"OK and Cancel are middle aligned\n"\
"Try resizing the window!", w);
l->setAlignment(Qt::AlignVCenter|Qt::AlignLeft|Qt::WordBreak);
@@ -96,12 +96,12 @@ int main(int argc, char **argv) {
tl->addWidget(l,1);
KButtonBox *bbox = new KButtonBox(w);
bbox->addStretch(1);
- QPushButton *b = bbox->addButton("OK");
+ TQPushButton *b = bbox->addButton("OK");
b->setDefault(true);
- w->connect(b, SIGNAL(clicked()),
- w, SLOT(accept()));
- w->connect(bbox->addButton("Cancel"), SIGNAL(clicked()),
- w, SLOT(accept()));
+ w->connect(b, TQT_SIGNAL(clicked()),
+ w, TQT_SLOT(accept()));
+ w->connect(bbox->addButton("Cancel"), TQT_SIGNAL(clicked()),
+ w, TQT_SLOT(accept()));
bbox->addStretch(1);
bbox->layout();
tl->addWidget(bbox,0);
@@ -112,10 +112,10 @@ int main(int argc, char **argv) {
// example 4
{
- QDialog *w = new QDialog(0, "Bad example", true);
+ TQDialog *w = new TQDialog(0, "Bad example", true);
w->setCaption("Example 4");
- QVBoxLayout *tl = new QVBoxLayout(w, 5);
- QLabel *l = new QLabel("A very bad example\n\n"\
+ TQVBoxLayout *tl = new TQVBoxLayout(w, 5);
+ TQLabel *l = new TQLabel("A very bad example\n\n"\
"Sometimes it's a bad idea to take\n"
"the maximum width for all buttons\n"
"since it will look ugly -- "
@@ -125,12 +125,12 @@ int main(int argc, char **argv) {
tl->addWidget(l,1);
KButtonBox *bbox = new KButtonBox(w);
bbox->addStretch(1);
- QPushButton *b = bbox->addButton("OK");
+ TQPushButton *b = bbox->addButton("OK");
b->setDefault(true);
- w->connect(b, SIGNAL(clicked()),
- w, SLOT(accept()));
- w->connect(bbox->addButton("Cancel"), SIGNAL(clicked()),
- w, SLOT(accept()));
+ w->connect(b, TQT_SIGNAL(clicked()),
+ w, TQT_SLOT(accept()));
+ w->connect(bbox->addButton("Cancel"), TQT_SIGNAL(clicked()),
+ w, TQT_SLOT(accept()));
bbox->addButton("Push me and I give you a banana");
bbox->addStretch(1);
@@ -143,10 +143,10 @@ int main(int argc, char **argv) {
// example 5
{
- QDialog *w = new QDialog(0, "Bad example", true);
+ TQDialog *w = new TQDialog(0, "Bad example", true);
w->setCaption("Example 5");
- QVBoxLayout *tl = new QVBoxLayout(w, 5);
- QLabel *l = new QLabel("A better solution for the bad example\n\n"\
+ TQVBoxLayout *tl = new TQVBoxLayout(w, 5);
+ TQLabel *l = new TQLabel("A better solution for the bad example\n\n"\
"Use \"addButton(\"Push me and I give"
"you a banana\", true);\" to\n"
"prevent this strange effect as seen\n"
@@ -157,12 +157,12 @@ int main(int argc, char **argv) {
tl->addWidget(l,1);
KButtonBox *bbox = new KButtonBox(w);
bbox->addStretch(1);
- QPushButton *b = bbox->addButton("OK");
+ TQPushButton *b = bbox->addButton("OK");
b->setDefault(true);
- w->connect(b, SIGNAL(clicked()),
- w, SLOT(accept()));
- w->connect(bbox->addButton("Cancel"), SIGNAL(clicked()),
- w, SLOT(accept()));
+ w->connect(b, TQT_SIGNAL(clicked()),
+ w, TQT_SLOT(accept()));
+ w->connect(bbox->addButton("Cancel"), TQT_SIGNAL(clicked()),
+ w, TQT_SLOT(accept()));
bbox->addButton("Push me and I give you a banana", true);
bbox->addStretch(1);
@@ -175,10 +175,10 @@ int main(int argc, char **argv) {
// example 6
{
- QDialog *w = new QDialog(0, "Vertical", true);
+ TQDialog *w = new TQDialog(0, "Vertical", true);
w->setCaption("Example 6 (last)");
- QHBoxLayout *tl = new QHBoxLayout(w, 5);
- QLabel *l = new QLabel("Did I mention that it's possible\n"
+ TQHBoxLayout *tl = new TQHBoxLayout(w, 5);
+ TQLabel *l = new TQLabel("Did I mention that it's possible\n"
"to make vertically aligned buttons\n"
"too?"
,w);
@@ -186,12 +186,12 @@ int main(int argc, char **argv) {
l->setMinimumSize(l->sizeHint());
tl->addWidget(l,1);
KButtonBox *bbox = new KButtonBox(w, KButtonBox::Vertical);
- QPushButton *b = bbox->addButton("OK");
+ TQPushButton *b = bbox->addButton("OK");
b->setDefault(true);
- w->connect(b, SIGNAL(clicked()),
- w, SLOT(accept()));
- w->connect(bbox->addButton("Cancel"), SIGNAL(clicked()),
- w, SLOT(accept()));
+ w->connect(b, TQT_SIGNAL(clicked()),
+ w, TQT_SLOT(accept()));
+ w->connect(bbox->addButton("Cancel"), TQT_SIGNAL(clicked()),
+ w, TQT_SLOT(accept()));
bbox->addStretch(1);
bbox->layout();
diff --git a/kdeui/tests/kcolordlgtest.cpp b/kdeui/tests/kcolordlgtest.cpp
index b5ba68393..a7e64928d 100644
--- a/kdeui/tests/kcolordlgtest.cpp
+++ b/kdeui/tests/kcolordlgtest.cpp
@@ -24,10 +24,10 @@
int main( int argc, char *argv[] )
{
- QColor color;
+ TQColor color;
KLocale::setMainCatalogue("kdelibs");
- QApplication::setColorMode( QApplication::CustomColors );
+ TQApplication::setColorMode( TQApplication::CustomColors );
KApplication a( argc, argv, "KColorDialogTest" );
KConfig aConfig;
aConfig.setGroup( "KColorDialog-test" );
diff --git a/kdeui/tests/kcolortest.cpp b/kdeui/tests/kcolortest.cpp
index c4dd5892b..d4a5c2625 100644
--- a/kdeui/tests/kcolortest.cpp
+++ b/kdeui/tests/kcolortest.cpp
@@ -3,25 +3,25 @@
#include <kapplication.h>
#include <kimageeffect.h>
#include <stdio.h>
-#include <qdatetime.h>
+#include <tqdatetime.h>
bool fullscreen = false, oldway = false, intvsfade = false;
int max = 20; // how many steps
-KColorWidget::KColorWidget(QWidget *parent, const char *name)
- : QWidget(parent, name)
+KColorWidget::KColorWidget(TQWidget *parent, const char *name)
+ : TQWidget(parent, name)
{
if (fullscreen || intvsfade) {
- QPixmap shot = QPixmap::grabWindow(QApplication::desktop()->winId());
+ TQPixmap shot = TQPixmap::grabWindow(TQApplication::desktop()->winId());
original = shot.convertToImage();
}
else
- original = QImage("testimage.png");
+ original = TQImage("testimage.png");
resize(original.width(), original.height());
}
-void KColorWidget::paintEvent(QPaintEvent *)
+void KColorWidget::paintEvent(TQPaintEvent *)
{
if(!pixmap.isNull())
bitBlt(this, 0, 0, &pixmap, 0, 0, pixmap.width(), pixmap.height(),
@@ -33,7 +33,7 @@ void KColorWidget::doIntensityLoop()
int count;
int start, stop;
- QTime t;
+ TQTime t;
t.start();
diff --git a/kdeui/tests/kcolortest.h b/kdeui/tests/kcolortest.h
index 52cce12cc..ac8716d59 100644
--- a/kdeui/tests/kcolortest.h
+++ b/kdeui/tests/kcolortest.h
@@ -1,19 +1,19 @@
#ifndef __KCOLORTEST_H
#define __KCOLORTEST_H
-#include <qwidget.h>
-#include <qimage.h>
+#include <tqwidget.h>
+#include <tqimage.h>
#include <kpixmap.h>
class KColorWidget : public QWidget
{
public:
- KColorWidget(QWidget *parent=0, const char *name=0);
+ KColorWidget(TQWidget *parent=0, const char *name=0);
void doIntensityLoop();
protected:
- void paintEvent(QPaintEvent *ev);
+ void paintEvent(TQPaintEvent *ev);
private:
- QImage image, original;
+ TQImage image, original;
KPixmap pixmap;
};
diff --git a/kdeui/tests/kcomboboxtest.cpp b/kdeui/tests/kcomboboxtest.cpp
index 2eb1f73e0..44b849b44 100644
--- a/kdeui/tests/kcomboboxtest.cpp
+++ b/kdeui/tests/kcomboboxtest.cpp
@@ -13,18 +13,18 @@
#include <kiconloader.h>
#include <ksimpleconfig.h>
-#include <qpushbutton.h>
-#include <qlayout.h>
-#include <qpixmap.h>
-#include <qlabel.h>
-#include <qhbox.h>
-#include <qtimer.h>
+#include <tqpushbutton.h>
+#include <tqlayout.h>
+#include <tqpixmap.h>
+#include <tqlabel.h>
+#include <tqhbox.h>
+#include <tqtimer.h>
-KComboBoxTest::KComboBoxTest(QWidget* widget, const char* name )
- :QWidget(widget, name)
+KComboBoxTest::KComboBoxTest(TQWidget* widget, const char* name )
+ :TQWidget(widget, name)
{
- QVBoxLayout *vbox = new QVBoxLayout (this, KDialog::marginHint(), KDialog::spacingHint());
+ TQVBoxLayout *vbox = new TQVBoxLayout (this, KDialog::marginHint(), KDialog::spacingHint());
// Test for KCombo's KLineEdit destruction
KComboBox *testCombo = new KComboBox( true, this ); // rw, with KLineEdit
@@ -33,90 +33,90 @@ KComboBoxTest::KComboBoxTest(QWidget* widget, const char* name )
delete testCombo; // not needed anymore
// Qt combobox
- QHBox* hbox = new QHBox(this);
+ TQHBox* hbox = new TQHBox(this);
hbox->setSpacing (KDialog::spacingHint());
- QLabel* lbl = new QLabel("&QCombobox:", hbox);
- lbl->setSizePolicy (QSizePolicy::Maximum, QSizePolicy::Preferred);
+ TQLabel* lbl = new TQLabel("&QCombobox:", hbox);
+ lbl->setSizePolicy (TQSizePolicy::Maximum, TQSizePolicy::Preferred);
- m_qc = new QComboBox(hbox, "QtReadOnlyCombo" );
+ m_qc = new TQComboBox(hbox, "QtReadOnlyCombo" );
lbl->setBuddy (m_qc);
- QObject::connect (m_qc, SIGNAL(activated(int)), SLOT(slotActivated(int)));
- QObject::connect (m_qc, SIGNAL(activated(const QString&)), SLOT (slotActivated(const QString&)));
+ TQObject::connect (m_qc, TQT_SIGNAL(activated(int)), TQT_SLOT(slotActivated(int)));
+ TQObject::connect (m_qc, TQT_SIGNAL(activated(const TQString&)), TQT_SLOT (slotActivated(const TQString&)));
vbox->addWidget (hbox);
// Read-only combobox
- hbox = new QHBox(this);
+ hbox = new TQHBox(this);
hbox->setSpacing (KDialog::spacingHint());
- lbl = new QLabel("&Read-Only Combo:", hbox);
- lbl->setSizePolicy (QSizePolicy::Maximum, QSizePolicy::Preferred);
+ lbl = new TQLabel("&Read-Only Combo:", hbox);
+ lbl->setSizePolicy (TQSizePolicy::Maximum, TQSizePolicy::Preferred);
m_ro = new KComboBox(hbox, "ReadOnlyCombo" );
lbl->setBuddy (m_ro);
m_ro->setCompletionMode( KGlobalSettings::CompletionAuto );
- QObject::connect (m_ro, SIGNAL(activated(int)), SLOT(slotActivated(int)));
- QObject::connect (m_ro, SIGNAL(activated(const QString&)), SLOT (slotActivated(const QString&)));
+ TQObject::connect (m_ro, TQT_SIGNAL(activated(int)), TQT_SLOT(slotActivated(int)));
+ TQObject::connect (m_ro, TQT_SIGNAL(activated(const TQString&)), TQT_SLOT (slotActivated(const TQString&)));
vbox->addWidget (hbox);
// Read-write combobox
- hbox = new QHBox(this);
+ hbox = new TQHBox(this);
hbox->setSpacing (KDialog::spacingHint());
- lbl = new QLabel("&Editable Combo:", hbox);
- lbl->setSizePolicy (QSizePolicy::Maximum, QSizePolicy::Preferred);
+ lbl = new TQLabel("&Editable Combo:", hbox);
+ lbl->setSizePolicy (TQSizePolicy::Maximum, TQSizePolicy::Preferred);
m_rw = new KComboBox( true, hbox, "ReadWriteCombo" );
lbl->setBuddy (m_rw);
m_rw->setDuplicatesEnabled( true );
- m_rw->setInsertionPolicy( QComboBox::NoInsertion );
+ m_rw->setInsertionPolicy( TQComboBox::NoInsertion );
m_rw->setTrapReturnKey( true );
- QObject::connect (m_rw, SIGNAL(activated(int)), SLOT(slotActivated(int)));
- QObject::connect (m_rw, SIGNAL(activated(const QString&)), SLOT(slotActivated(const QString&)));
- QObject::connect (m_rw, SIGNAL(returnPressed()), SLOT(slotReturnPressed()));
- QObject::connect (m_rw, SIGNAL(returnPressed(const QString&)), SLOT(slotReturnPressed(const QString&)));
+ TQObject::connect (m_rw, TQT_SIGNAL(activated(int)), TQT_SLOT(slotActivated(int)));
+ TQObject::connect (m_rw, TQT_SIGNAL(activated(const TQString&)), TQT_SLOT(slotActivated(const TQString&)));
+ TQObject::connect (m_rw, TQT_SIGNAL(returnPressed()), TQT_SLOT(slotReturnPressed()));
+ TQObject::connect (m_rw, TQT_SIGNAL(returnPressed(const TQString&)), TQT_SLOT(slotReturnPressed(const TQString&)));
vbox->addWidget (hbox);
// History combobox...
- hbox = new QHBox(this);
+ hbox = new TQHBox(this);
hbox->setSpacing (KDialog::spacingHint());
- lbl = new QLabel("&History Combo:", hbox);
- lbl->setSizePolicy (QSizePolicy::Maximum, QSizePolicy::Preferred);
+ lbl = new TQLabel("&History Combo:", hbox);
+ lbl->setSizePolicy (TQSizePolicy::Maximum, TQSizePolicy::Preferred);
m_hc = new KHistoryCombo( true, hbox, "HistoryCombo" );
lbl->setBuddy (m_hc);
m_hc->setDuplicatesEnabled( true );
- m_hc->setInsertionPolicy( QComboBox::NoInsertion );
- QObject::connect (m_hc, SIGNAL(activated(int)), SLOT(slotActivated(int)));
- QObject::connect (m_hc, SIGNAL(activated(const QString&)), SLOT(slotActivated(const QString&)));
- QObject::connect (m_hc, SIGNAL(returnPressed()), SLOT(slotReturnPressed()));
+ m_hc->setInsertionPolicy( TQComboBox::NoInsertion );
+ TQObject::connect (m_hc, TQT_SIGNAL(activated(int)), TQT_SLOT(slotActivated(int)));
+ TQObject::connect (m_hc, TQT_SIGNAL(activated(const TQString&)), TQT_SLOT(slotActivated(const TQString&)));
+ TQObject::connect (m_hc, TQT_SIGNAL(returnPressed()), TQT_SLOT(slotReturnPressed()));
vbox->addWidget (hbox);
m_hc->setTrapReturnKey(true);
// Read-write combobox that is a replica of code in konqueror...
- hbox = new QHBox(this);
+ hbox = new TQHBox(this);
hbox->setSpacing (KDialog::spacingHint());
- lbl = new QLabel( "&Konq's Combo:", hbox);
- lbl->setSizePolicy (QSizePolicy::Maximum, QSizePolicy::Preferred);
+ lbl = new TQLabel( "&Konq's Combo:", hbox);
+ lbl->setSizePolicy (TQSizePolicy::Maximum, TQSizePolicy::Preferred);
m_konqc = new KComboBox( true, hbox, "KonqyCombo" );
lbl->setBuddy (m_konqc);
m_konqc->setMaxCount( 10 );
- QObject::connect (m_konqc, SIGNAL(activated(int)), SLOT(slotActivated(int)));
- QObject::connect (m_konqc, SIGNAL(activated(const QString&)), SLOT (slotActivated(const QString&)));
- QObject::connect (m_konqc, SIGNAL(returnPressed()), SLOT(slotReturnPressed()));
+ TQObject::connect (m_konqc, TQT_SIGNAL(activated(int)), TQT_SLOT(slotActivated(int)));
+ TQObject::connect (m_konqc, TQT_SIGNAL(activated(const TQString&)), TQT_SLOT (slotActivated(const TQString&)));
+ TQObject::connect (m_konqc, TQT_SIGNAL(returnPressed()), TQT_SLOT(slotReturnPressed()));
vbox->addWidget (hbox);
// Create an exit button
- hbox = new QHBox (this);
- m_btnExit = new QPushButton( "E&xit", hbox );
- QObject::connect( m_btnExit, SIGNAL(clicked()), SLOT(quitApp()) );
+ hbox = new TQHBox (this);
+ m_btnExit = new TQPushButton( "E&xit", hbox );
+ TQObject::connect( m_btnExit, TQT_SIGNAL(clicked()), TQT_SLOT(quitApp()) );
// Create a disable button...
- m_btnEnable = new QPushButton( "Disa&ble", hbox );
- QObject::connect (m_btnEnable, SIGNAL(clicked()), SLOT(slotDisable()));
+ m_btnEnable = new TQPushButton( "Disa&ble", hbox );
+ TQObject::connect (m_btnEnable, TQT_SIGNAL(clicked()), TQT_SLOT(slotDisable()));
vbox->addWidget (hbox);
// Popuplate the select-only list box
- QStringList list;
+ TQStringList list;
list << "Stone" << "Tree" << "Peables" << "Ocean" << "Sand" << "Chips"
<< "Computer" << "Mankind";
list.sort();
@@ -145,12 +145,12 @@ KComboBoxTest::KComboBoxTest(QWidget* widget, const char* name )
s_pCompletion->setCompletionMode( KGlobalSettings::completionMode() );
m_konqc->setCompletionObject( s_pCompletion );
- QPixmap pix = SmallIcon("www");
+ TQPixmap pix = SmallIcon("www");
m_konqc->insertItem( pix, "http://www.kde.org" );
m_konqc->setCurrentItem( m_konqc->count()-1 );
- m_timer = new QTimer (this);
- connect (m_timer, SIGNAL (timeout()), SLOT (slotTimeout()));
+ m_timer = new TQTimer (this);
+ connect (m_timer, TQT_SIGNAL (timeout()), TQT_SLOT (slotTimeout()));
}
KComboBoxTest::~KComboBoxTest()
@@ -195,7 +195,7 @@ void KComboBoxTest::slotActivated( int index )
kdDebug() << "Activated Combo: " << sender()->name() << ", index:" << index << endl;
}
-void KComboBoxTest::slotActivated (const QString& item)
+void KComboBoxTest::slotActivated (const TQString& item)
{
kdDebug() << "Activated Combo: " << sender()->name() << ", item: " << item << endl;
}
@@ -205,7 +205,7 @@ void KComboBoxTest::slotReturnPressed ()
kdDebug() << "Return Pressed: " << sender()->name() << endl;
}
-void KComboBoxTest::slotReturnPressed(const QString& item)
+void KComboBoxTest::slotReturnPressed(const TQString& item)
{
kdDebug() << "Return Pressed, value = " << item << endl;
}
diff --git a/kdeui/tests/kcomboboxtest.h b/kdeui/tests/kcomboboxtest.h
index 8c2a463b6..3321b7f43 100644
--- a/kdeui/tests/kcomboboxtest.h
+++ b/kdeui/tests/kcomboboxtest.h
@@ -1,7 +1,7 @@
#ifndef _KCOMBOBOXTEST_H
#define _KCOMBOBOXTEST_H
-#include <qwidget.h>
+#include <tqwidget.h>
class QTimer;
class QComboBox;
@@ -14,7 +14,7 @@ class KComboBoxTest : public QWidget
Q_OBJECT
public:
- KComboBoxTest ( QWidget *parent=0, const char *name=0 );
+ KComboBoxTest ( TQWidget *parent=0, const char *name=0 );
~KComboBoxTest();
private slots:
@@ -22,12 +22,12 @@ private slots:
void slotTimeout();
void slotDisable();
void slotReturnPressed();
- void slotReturnPressed(const QString&);
+ void slotReturnPressed(const TQString&);
void slotActivated( int );
- void slotActivated( const QString& );
+ void slotActivated( const TQString& );
protected:
- QComboBox* m_qc;
+ TQComboBox* m_qc;
KComboBox* m_ro;
KComboBox* m_rw;
@@ -35,10 +35,10 @@ protected:
KComboBox* m_konqc;
- QPushButton* m_btnExit;
- QPushButton* m_btnEnable;
+ TQPushButton* m_btnExit;
+ TQPushButton* m_btnEnable;
- QTimer* m_timer;
+ TQTimer* m_timer;
};
#endif
diff --git a/kdeui/tests/kcompletiontest.cpp b/kdeui/tests/kcompletiontest.cpp
index e04fdfc22..a0eba1bfd 100644
--- a/kdeui/tests/kcompletiontest.cpp
+++ b/kdeui/tests/kcompletiontest.cpp
@@ -9,14 +9,14 @@
****************************************************************************/
#include "kcompletiontest.h"
-#include <qgroupbox.h>
-#include <qlabel.h>
-#include <qlistbox.h>
-#include <qpushbutton.h>
-#include <qlayout.h>
-#include <qvariant.h>
-#include <qtooltip.h>
-#include <qwhatsthis.h>
+#include <tqgroupbox.h>
+#include <tqlabel.h>
+#include <tqlistbox.h>
+#include <tqpushbutton.h>
+#include <tqlayout.h>
+#include <tqvariant.h>
+#include <tqtooltip.h>
+#include <tqwhatsthis.h>
#include <kapplication.h>
#include <klineedit.h>
@@ -25,23 +25,23 @@
* Constructs a Form1 which is a child of 'parent', with the
* name 'name' and widget flags set to 'f'
*/
-Form1::Form1( QWidget* parent, const char* name )
- : QWidget( parent, name, WDestructiveClose )
+Form1::Form1( TQWidget* parent, const char* name )
+ : TQWidget( parent, name, WDestructiveClose )
{
if ( !name )
setName( "Form1" );
resize( 559, 465 );
setCaption( "Form1" );
- Form1Layout = new QVBoxLayout( this );
+ Form1Layout = new TQVBoxLayout( this );
Form1Layout->setSpacing( 6 );
Form1Layout->setMargin( 11 );
- GroupBox1 = new QGroupBox( this, "GroupBox1" );
+ GroupBox1 = new TQGroupBox( this, "GroupBox1" );
GroupBox1->setTitle( "Completion Test" );
GroupBox1->setColumnLayout(0, Qt::Vertical );
GroupBox1->layout()->setSpacing( 0 );
GroupBox1->layout()->setMargin( 0 );
- GroupBox1Layout = new QVBoxLayout( GroupBox1->layout() );
+ GroupBox1Layout = new TQVBoxLayout( GroupBox1->layout() );
GroupBox1Layout->setAlignment( Qt::AlignTop );
GroupBox1Layout->setSpacing( 6 );
GroupBox1Layout->setMargin( 11 );
@@ -54,7 +54,7 @@ Form1::Form1( QWidget* parent, const char* name )
Layout1->setSpacing( 6 );
Layout1->setMargin( 0 );
- TextLabel1 = new QLabel( GroupBox1, "TextLabel1" );
+ TextLabel1 = new TQLabel( GroupBox1, "TextLabel1" );
TextLabel1->setText( "Completion" );
Layout1->addWidget( TextLabel1 );
@@ -64,7 +64,7 @@ Form1::Form1( QWidget* parent, const char* name )
edit->completionObject()->setItems( defaultItems() );
edit->completionObject()->setIgnoreCase( true );
edit->setFocus();
- QToolTip::add( edit, "right-click to change completion mode" );
+ TQToolTip::add( edit, "right-click to change completion mode" );
Layout2 = new QHBoxLayout;
Layout2->setSpacing( 6 );
@@ -74,29 +74,29 @@ Form1::Form1( QWidget* parent, const char* name )
combo->setCompletionObject( edit->completionObject() );
// combo->setMaxCount( 5 );
combo->setHistoryItems( defaultItems(), true );
- connect( combo, SIGNAL( activated( const QString& )),
- combo, SLOT( addToHistory( const QString& )));
- QToolTip::add( combo, "KHistoryCombo" );
+ connect( combo, TQT_SIGNAL( activated( const TQString& )),
+ combo, TQT_SLOT( addToHistory( const TQString& )));
+ TQToolTip::add( combo, "KHistoryCombo" );
Layout2->addWidget( combo );
LineEdit1 = new KLineEdit( GroupBox1, "LineEdit1" );
Layout2->addWidget( LineEdit1 );
- PushButton1 = new QPushButton( GroupBox1, "PushButton1" );
+ PushButton1 = new TQPushButton( GroupBox1, "PushButton1" );
PushButton1->setText( "Add" );
- connect( PushButton1, SIGNAL( clicked() ), SLOT( slotAdd() ));
+ connect( PushButton1, TQT_SIGNAL( clicked() ), TQT_SLOT( slotAdd() ));
Layout2->addWidget( PushButton1 );
Layout9->addLayout( Layout2 );
Layout3 = new QHBoxLayout;
Layout3->setSpacing( 6 );
Layout3->setMargin( 0 );
- QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
+ TQSpacerItem* spacer = new TQSpacerItem( 20, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
Layout3->addItem( spacer );
- PushButton1_4 = new QPushButton( GroupBox1, "PushButton1_4" );
+ PushButton1_4 = new TQPushButton( GroupBox1, "PushButton1_4" );
PushButton1_4->setText( "Remove" );
- connect( PushButton1_4, SIGNAL( clicked() ), SLOT( slotRemove() ));
+ connect( PushButton1_4, TQT_SIGNAL( clicked() ), TQT_SLOT( slotRemove() ));
Layout3->addWidget( PushButton1_4 );
Layout9->addLayout( Layout3 );
@@ -104,25 +104,25 @@ Form1::Form1( QWidget* parent, const char* name )
Layout8->setSpacing( 6 );
Layout8->setMargin( 0 );
- ListBox1 = new QListBox( GroupBox1, "ListBox1" );
+ ListBox1 = new TQListBox( GroupBox1, "ListBox1" );
Layout8->addWidget( ListBox1 );
- connect( ListBox1, SIGNAL( highlighted( const QString& )),
- SLOT( slotHighlighted( const QString& )));
- QToolTip::add( ListBox1, "Contains the contents of the completion object.\n:x is the weighting, i.e. how often an item has been inserted");
+ connect( ListBox1, TQT_SIGNAL( highlighted( const TQString& )),
+ TQT_SLOT( slotHighlighted( const TQString& )));
+ TQToolTip::add( ListBox1, "Contains the contents of the completion object.\n:x is the weighting, i.e. how often an item has been inserted");
Layout7 = new QVBoxLayout;
Layout7->setSpacing( 6 );
Layout7->setMargin( 0 );
- PushButton1_3 = new QPushButton( GroupBox1, "PushButton1_3" );
+ PushButton1_3 = new TQPushButton( GroupBox1, "PushButton1_3" );
PushButton1_3->setText( "Completion items" );
- connect( PushButton1_3, SIGNAL( clicked() ), SLOT( slotList() ));
+ connect( PushButton1_3, TQT_SIGNAL( clicked() ), TQT_SLOT( slotList() ));
Layout7->addWidget( PushButton1_3 );
- PushButton1_2 = new QPushButton( GroupBox1, "PushButton1_2" );
+ PushButton1_2 = new TQPushButton( GroupBox1, "PushButton1_2" );
PushButton1_2->setText( "Clear" );
- connect( PushButton1_2, SIGNAL( clicked() ),
- edit->completionObject(), SLOT( clear() ));
+ connect( PushButton1_2, TQT_SIGNAL( clicked() ),
+ edit->completionObject(), TQT_SLOT( clear() ));
Layout7->addWidget( PushButton1_2 );
Layout8->addLayout( Layout7 );
Layout9->addLayout( Layout8 );
@@ -145,8 +145,8 @@ void Form1::slotAdd()
qDebug("** adding: %s", LineEdit1->text().latin1() );
edit->completionObject()->addItem( LineEdit1->text() );
- QStringList matches = edit->completionObject()->allMatches("S");
- QStringList::ConstIterator it = matches.begin();
+ TQStringList matches = edit->completionObject()->allMatches("S");
+ TQStringList::ConstIterator it = matches.begin();
for ( ; it != matches.end(); ++it )
qDebug("-- %s", (*it).latin1());
}
@@ -159,11 +159,11 @@ void Form1::slotRemove()
void Form1::slotList()
{
ListBox1->clear();
- QStringList items = edit->completionObject()->items();
+ TQStringList items = edit->completionObject()->items();
ListBox1->insertStringList( items );
}
-void Form1::slotHighlighted( const QString& text )
+void Form1::slotHighlighted( const TQString& text )
{
// remove any "weighting"
int index = text.findRev( ':' );
@@ -174,9 +174,9 @@ void Form1::slotHighlighted( const QString& text )
}
-QStringList Form1::defaultItems() const
+TQStringList Form1::defaultItems() const
{
- QStringList items;
+ TQStringList items;
items << "Super" << "Sushi" << "Samson" << "Sucks" << "Sumo" << "Schumi";
items << "Slashdot" << "sUpEr" << "SUshi" << "sUshi" << "sUShi";
items << "sushI" << "SushI";
diff --git a/kdeui/tests/kcompletiontest.h b/kdeui/tests/kcompletiontest.h
index e2f5a2bee..f40a6292d 100644
--- a/kdeui/tests/kcompletiontest.h
+++ b/kdeui/tests/kcompletiontest.h
@@ -9,9 +9,9 @@
#ifndef FORM1_H
#define FORM1_H
-#include <qstringlist.h>
-#include <qvariant.h>
-#include <qwidget.h>
+#include <tqstringlist.h>
+#include <tqvariant.h>
+#include <tqwidget.h>
class QVBoxLayout;
class QHBoxLayout;
class QGridLayout;
@@ -30,17 +30,17 @@ class Form1 : public QWidget
Q_OBJECT
public:
- Form1( QWidget* parent = 0, const char* name = 0 );
+ Form1( TQWidget* parent = 0, const char* name = 0 );
~Form1();
- QGroupBox* GroupBox1;
- QLabel* TextLabel1;
+ TQGroupBox* GroupBox1;
+ TQLabel* TextLabel1;
KLineEdit* LineEdit1;
- QPushButton* PushButton1;
- QPushButton* PushButton1_4;
- QListBox* ListBox1;
- QPushButton* PushButton1_3;
- QPushButton* PushButton1_2;
+ TQPushButton* PushButton1;
+ TQPushButton* PushButton1_4;
+ TQListBox* ListBox1;
+ TQPushButton* PushButton1_3;
+ TQPushButton* PushButton1_2;
KLineEdit* edit;
KHistoryCombo *combo;
@@ -49,19 +49,19 @@ protected slots:
void slotList();
void slotAdd();
void slotRemove();
- void slotHighlighted( const QString& );
+ void slotHighlighted( const TQString& );
protected:
- QStringList defaultItems() const;
+ TQStringList defaultItems() const;
- QVBoxLayout* Form1Layout;
- QVBoxLayout* GroupBox1Layout;
- QVBoxLayout* Layout9;
- QHBoxLayout* Layout1;
- QHBoxLayout* Layout2;
- QHBoxLayout* Layout3;
- QHBoxLayout* Layout8;
- QVBoxLayout* Layout7;
+ TQVBoxLayout* Form1Layout;
+ TQVBoxLayout* GroupBox1Layout;
+ TQVBoxLayout* Layout9;
+ TQHBoxLayout* Layout1;
+ TQHBoxLayout* Layout2;
+ TQHBoxLayout* Layout3;
+ TQHBoxLayout* Layout8;
+ TQVBoxLayout* Layout7;
};
#endif // FORM1_H
diff --git a/kdeui/tests/kdatepicktest.cpp b/kdeui/tests/kdatepicktest.cpp
index eeef5945f..c982dbe91 100644
--- a/kdeui/tests/kdatepicktest.cpp
+++ b/kdeui/tests/kdatepicktest.cpp
@@ -1,5 +1,5 @@
#include "kdatepicker.h"
-#include <qlineedit.h>
+#include <tqlineedit.h>
#include <kapplication.h>
#include <klocale.h>
diff --git a/kdeui/tests/kdatewidgettest.cpp b/kdeui/tests/kdatewidgettest.cpp
index d58037960..8550ab363 100644
--- a/kdeui/tests/kdatewidgettest.cpp
+++ b/kdeui/tests/kdatewidgettest.cpp
@@ -1,5 +1,5 @@
#include "kdatewidget.h"
-#include <qlineedit.h>
+#include <tqlineedit.h>
#include <kapplication.h>
#include <klocale.h>
diff --git a/kdeui/tests/kdesattest.cpp b/kdeui/tests/kdesattest.cpp
index 803e2e0ee..28f7d4cf2 100644
--- a/kdeui/tests/kdesattest.cpp
+++ b/kdeui/tests/kdesattest.cpp
@@ -1,21 +1,21 @@
#include "kdesattest.h"
#include <kapplication.h>
#include <kimageeffect.h>
-#include <qpainter.h>
-#include <qdatetime.h>
-#include <qstring.h>
+#include <tqpainter.h>
+#include <tqdatetime.h>
+#include <tqstring.h>
int cols = 3, rows = 3; // how many
-KDesatWidget::KDesatWidget(QWidget *parent, const char *name)
- :QWidget(parent, name)
+KDesatWidget::KDesatWidget(TQWidget *parent, const char *name)
+ :TQWidget(parent, name)
{
- image = QImage("testimage.png");
+ image = TQImage("testimage.png");
slide = new KDoubleNumInput(700, this, "desat");
slide->setRange(0, 1, 0.001);
slide->setLabel("Desaturate: ", AlignVCenter | AlignLeft);
- connect(slide,SIGNAL(valueChanged(double)), this, SLOT(change(double)));
+ connect(slide,TQT_SIGNAL(valueChanged(double)), this, TQT_SLOT(change(double)));
resize(image.width()*2, image.height() + slide->height());
slide->setGeometry(0, image.height(), image.width()*2, slide->height());
@@ -26,19 +26,19 @@ void KDesatWidget::change(double) {
repaint(false);
}
-void KDesatWidget::paintEvent(QPaintEvent */*ev*/)
+void KDesatWidget::paintEvent(TQPaintEvent */*ev*/)
{
- QTime time;
+ TQTime time;
int it, ft;
- QString say;
+ TQString say;
- QPainter p(this);
+ TQPainter p(this);
p.setPen(Qt::black);
// original image
time.start();
it = time.elapsed();
- image = QImage("testimage.png");
+ image = TQImage("testimage.png");
p.drawImage(0, 0, image);
ft = time.elapsed();
say.setNum( ft - it); say += " ms, Vertical";
diff --git a/kdeui/tests/kdesattest.h b/kdeui/tests/kdesattest.h
index 71a51c0be..67329d578 100644
--- a/kdeui/tests/kdesattest.h
+++ b/kdeui/tests/kdesattest.h
@@ -7,24 +7,24 @@
#ifndef __KBLEND_TEST_H
#define __KBLEND_TEST_H
-#include <qwidget.h>
-#include <qimage.h>
+#include <tqwidget.h>
+#include <tqimage.h>
#include <knuminput.h>
class KDesatWidget : public QWidget
{
Q_OBJECT
public:
- KDesatWidget(QWidget *parent=0, const char *name=0);
+ KDesatWidget(TQWidget *parent=0, const char *name=0);
public slots:
void change(double);
protected:
- void paintEvent(QPaintEvent *ev);
+ void paintEvent(TQPaintEvent *ev);
private:
float desat_value;
- QImage image;
+ TQImage image;
KDoubleNumInput *slide;
};
diff --git a/kdeui/tests/kdialogbasetest.cpp b/kdeui/tests/kdialogbasetest.cpp
index 998e10d02..5e62115fa 100644
--- a/kdeui/tests/kdialogbasetest.cpp
+++ b/kdeui/tests/kdialogbasetest.cpp
@@ -1,14 +1,14 @@
#include <kapplication.h>
#include <kdialogbase.h>
-#include <qstring.h>
-#include <qtextview.h>
+#include <tqstring.h>
+#include <tqtextview.h>
int main(int argc, char** argv)
{
KApplication app(argc, argv, "DialogBaseTest");
// -----
- QString text= // the explanation shown by the example dialog
+ TQString text= // the explanation shown by the example dialog
"<center><h1>DialogBase Example</h1></center><hr><br>"
"This example shows the usage of the <i>DialogBase</i> class. "
"<i>DialogBase</i> is the KDE user interface class used to create "
@@ -34,7 +34,7 @@ int main(int argc, char** argv)
"not have to take care about launching the help viewer, just set the "
"help file and topic and of course copy it to your documentation "
"directory during the program installation.";
- /* Create the dialog object. DialogBase is derived from QDialog, but
+ /* Create the dialog object. DialogBase is derived from TQDialog, but
you do not need to derive it to create a nice-looking dialog. Mostly,
you already have a widget class representing the core of your dialog,
and you only need to add a frame around it and the default buttons.
@@ -47,7 +47,7 @@ int main(int argc, char** argv)
"will of course only pop up if you correctly installed kdebase. */
// I disabled it, as khcclient did not run for me.
// dialog.setHelp("kdehelp/intro.html", "", "");
- /* This QTextView is intended to be the main widget of our dialog. The
+ /* This TQTextView is intended to be the main widget of our dialog. The
main widget is placed inside the dialogs frame, with the buttons below
it. You do not have to take care about the size handling, but it is a
good idea to set the main wigdets minimum size, since the sizes Qt and
@@ -55,7 +55,7 @@ int main(int argc, char** argv)
It is important that your main widget is created with the dialog object
as its parent! */
- QTextView view(text, QString::null, &dialog);
+ TQTextView view(text, TQString::null, &dialog);
//view.setMinimumSize(400, view.heightForWidth(400)+20);
view.setMinimumSize( 250, 300 );
dialog.setMainWidget(&view);
@@ -65,7 +65,7 @@ int main(int argc, char** argv)
help chapter may cause a need for adjustment since it modifies the height
of the upper frame. */
dialog.resize(dialog.minimumSize());
- /* The dialog object is used just as any other QDialog: */
+ /* The dialog object is used just as any other TQDialog: */
if(dialog.exec())
{
qDebug("Accepted.");
diff --git a/kdeui/tests/kdocktest.cpp b/kdeui/tests/kdocktest.cpp
index c6df63ddb..84895c414 100644
--- a/kdeui/tests/kdocktest.cpp
+++ b/kdeui/tests/kdocktest.cpp
@@ -3,10 +3,10 @@
#include <kapplication.h>
#include <kiconloader.h>
-#include <qwidget.h>
-#include <qstring.h>
+#include <tqwidget.h>
+#include <tqstring.h>
-DockTest::DockTest( QWidget* parent )
+DockTest::DockTest( TQWidget* parent )
: KDockArea( parent )
{
m_blueDock = createDockWidget( "Blue Widget", SmallIcon("mail") );
@@ -17,7 +17,7 @@ DockTest::DockTest( QWidget* parent )
m_blueDock->setHeader( header );
m_blueDock->setCaption( "Blue" );
m_blueDock->setGeometry( 50, 50, 100, 100 );
- QWidget *l = new QWidget( m_blueDock );
+ TQWidget *l = new TQWidget( m_blueDock );
l->setBackgroundColor( Qt::blue );
l->setMinimumSize( 100,100 );
m_blueDock->setWidget( l );
@@ -31,7 +31,7 @@ DockTest::DockTest( QWidget* parent )
m_redDock->setHeader( header );
m_redDock->setCaption( "Red" );
m_redDock->setGeometry( 50, 50, 100, 100 );
- l = new QWidget( m_redDock );
+ l = new TQWidget( m_redDock );
l->setBackgroundColor( Qt::red );
l->setMinimumSize( 100,100 );
m_redDock->setWidget( l );
@@ -44,7 +44,7 @@ DockTest::DockTest( QWidget* parent )
// m_yellowDock->setHeader( header );
m_yellowDock->setCaption( "Yellow" );
m_yellowDock->setGeometry( 50, 50, 100, 100 );
- l = new QWidget( m_yellowDock );
+ l = new TQWidget( m_yellowDock );
l->setBackgroundColor( Qt::yellow );
l->setMinimumSize( 100,100 );
m_yellowDock->setWidget( l );
diff --git a/kdeui/tests/kdocktest.h b/kdeui/tests/kdocktest.h
index 906e3bd22..6efbeed57 100644
--- a/kdeui/tests/kdocktest.h
+++ b/kdeui/tests/kdocktest.h
@@ -8,7 +8,7 @@ class DockTest : public KDockArea
{
Q_OBJECT
public:
- DockTest( QWidget* parent=0 );
+ DockTest( TQWidget* parent=0 );
private:
KDockWidget* m_blueDock;
diff --git a/kdeui/tests/kdockwidgetdemo.cpp b/kdeui/tests/kdockwidgetdemo.cpp
index e0ff60897..15b83d14e 100644
--- a/kdeui/tests/kdockwidgetdemo.cpp
+++ b/kdeui/tests/kdockwidgetdemo.cpp
@@ -1,23 +1,23 @@
#include "kdockwidgetdemo.h"
-#include <qheader.h>
-#include <qtoolbutton.h>
-#include <qtooltip.h>
-#include <qtextview.h>
-#include <qfileinfo.h>
-#include <qfile.h>
-#include <qtextstream.h>
-#include <qhbox.h>
-#include <qlabel.h>
-#include <qmultilineedit.h>
-#include <qevent.h>
-#include <qpopupmenu.h>
-#include <qpushbutton.h>
-#include <qpoint.h>
-#include <qmessagebox.h>
-#include <qmime.h>
-#include <qstrlist.h>
-#include <qpainter.h>
+#include <tqheader.h>
+#include <tqtoolbutton.h>
+#include <tqtooltip.h>
+#include <tqtextview.h>
+#include <tqfileinfo.h>
+#include <tqfile.h>
+#include <tqtextstream.h>
+#include <tqhbox.h>
+#include <tqlabel.h>
+#include <tqmultilineedit.h>
+#include <tqevent.h>
+#include <tqpopupmenu.h>
+#include <tqpushbutton.h>
+#include <tqpoint.h>
+#include <tqmessagebox.h>
+#include <tqmime.h>
+#include <tqstrlist.h>
+#include <tqpainter.h>
#include <kconfig.h>
#include <kapplication.h>
@@ -78,21 +78,21 @@ static const char *preview_xpm[] = {
"OOOOOOOOOOOOOOOO"
};
-SFileDialog::SFileDialog( QString initially, const QStringList& filter, const char* name )
-:QDialog(0L,name,true)
+SFileDialog::SFileDialog( TQString initially, const TQStringList& filter, const char* name )
+:TQDialog(0L,name,true)
{
KConfig* config = kapp->config();
- config->setGroup( QString::fromLatin1("SFileDialogData:") + name );
+ config->setGroup( TQString::fromLatin1("SFileDialogData:") + name );
if ( initially.isNull() ){
- initially = config->readPathEntry( "InitiallyDir", QDir::currentDirPath() );
+ initially = config->readPathEntry( "InitiallyDir", TQDir::currentDirPath() );
}
- QStringList bookmark;
+ TQStringList bookmark;
bookmark = config->readListEntry( "Bookmarks" );
dockManager = new KDockManager(this);
- d_dirView = new KDockWidget( dockManager, "Dock_DirView", QPixmap(dir_tree_xpm) );
+ d_dirView = new KDockWidget( dockManager, "Dock_DirView", TQPixmap(dir_tree_xpm) );
d_dirView->setCaption("Tree");
dirView = new DirectoryView( d_dirView, 0 );
@@ -103,21 +103,21 @@ SFileDialog::SFileDialog( QString initially, const QStringList& filter, const ch
Directory* root = new Directory( dirView, "/" );
root->setOpen(true);
- d_preview = new KDockWidget( dockManager, "Dock_Preview", QPixmap(preview_xpm) );
+ d_preview = new KDockWidget( dockManager, "Dock_Preview", TQPixmap(preview_xpm) );
d_preview->setCaption("Preview");
preview = new Preview( d_preview );
d_preview->setWidget( preview );
- d_fd = new KDockWidget( dockManager, "Dock_QFileDialog", QPixmap(), this );
+ d_fd = new KDockWidget( dockManager, "Dock_QFileDialog", TQPixmap(), this );
fd = new CustomFileDialog( d_fd );
fd->setDir( initially );
fd->setFilters( filter );
fd->setBookmark( bookmark );
- fd->reparent(d_fd, QPoint(0,0));
+ fd->reparent(d_fd, TQPoint(0,0));
d_fd->setWidget( fd );
- connect( dirView, SIGNAL( folderSelected( const QString & ) ), fd, SLOT( setDir2( const QString & ) ) );
- connect( fd, SIGNAL( dirEntered( const QString & ) ), dirView, SLOT( setDir( const QString & ) ) );
+ connect( dirView, TQT_SIGNAL( folderSelected( const TQString & ) ), fd, TQT_SLOT( setDir2( const TQString & ) ) );
+ connect( fd, TQT_SIGNAL( dirEntered( const TQString & ) ), dirView, TQT_SLOT( setDir( const TQString & ) ) );
d_fd->setDockSite( KDockWidget::DockTop|KDockWidget::DockLeft|KDockWidget::DockRight|KDockWidget::DockBottom );
d_fd->setEnableDocking(KDockWidget::DockNone);
@@ -128,30 +128,30 @@ SFileDialog::SFileDialog( QString initially, const QStringList& filter, const ch
d_dirView->manualDock( d_fd, KDockWidget::DockLeft, 20 );
d_preview->manualDock( d_fd, KDockWidget::DockBottom, 70 );
- connect(fd, SIGNAL(fileHighlighted(const QString&)), preview, SLOT(showPreview(const QString&)));
- connect(fd, SIGNAL(signalDone(int)), this, SLOT(done(int)));
+ connect(fd, TQT_SIGNAL(fileHighlighted(const TQString&)), preview, TQT_SLOT(showPreview(const TQString&)));
+ connect(fd, TQT_SIGNAL(signalDone(int)), this, TQT_SLOT(done(int)));
- connect(fd, SIGNAL(dirEntered(const QString&)), this, SLOT(changeDir(const QString&)));
- connect(dirView, SIGNAL(folderSelected(const QString&)), this, SLOT(changeDir(const QString&)));
+ connect(fd, TQT_SIGNAL(dirEntered(const TQString&)), this, TQT_SLOT(changeDir(const TQString&)));
+ connect(dirView, TQT_SIGNAL(folderSelected(const TQString&)), this, TQT_SLOT(changeDir(const TQString&)));
- b_tree = new QToolButton( fd );
- QToolTip::add( b_tree, "Show/Hide Tree" );
- b_tree->setPixmap( QPixmap( dir_tree_xpm ) );
- connect( b_tree, SIGNAL(clicked()), d_dirView, SLOT(changeHideShowState()) );
+ b_tree = new TQToolButton( fd );
+ TQToolTip::add( b_tree, "Show/Hide Tree" );
+ b_tree->setPixmap( TQPixmap( dir_tree_xpm ) );
+ connect( b_tree, TQT_SIGNAL(clicked()), d_dirView, TQT_SLOT(changeHideShowState()) );
b_tree->setToggleButton(true);
b_tree->setOn(true);
fd->addToolButton( b_tree, true );
- b_preview = new QToolButton( fd );
- QToolTip::add( b_preview, "Show/Hide Preview" );
- b_preview->setPixmap( QPixmap( preview_xpm ) );
- connect( b_preview, SIGNAL(clicked()), d_preview, SLOT(changeHideShowState()) );
+ b_preview = new TQToolButton( fd );
+ TQToolTip::add( b_preview, "Show/Hide Preview" );
+ b_preview->setPixmap( TQPixmap( preview_xpm ) );
+ connect( b_preview, TQT_SIGNAL(clicked()), d_preview, TQT_SLOT(changeHideShowState()) );
b_preview->setToggleButton(true);
b_preview->setOn(true);
fd->addToolButton( b_preview );
- connect( dockManager, SIGNAL(change()), this, SLOT(dockChange()));
- connect( dockManager, SIGNAL(setDockDefaultPos(KDockWidget*)), this, SLOT(setDockDefaultPos(KDockWidget*)));
+ connect( dockManager, TQT_SIGNAL(change()), this, TQT_SLOT(dockChange()));
+ connect( dockManager, TQT_SIGNAL(setDockDefaultPos(KDockWidget*)), this, TQT_SLOT(setDockDefaultPos(KDockWidget*)));
setCaption("Open File");
resize(550,450);
qDebug("read config");
@@ -167,7 +167,7 @@ void SFileDialog::dockChange()
SFileDialog::~SFileDialog()
{
KConfig* config = kapp->config();
- config->setGroup( QString("SFileDialogData:") + name() );
+ config->setGroup( TQString("SFileDialogData:") + name() );
config->writeEntry( "Bookmarks", fd->getBookmark() );
qDebug("write config");
@@ -185,103 +185,103 @@ void SFileDialog::setDockDefaultPos( KDockWidget* d )
}
}
-void SFileDialog::changeDir( const QString& f )
+void SFileDialog::changeDir( const TQString& f )
{
if ( !f.isEmpty() ){
KConfig* config = kapp->config();
- config->setGroup( QString("SFileDialogData:") + name() );
+ config->setGroup( TQString("SFileDialogData:") + name() );
config->writePathEntry( "InitiallyDir", f );
}
}
-QString SFileDialog::getOpenFileName( QString initially,
- const QStringList& filter,
- const QString caption, const char* name )
+TQString SFileDialog::getOpenFileName( TQString initially,
+ const TQStringList& filter,
+ const TQString caption, const char* name )
{
SFileDialog* fd = new SFileDialog( initially, filter, name );
if ( !caption.isNull() ) fd->setCaption( caption );
- QString result = ( fd->exec() == QDialog::Accepted ) ? fd->fd->selectedFile():QString::null;
+ TQString result = ( fd->exec() == TQDialog::Accepted ) ? fd->fd->selectedFile():TQString::null;
delete fd;
return result;
}
-QStringList SFileDialog::getOpenFileNames( QString initially,
- const QStringList& filter,
- const QString caption, const char* name )
+TQStringList SFileDialog::getOpenFileNames( TQString initially,
+ const TQStringList& filter,
+ const TQString caption, const char* name )
{
SFileDialog* fd = new SFileDialog( initially, filter, name );
if ( !caption.isNull() ) fd->setCaption( caption );
- fd->fd->setMode( QFileDialog::ExistingFiles );
+ fd->fd->setMode( TQFileDialog::ExistingFiles );
fd->d_preview->undock();
fd->b_preview->hide();
fd->exec();
- QStringList result = fd->fd->selectedFiles();
+ TQStringList result = fd->fd->selectedFiles();
delete fd;
return result;
}
-void SFileDialog::showEvent( QShowEvent *e )
+void SFileDialog::showEvent( TQShowEvent *e )
{
- QDialog::showEvent( e );
+ TQDialog::showEvent( e );
dirView->setDir( fd->dirPath() );
}
/******************************************************************************************************/
-PixmapView::PixmapView( QWidget *parent )
-:QScrollView( parent )
+PixmapView::PixmapView( TQWidget *parent )
+:TQScrollView( parent )
{
// kimgioRegister();
viewport()->setBackgroundMode( PaletteBase );
}
-void PixmapView::setPixmap( const QPixmap &pix )
+void PixmapView::setPixmap( const TQPixmap &pix )
{
pixmap = pix;
resizeContents( pixmap.size().width(), pixmap.size().height() );
viewport()->repaint( true );
}
-void PixmapView::drawContents( QPainter *p, int, int, int, int )
+void PixmapView::drawContents( TQPainter *p, int, int, int, int )
{
p->drawPixmap( 0, 0, pixmap );
}
-Preview::Preview( QWidget *parent )
-:QWidgetStack( parent )
+Preview::Preview( TQWidget *parent )
+:TQWidgetStack( parent )
{
- normalText = new QMultiLineEdit( this );
+ normalText = new TQMultiLineEdit( this );
normalText->setReadOnly( true );
- html = new QTextView( this );
+ html = new TQTextView( this );
pixmap = new PixmapView( this );
raiseWidget( normalText );
}
-void Preview::showPreview( const QString &str )
+void Preview::showPreview( const TQString &str )
{
- QUrl u(str);
+ TQUrl u(str);
if ( u.isLocalFile() ){
- QString path = u.path();
- QFileInfo fi( path );
+ TQString path = u.path();
+ TQFileInfo fi( path );
if ( fi.isFile() && (int)fi.size() > 400 * 1024 ) {
normalText->setText( tr( "The File\n%1\nis too large, so I don't show it!" ).arg( path ) );
raiseWidget( normalText );
return;
}
- QPixmap pix( path );
+ TQPixmap pix( path );
if ( pix.isNull() ) {
if ( fi.isFile() ) {
- QFile f( path );
+ TQFile f( path );
if ( f.open( IO_ReadOnly ) ) {
- QTextStream ts( &f );
- QString text = ts.read();
+ TQTextStream ts( &f );
+ TQString text = ts.read();
f.close();
if ( fi.extension().lower().contains( "htm" ) ) {
- QString url = html->mimeSourceFactory()->makeAbsolute( path, html->context() );
+ TQString url = html->mimeSourceFactory()->makeAbsolute( path, html->context() );
html->setText( text, url );
raiseWidget( html );
return;
@@ -292,7 +292,7 @@ void Preview::showPreview( const QString &str )
}
}
}
- normalText->setText( QString::null );
+ normalText->setText( TQString::null );
raiseWidget( normalText );
} else {
pixmap->setPixmap( pix );
@@ -394,37 +394,37 @@ static const char* globalbookmark_xpm[]={
"............",
"............"};
-CustomFileDialog::CustomFileDialog( QWidget* parent )
-: QFileDialog( parent, 0, false )
+CustomFileDialog::CustomFileDialog( TQWidget* parent )
+: TQFileDialog( parent, 0, false )
{
- QToolButton *p = new QToolButton( this );
+ TQToolButton *p = new TQToolButton( this );
- p->setPixmap( QPixmap( globalbookmark_xpm ) );
- QToolTip::add( p, tr( "Bookmarks" ) );
+ p->setPixmap( TQPixmap( globalbookmark_xpm ) );
+ TQToolTip::add( p, tr( "Bookmarks" ) );
- bookmarkMenu = new QPopupMenu( this );
- connect( bookmarkMenu, SIGNAL( activated( int ) ), this, SLOT( bookmarkChosen( int ) ) );
+ bookmarkMenu = new TQPopupMenu( this );
+ connect( bookmarkMenu, TQT_SIGNAL( activated( int ) ), this, TQT_SLOT( bookmarkChosen( int ) ) );
addId = bookmarkMenu->insertItem( "Add bookmark" );
- clearId = bookmarkMenu->insertItem( QPixmap(folder_trash), "Clear bookmarks" );
+ clearId = bookmarkMenu->insertItem( TQPixmap(folder_trash), "Clear bookmarks" );
bookmarkMenu->insertSeparator();
p->setPopup( bookmarkMenu );
p->setPopupDelay(0);
addToolButton( p, true );
- QToolButton *b = new QToolButton( this );
- QToolTip::add( b, tr( "Go Home!" ) );
+ TQToolButton *b = new TQToolButton( this );
+ TQToolTip::add( b, tr( "Go Home!" ) );
- b->setPixmap( QPixmap( homepage_xpm ) );
- connect( b, SIGNAL( clicked() ), this, SLOT( goHome() ) );
+ b->setPixmap( TQPixmap( homepage_xpm ) );
+ connect( b, TQT_SIGNAL( clicked() ), this, TQT_SLOT( goHome() ) );
addToolButton( b );
}
-void CustomFileDialog::setBookmark( QStringList &s )
+void CustomFileDialog::setBookmark( TQStringList &s )
{
- QStringList::Iterator it = s.begin();
+ TQStringList::Iterator it = s.begin();
for ( ; it != s.end(); ++it ){
bookmarkList << (*it);
@@ -449,7 +449,7 @@ void CustomFileDialog::setBookmark( QStringList &s )
"............",
"............",
"............"};
- bookmarkMenu->insertItem( QIconSet( book_pix ), (*it) );
+ bookmarkMenu->insertItem( TQIconSet( book_pix ), (*it) );
}
}
@@ -457,7 +457,7 @@ CustomFileDialog::~CustomFileDialog()
{
}
-void CustomFileDialog::setDir2( const QString &s )
+void CustomFileDialog::setDir2( const TQString &s )
{
blockSignals( true );
setDir( s );
@@ -499,7 +499,7 @@ void CustomFileDialog::bookmarkChosen( int i )
"............",
"............",
"............"};
- bookmarkMenu->insertItem( QIconSet( book_pix ), dirPath() );
+ bookmarkMenu->insertItem( TQIconSet( book_pix ), dirPath() );
return;
}
@@ -606,37 +606,37 @@ static const char* folder_locked_xpm[] = {
"################"
};
-Directory::Directory( Directory * parent, const QString& filename )
-:QListViewItem( parent ), f(filename)
+Directory::Directory( Directory * parent, const TQString& filename )
+:TQListViewItem( parent ), f(filename)
{
p = parent;
- readable = QDir( fullName() ).isReadable();
+ readable = TQDir( fullName() ).isReadable();
if ( !readable )
- setPixmap( 0, QPixmap( folder_locked_xpm ) );
+ setPixmap( 0, TQPixmap( folder_locked_xpm ) );
else
- setPixmap( 0, QPixmap( folder_closed_xpm ) );
+ setPixmap( 0, TQPixmap( folder_closed_xpm ) );
}
-Directory::Directory( QListView * parent, const QString& filename )
-:QListViewItem( parent ), f(filename)
+Directory::Directory( TQListView * parent, const TQString& filename )
+:TQListViewItem( parent ), f(filename)
{
p = 0;
- readable = QDir( fullName() ).isReadable();
+ readable = TQDir( fullName() ).isReadable();
}
void Directory::setOpen( bool o )
{
if ( o )
- setPixmap( 0, QPixmap( folder_open_xpm ) );
+ setPixmap( 0, TQPixmap( folder_open_xpm ) );
else
- setPixmap( 0, QPixmap( folder_closed_xpm ) );
+ setPixmap( 0, TQPixmap( folder_closed_xpm ) );
if ( o && !childCount() ){
- QString s( fullName() );
- QDir thisDir( s );
+ TQString s( fullName() );
+ TQDir thisDir( s );
if ( !thisDir.isReadable() ) {
readable = false;
setExpandable( false );
@@ -647,7 +647,7 @@ void Directory::setOpen( bool o )
const QFileInfoList * files = thisDir.entryInfoList();
if ( files ){
QFileInfoListIterator it( *files );
- QFileInfo * f;
+ TQFileInfo * f;
while( (f=it.current()) != 0 ){
++it;
if ( f->fileName() != "." && f->fileName() != ".." && f->isDir() )
@@ -656,20 +656,20 @@ void Directory::setOpen( bool o )
}
listView()->setUpdatesEnabled( true );
}
- QListViewItem::setOpen( o );
+ TQListViewItem::setOpen( o );
}
void Directory::setup()
{
setExpandable( true );
- QListViewItem::setup();
+ TQListViewItem::setup();
}
-QString Directory::fullName()
+TQString Directory::fullName()
{
- QString s;
+ TQString s;
if ( p ) {
s = p->fullName();
s.append( f.name() );
@@ -681,7 +681,7 @@ QString Directory::fullName()
}
-QString Directory::text( int column ) const
+TQString Directory::text( int column ) const
{
if ( column == 0 )
return f.name();
@@ -692,28 +692,28 @@ QString Directory::text( int column ) const
return "Unreadable Directory";
}
-DirectoryView::DirectoryView( QWidget *parent, const char *name )
-:QListView( parent, name )
+DirectoryView::DirectoryView( TQWidget *parent, const char *name )
+:TQListView( parent, name )
{
- connect( this, SIGNAL( clicked( QListViewItem * ) ),
- this, SLOT( slotFolderSelected( QListViewItem * ) ) );
- connect( this, SIGNAL( doubleClicked( QListViewItem * ) ),
- this, SLOT( slotFolderSelected( QListViewItem * ) ) );
- connect( this, SIGNAL( returnPressed( QListViewItem * ) ),
- this, SLOT( slotFolderSelected( QListViewItem * ) ) );
+ connect( this, TQT_SIGNAL( clicked( TQListViewItem * ) ),
+ this, TQT_SLOT( slotFolderSelected( TQListViewItem * ) ) );
+ connect( this, TQT_SIGNAL( doubleClicked( TQListViewItem * ) ),
+ this, TQT_SLOT( slotFolderSelected( TQListViewItem * ) ) );
+ connect( this, TQT_SIGNAL( returnPressed( TQListViewItem * ) ),
+ this, TQT_SLOT( slotFolderSelected( TQListViewItem * ) ) );
setAcceptDrops( true );
viewport()->setAcceptDrops( true );
}
-void DirectoryView::setOpen( QListViewItem* i, bool b )
+void DirectoryView::setOpen( TQListViewItem* i, bool b )
{
- QListView::setOpen(i,b);
+ TQListView::setOpen(i,b);
setCurrentItem(i);
slotFolderSelected(i);
}
-void DirectoryView::slotFolderSelected( QListViewItem *i )
+void DirectoryView::slotFolderSelected( TQListViewItem *i )
{
if ( !i ) return;
@@ -721,9 +721,9 @@ void DirectoryView::slotFolderSelected( QListViewItem *i )
emit folderSelected( dir->fullName() );
}
-QString DirectoryView::fullPath(QListViewItem* item)
+TQString DirectoryView::fullPath(TQListViewItem* item)
{
- QString fullpath = item->text(0);
+ TQString fullpath = item->text(0);
while ( (item=item->parent()) ) {
if ( item->parent() )
fullpath = item->text(0) + "/" + fullpath;
@@ -733,17 +733,17 @@ QString DirectoryView::fullPath(QListViewItem* item)
return fullpath;
}
-void DirectoryView::setDir( const QString &s )
+void DirectoryView::setDir( const TQString &s )
{
- QListViewItemIterator it( this );
+ TQListViewItemIterator it( this );
++it;
for ( ; it.current(); ++it ) {
it.current()->setOpen( false );
}
- QStringList lst( QStringList::split( "/", s ) );
- QListViewItem *item = firstChild();
- QStringList::Iterator it2 = lst.begin();
+ TQStringList lst( TQStringList::split( "/", s ) );
+ TQListViewItem *item = firstChild();
+ TQStringList::Iterator it2 = lst.begin();
for ( ; it2 != lst.end(); ++it2 ) {
while ( item ) {
if ( item->text( 0 ) == *it2 ) {
@@ -760,7 +760,7 @@ void DirectoryView::setDir( const QString &s )
}
}
-QString DirectoryView::selectedDir()
+TQString DirectoryView::selectedDir()
{
Directory *dir = (Directory*)currentItem();
return dir->fullName();
@@ -777,14 +777,14 @@ int main(int argc, char* argv[]) {
#endif
#if 0
- qDebug ( SFileDialog::getOpenFileName( QString::null, QString::fromLatin1("All (*)"),
- QString::fromLatin1("DockWidget Demo"), "dialog1" ) );
+ qDebug ( SFileDialog::getOpenFileName( TQString::null, TQString::fromLatin1("All (*)"),
+ TQString::fromLatin1("DockWidget Demo"), "dialog1" ) );
#endif
#if 1
- QStringList s = SFileDialog::getOpenFileNames( QString::null, QString::fromLatin1("All (*)"),
- QString::fromLatin1("DockWidget Demo"), "dialog1" );
- QStringList::Iterator it = s.begin();
+ TQStringList s = SFileDialog::getOpenFileNames( TQString::null, TQString::fromLatin1("All (*)"),
+ TQString::fromLatin1("DockWidget Demo"), "dialog1" );
+ TQStringList::Iterator it = s.begin();
for ( ; it != s.end(); ++it ){
qDebug( "%s", (*it).local8Bit().data() );
}
diff --git a/kdeui/tests/kdockwidgetdemo.h b/kdeui/tests/kdockwidgetdemo.h
index e81162eb0..37d31b137 100644
--- a/kdeui/tests/kdockwidgetdemo.h
+++ b/kdeui/tests/kdockwidgetdemo.h
@@ -3,18 +3,18 @@
#include <kdockwidget.h>
-#include <qdialog.h>
-#include <qlistview.h>
-#include <qstring.h>
-#include <qfile.h>
-#include <qfileinfo.h>
-#include <qtimer.h>
-#include <qscrollview.h>
-#include <qfiledialog.h>
-#include <qwidgetstack.h>
-#include <qvbox.h>
-#include <qurl.h>
-#include <qpixmap.h>
+#include <tqdialog.h>
+#include <tqlistview.h>
+#include <tqstring.h>
+#include <tqfile.h>
+#include <tqfileinfo.h>
+#include <tqtimer.h>
+#include <tqscrollview.h>
+#include <tqfiledialog.h>
+#include <tqwidgetstack.h>
+#include <tqvbox.h>
+#include <tqurl.h>
+#include <tqpixmap.h>
class QMultiLineEdit;
class QTextView;
@@ -32,26 +32,26 @@ class SFileDialog : public QDialog
{Q_OBJECT
public:
- SFileDialog( QString initially = QString::null,
- const QStringList& filter = "All Files ( * )", const char* name = 0 );
+ SFileDialog( TQString initially = TQString::null,
+ const TQStringList& filter = "All Files ( * )", const char* name = 0 );
~SFileDialog();
- static QString getOpenFileName( QString initially = QString::null,
- const QStringList& filter = "All Files ( * )",
- const QString caption = QString::null, const char* name = 0 );
+ static TQString getOpenFileName( TQString initially = TQString::null,
+ const TQStringList& filter = "All Files ( * )",
+ const TQString caption = TQString::null, const char* name = 0 );
- static QStringList getOpenFileNames( QString initially = QString::null,
- const QStringList& filter = "All Files ( * )",
- const QString caption = QString::null, const char* name = 0 );
+ static TQStringList getOpenFileNames( TQString initially = TQString::null,
+ const TQStringList& filter = "All Files ( * )",
+ const TQString caption = TQString::null, const char* name = 0 );
protected:
- void showEvent( QShowEvent *e );
+ void showEvent( TQShowEvent *e );
protected slots:
void dockChange();
void setDockDefaultPos( KDockWidget* );
- void changeDir( const QString& );
+ void changeDir( const TQString& );
private:
DirectoryView* dirView;
@@ -63,25 +63,25 @@ private:
KDockWidget* d_preview;
KDockWidget* d_fd;
- QToolButton *b_tree;
- QToolButton *b_preview;
+ TQToolButton *b_tree;
+ TQToolButton *b_preview;
};
/******************************************************************************************************/
class Directory : public QListViewItem
{
public:
- Directory( QListView * parent, const QString& filename );
- Directory( Directory * parent, const QString& filename );
+ Directory( TQListView * parent, const TQString& filename );
+ Directory( Directory * parent, const TQString& filename );
- QString text( int column ) const;
+ TQString text( int column ) const;
- QString fullName();
+ TQString fullName();
void setOpen( bool );
void setup();
private:
- QFile f;
+ TQFile f;
Directory * p;
bool readable;
};
@@ -89,61 +89,61 @@ private:
class DirectoryView : public QListView
{Q_OBJECT
public:
- DirectoryView( QWidget *parent = 0, const char *name = 0 );
- virtual void setOpen ( QListViewItem *, bool );
+ DirectoryView( TQWidget *parent = 0, const char *name = 0 );
+ virtual void setOpen ( TQListViewItem *, bool );
- QString selectedDir();
+ TQString selectedDir();
public slots:
- void setDir( const QString & );
+ void setDir( const TQString & );
signals:
- void folderSelected( const QString & );
+ void folderSelected( const TQString & );
protected slots:
- void slotFolderSelected( QListViewItem * );
+ void slotFolderSelected( TQListViewItem * );
private:
- QString fullPath(QListViewItem* item);
+ TQString fullPath(TQListViewItem* item);
};
/******************************************************************************************************/
class PixmapView : public QScrollView
{Q_OBJECT
public:
- PixmapView( QWidget *parent );
- void setPixmap( const QPixmap &pix );
- void drawContents( QPainter *p, int, int, int, int );
+ PixmapView( TQWidget *parent );
+ void setPixmap( const TQPixmap &pix );
+ void drawContents( TQPainter *p, int, int, int, int );
private:
- QPixmap pixmap;
+ TQPixmap pixmap;
};
class Preview : public QWidgetStack
{Q_OBJECT
public:
- Preview( QWidget *parent );
+ Preview( TQWidget *parent );
public slots:
- void showPreview( const QString& );
+ void showPreview( const TQString& );
private:
- QMultiLineEdit *normalText;
- QTextView *html;
+ TQMultiLineEdit *normalText;
+ TQTextView *html;
PixmapView *pixmap;
};
class CustomFileDialog : public QFileDialog
{Q_OBJECT
public:
- CustomFileDialog( QWidget* parent );
+ CustomFileDialog( TQWidget* parent );
~CustomFileDialog();
- void addToolButton( QButton * b, bool separator = false ){ QFileDialog::addToolButton(b,separator); }
- void setBookmark( QStringList& );
- QStringList getBookmark(){ return bookmarkList; }
+ void addToolButton( TQButton * b, bool separator = false ){ TQFileDialog::addToolButton(b,separator); }
+ void setBookmark( TQStringList& );
+ TQStringList getBookmark(){ return bookmarkList; }
public slots:
- void setDir2( const QString & );
+ void setDir2( const TQString & );
signals:
void signalDone( int );
@@ -154,8 +154,8 @@ protected slots:
virtual void done( int );
private:
- QPopupMenu *bookmarkMenu;
- QStringList bookmarkList;
+ TQPopupMenu *bookmarkMenu;
+ TQStringList bookmarkList;
int addId, clearId;
};
diff --git a/kdeui/tests/kdockwidgettest.cpp b/kdeui/tests/kdockwidgettest.cpp
index bf1fb272d..08a7e42b3 100644
--- a/kdeui/tests/kdockwidgettest.cpp
+++ b/kdeui/tests/kdockwidgettest.cpp
@@ -14,13 +14,13 @@
#include "kdockwidgettest.h"
-#include <qpushbutton.h>
+#include <tqpushbutton.h>
#include <kapplication.h>
#include <kiconloader.h>
#include <kstatusbar.h>
#include <kmenubar.h>
#include <ktoolbar.h>
-#include <qvbox.h>
+#include <tqvbox.h>
static const char*folder[]={
"16 16 9 1",
@@ -54,7 +54,7 @@ static const char*folder[]={
DockApplication::DockApplication( const char* name )
: KDockMainWindow( 0L, name )
{
- QPixmap p(folder);
+ TQPixmap p(folder);
initMenuBar();
initToolBars();
@@ -64,7 +64,7 @@ DockApplication::DockApplication( const char* name )
dock = createDockWidget( "Green Widget", p );
dock->setCaption("Green");
dock->setGeometry(50, 50, 100, 100);
- l = new QWidget(dock);
+ l = new TQWidget(dock);
l->setBackgroundColor(green);
l->setMinimumSize(100,100);
dock->setWidget(l);
@@ -75,7 +75,7 @@ DockApplication::DockApplication( const char* name )
setView( dock1 );
setMainDockWidget( dock1 );
- mainW = new QWidget( dock1, "createdOnBlueDock" );
+ mainW = new TQWidget( dock1, "createdOnBlueDock" );
mainW->setBackgroundColor(blue);
mainW->setMinimumSize(300,150);
dock1->setWidget( mainW );
@@ -88,7 +88,7 @@ DockApplication::DockApplication( const char* name )
/* test set new header widget...*/
// dock2->setHeader( new KDockWidgetHeader(dock2) );
- QWidget* l2 = new QWidget(dock2);
+ TQWidget* l2 = new TQWidget(dock2);
l2->setBackgroundColor(yellow);
dock2->setWidget( l2 );
/*****************************************************/
@@ -117,29 +117,29 @@ DockApplication::DockApplication( const char* name )
- QPushButton* b1 = new QPushButton(mainW);
+ TQPushButton* b1 = new TQPushButton(mainW);
b1->setGeometry(10, 10, 250, 25);
b1->setText("write dock config");
- connect(b1, SIGNAL(clicked()), SLOT(wConfig()));
+ connect(b1, TQT_SIGNAL(clicked()), TQT_SLOT(wConfig()));
- QPushButton* b2 = new QPushButton(mainW);
+ TQPushButton* b2 = new TQPushButton(mainW);
b2->setGeometry(10, 35, 250, 25);
b2->setText("read dock config");
- connect(b2, SIGNAL(clicked()), SLOT(rConfig()));
+ connect(b2, TQT_SIGNAL(clicked()), TQT_SLOT(rConfig()));
- m_bname = new QPushButton(mainW);
+ m_bname = new TQPushButton(mainW);
m_bname->setGeometry(10, 60, 250, 25);
m_bname->setEnabled( false );
- QPushButton *b3 = new QPushButton(mainW);
+ TQPushButton *b3 = new TQPushButton(mainW);
b3->setGeometry(10,95,250,25);
b3->setText("change the icon of the green widget");
- connect(b3,SIGNAL(clicked()), SLOT(gSetPix1()));
+ connect(b3,TQT_SIGNAL(clicked()), TQT_SLOT(gSetPix1()));
- QPushButton *b4 = new QPushButton(mainW);
+ TQPushButton *b4 = new TQPushButton(mainW);
b4->setGeometry(10,130,250,25);
b4->setText("remove icon ");
- connect(b4,SIGNAL(clicked()), SLOT(gSetPix2()));
+ connect(b4,TQT_SIGNAL(clicked()), TQT_SLOT(gSetPix2()));
setGeometry(200, 100, 500, 300);
@@ -167,14 +167,14 @@ void DockApplication::wConfig()
void DockApplication::initMenuBar()
{
- QPixmap p(folder);
- QPopupMenu *file_menu = new QPopupMenu();
+ TQPixmap p(folder);
+ TQPopupMenu *file_menu = new TQPopupMenu();
- file_menu->insertItem(p, "Change Green Widget Caption", this, SLOT(cap()) );
+ file_menu->insertItem(p, "Change Green Widget Caption", this, TQT_SLOT(cap()) );
file_menu->insertSeparator();
- file_menu->insertItem(p, "Set Green Widget as MainDockWidget", this, SLOT(greenMain()) );
- file_menu->insertItem(p, "Set Blue Widget as MainDockWidget", this, SLOT(blueMain()) );
- file_menu->insertItem(p, "Set NULL as MainDockWidget", this, SLOT(nullMain()) );
+ file_menu->insertItem(p, "Set Green Widget as MainDockWidget", this, TQT_SLOT(greenMain()) );
+ file_menu->insertItem(p, "Set Blue Widget as MainDockWidget", this, TQT_SLOT(blueMain()) );
+ file_menu->insertItem(p, "Set NULL as MainDockWidget", this, TQT_SLOT(nullMain()) );
KMenuBar* menu_bar = menuBar();
menu_bar->insertItem( "&Test", file_menu );
@@ -183,7 +183,7 @@ void DockApplication::initMenuBar()
void DockApplication::initToolBars()
{
- QPixmap p(folder);
+ TQPixmap p(folder);
KToolBar* tool_bar_0 = toolBar(0);
tool_bar_0->setFullSize(false);
tool_bar_0->insertButton( p, 1 );
@@ -226,7 +226,7 @@ void DockApplication::nullMain()
void DockApplication::updateButton()
{
if ( getMainDockWidget() )
- m_bname->setText(QString("MainDockWidget is %1").arg(getMainDockWidget()->name()));
+ m_bname->setText(TQString("MainDockWidget is %1").arg(getMainDockWidget()->name()));
else
m_bname->setText("MainDockWidget is NULL");
}
diff --git a/kdeui/tests/kdockwidgettest.h b/kdeui/tests/kdockwidgettest.h
index 70d75877c..f5905262f 100644
--- a/kdeui/tests/kdockwidgettest.h
+++ b/kdeui/tests/kdockwidgettest.h
@@ -17,8 +17,8 @@
#include <kdockwidget.h>
#include <kdockwidget_p.h>
-#include <qtabwidget.h>
-#include <qlabel.h>
+#include <tqtabwidget.h>
+#include <tqlabel.h>
class QPushButton;
class DockApplication : public KDockMainWindow
@@ -50,20 +50,20 @@ private:
KDockWidget* dock5;
KDockWidget* dock6;
- QWidget* mainW;
- QWidget* l;
- QPushButton* m_bname;
+ TQWidget* mainW;
+ TQWidget* l;
+ TQPushButton* m_bname;
};
-class CTW:public QTabWidget,public KDockContainer
+class CTW:public TQTabWidget,public KDockContainer
{
Q_OBJECT
public:
- CTW(QWidget *parent):QTabWidget(parent,"MyDockContainer"),KDockContainer(){insertTab(new QLabel("BLAH",this),"BLUP");}
+ CTW(TQWidget *parent):TQTabWidget(parent,"MyDockContainer"),KDockContainer(){insertTab(new TQLabel("BLAH",this),"BLUP");}
virtual ~CTW(){;}
KDockWidget *parentDockWidget(){return ((KDockWidget*)parent());}
- void insertWidget (KDockWidget *w, QPixmap, const QString &, int &){qDebug("widget inserted"); insertTab(w,"NO");}
- void setToolTip (KDockWidget *, QString &){qDebug("Tooltip set");}
+ void insertWidget (KDockWidget *w, TQPixmap, const TQString &, int &){qDebug("widget inserted"); insertTab(w,"NO");}
+ void setToolTip (KDockWidget *, TQString &){qDebug("Tooltip set");}
};
diff --git a/kdeui/tests/kdualcolortest.cpp b/kdeui/tests/kdualcolortest.cpp
index 9022634f1..2060a9842 100644
--- a/kdeui/tests/kdualcolortest.cpp
+++ b/kdeui/tests/kdualcolortest.cpp
@@ -2,42 +2,42 @@
#include <kdualcolorbutton.h>
#include <kapplication.h>
#include <klocale.h>
-#include <qlayout.h>
-#include <qpalette.h>
+#include <tqlayout.h>
+#include <tqpalette.h>
-KDualColorWidget::KDualColorWidget(QWidget *parent, const char *name)
- : QWidget(parent, name)
+KDualColorWidget::KDualColorWidget(TQWidget *parent, const char *name)
+ : TQWidget(parent, name)
{
- lbl = new QLabel("Testing, testing, 1, 2, 3...", this);
+ lbl = new TQLabel("Testing, testing, 1, 2, 3...", this);
KDualColorButton *colorBtn =
new KDualColorButton(lbl->colorGroup().text(),
lbl->colorGroup().background(), this);
- connect(colorBtn, SIGNAL(fgChanged(const QColor &)),
- SLOT(slotFgChanged(const QColor &)));
- connect(colorBtn, SIGNAL(bgChanged(const QColor &)),
- SLOT(slotBgChanged(const QColor &)));
- connect(colorBtn, SIGNAL(currentChanged(KDualColorButton::DualColor)),
- SLOT(slotCurrentChanged(KDualColorButton::DualColor)));
+ connect(colorBtn, TQT_SIGNAL(fgChanged(const TQColor &)),
+ TQT_SLOT(slotFgChanged(const TQColor &)));
+ connect(colorBtn, TQT_SIGNAL(bgChanged(const TQColor &)),
+ TQT_SLOT(slotBgChanged(const TQColor &)));
+ connect(colorBtn, TQT_SIGNAL(currentChanged(KDualColorButton::DualColor)),
+ TQT_SLOT(slotCurrentChanged(KDualColorButton::DualColor)));
- QHBoxLayout *layout = new QHBoxLayout(this, 5);
+ TQHBoxLayout *layout = new TQHBoxLayout(this, 5);
layout->addWidget(colorBtn, 0);
layout->addWidget(lbl, 1);
layout->activate();
resize(sizeHint());
}
-void KDualColorWidget::slotFgChanged(const QColor &c)
+void KDualColorWidget::slotFgChanged(const TQColor &c)
{
- QPalette p = lbl->palette();
- p.setColor(QColorGroup::Text, c);
+ TQPalette p = lbl->palette();
+ p.setColor(TQColorGroup::Text, c);
lbl->setPalette(p);
}
-void KDualColorWidget::slotBgChanged(const QColor &c)
+void KDualColorWidget::slotBgChanged(const TQColor &c)
{
- QPalette p = lbl->palette();
- QBrush b(c, SolidPattern);
- p.setBrush(QColorGroup::Background, b);
+ TQPalette p = lbl->palette();
+ TQBrush b(c, SolidPattern);
+ p.setBrush(TQColorGroup::Background, b);
setPalette(p);
}
diff --git a/kdeui/tests/kdualcolortest.h b/kdeui/tests/kdualcolortest.h
index 6a0c49452..bcd9b271e 100644
--- a/kdeui/tests/kdualcolortest.h
+++ b/kdeui/tests/kdualcolortest.h
@@ -1,20 +1,20 @@
#ifndef __KDUALCOLORTEST_H
#define __KDUALCOLORTEST_H
-#include <qlabel.h>
+#include <tqlabel.h>
#include <kdualcolorbutton.h>
class KDualColorWidget : public QWidget
{
Q_OBJECT
public:
- KDualColorWidget(QWidget *parent=0, const char *name=0);
+ KDualColorWidget(TQWidget *parent=0, const char *name=0);
protected slots:
- void slotFgChanged(const QColor &c);
- void slotBgChanged(const QColor &c);
+ void slotFgChanged(const TQColor &c);
+ void slotBgChanged(const TQColor &c);
void slotCurrentChanged(KDualColorButton::DualColor current);
protected:
- QLabel *lbl;
+ TQLabel *lbl;
};
#endif
diff --git a/kdeui/tests/keditlistboxtest.cpp b/kdeui/tests/keditlistboxtest.cpp
index 0cbbece8a..90dbb74d0 100644
--- a/kdeui/tests/keditlistboxtest.cpp
+++ b/kdeui/tests/keditlistboxtest.cpp
@@ -7,14 +7,14 @@ int main( int argc, char **argv )
KApplication app( argc, argv, "keditlistboxtest" );
KEditListBox::CustomEditor editor( new KComboBox( true, 0L, "test" ) );
- KEditListBox *box = new KEditListBox( QString::fromLatin1("KEditListBox"),
+ KEditListBox *box = new KEditListBox( TQString::fromLatin1("KEditListBox"),
editor );
- box->insertItem( QString::fromLatin1("Test") );
- box->insertItem( QString::fromLatin1("for") );
- box->insertItem( QString::fromLatin1("this") );
- box->insertItem( QString::fromLatin1("KEditListBox") );
- box->insertItem( QString::fromLatin1("Widget") );
+ box->insertItem( TQString::fromLatin1("Test") );
+ box->insertItem( TQString::fromLatin1("for") );
+ box->insertItem( TQString::fromLatin1("this") );
+ box->insertItem( TQString::fromLatin1("KEditListBox") );
+ box->insertItem( TQString::fromLatin1("Widget") );
box->show();
return app.exec();
diff --git a/kdeui/tests/kedittest.cpp b/kdeui/tests/kedittest.cpp
index 271923e18..17a593e74 100644
--- a/kdeui/tests/kedittest.cpp
+++ b/kdeui/tests/kedittest.cpp
@@ -1,12 +1,12 @@
#include <kapplication.h>
#include <keditcl.h>
-#include <qpopupmenu.h>
+#include <tqpopupmenu.h>
int main( int argc, char **argv )
{
KApplication app( argc, argv, "kedittest" );
KEdit *edit = new KEdit( 0L );
- QPopupMenu *pop = new QPopupMenu( 0L );
+ TQPopupMenu *pop = new TQPopupMenu( 0L );
pop->insertItem( "Popupmenu item" );
edit->installRBPopup( pop );
edit->show();
diff --git a/kdeui/tests/kfontdialogtest.cpp b/kdeui/tests/kfontdialogtest.cpp
index f1aa74804..205fd48f7 100644
--- a/kdeui/tests/kfontdialogtest.cpp
+++ b/kdeui/tests/kfontdialogtest.cpp
@@ -36,11 +36,11 @@
KConfig aConfig;
aConfig.setGroup( "KFontDialog-test" );
- app.setFont(QFont("Helvetica",12));
+ app.setFont(TQFont("Helvetica",12));
- // QFont font = QFont("Times",18,QFont::Bold);
+ // TQFont font = TQFont("Times",18,TQFont::Bold);
- QFont font = aConfig.readFontEntry( "Chosen" );
+ TQFont font = aConfig.readFontEntry( "Chosen" );
int nRet = KFontDialog::getFont(font);
int flags;
nRet = KFontDialog::getFontDiff(font, flags);
diff --git a/kdeui/tests/kgradienttest.cpp b/kdeui/tests/kgradienttest.cpp
index 9fad0bb46..6942ca55d 100644
--- a/kdeui/tests/kgradienttest.cpp
+++ b/kdeui/tests/kgradienttest.cpp
@@ -1,24 +1,24 @@
#include "kgradienttest.h"
#include <kapplication.h>
#include <kpixmapeffect.h>
-#include <qpainter.h>
-#include <qdatetime.h>
-#include <qstring.h>
+#include <tqpainter.h>
+#include <tqdatetime.h>
+#include <tqstring.h>
int cols = 3, rows = 3; // how many
-void KGradientWidget::paintEvent(QPaintEvent */*ev*/)
+void KGradientWidget::paintEvent(TQPaintEvent */*ev*/)
{
- QTime time;
+ TQTime time;
int it, ft;
- QString say;
+ TQString say;
- QColor ca = Qt::black, cb = Qt::blue;
+ TQColor ca = Qt::black, cb = Qt::blue;
int x = 0, y = 0;
pix.resize(width()/cols, height()/rows);
- QPainter p(this);
+ TQPainter p(this);
p.setPen(Qt::white);
// draw once, so that the benchmarking be fair :-)
diff --git a/kdeui/tests/kgradienttest.h b/kdeui/tests/kgradienttest.h
index 09b17ffc7..a793bfa5c 100644
--- a/kdeui/tests/kgradienttest.h
+++ b/kdeui/tests/kgradienttest.h
@@ -7,16 +7,16 @@
#ifndef __KGRADIENT_TEST_H
#define __KGRADIENT_TEST_H
-#include <qwidget.h>
+#include <tqwidget.h>
#include <kpixmap.h>
class KGradientWidget : public QWidget
{
public:
- KGradientWidget(QWidget *parent=0, const char *name=0)
- : QWidget(parent, name){;}
+ KGradientWidget(TQWidget *parent=0, const char *name=0)
+ : TQWidget(parent, name){;}
protected:
- void paintEvent(QPaintEvent *ev);
+ void paintEvent(TQPaintEvent *ev);
private:
KPixmap pix;
};
diff --git a/kdeui/tests/khashtest.cpp b/kdeui/tests/khashtest.cpp
index 1065bef1a..2f00c9296 100644
--- a/kdeui/tests/khashtest.cpp
+++ b/kdeui/tests/khashtest.cpp
@@ -2,25 +2,25 @@
#include <kapplication.h>
#include <kpixmapeffect.h>
#include <kimageeffect.h>
-#include <qpainter.h>
-#include <qdatetime.h>
-#include <qstring.h>
-#include <qimage.h>
+#include <tqpainter.h>
+#include <tqdatetime.h>
+#include <tqstring.h>
+#include <tqimage.h>
int cols = 3, rows = 3; // how many
-void KHashWidget::paintEvent(QPaintEvent * /*ev*/)
+void KHashWidget::paintEvent(TQPaintEvent * /*ev*/)
{
- QTime time;
+ TQTime time;
int it, ft;
- QString say;
+ TQString say;
- QColor cb = QColor(0,70,70), ca = QColor(80,200,200);
+ TQColor cb = TQColor(0,70,70), ca = TQColor(80,200,200);
int x = 0, y = 0;
pix.resize(width()/cols, height()/rows);
- QPainter p(this);
+ TQPainter p(this);
p.setPen(Qt::white);
// draw once, so that the benchmarking be fair :-)
@@ -77,7 +77,7 @@ void KHashWidget::paintEvent(QPaintEvent * /*ev*/)
p.drawText(5+(x++)*width()/cols, 15+y*height()/rows, say);
- QImage image = QImage("testimage.png");
+ TQImage image = TQImage("testimage.png");
it = time.elapsed();
KImageEffect::hash(image, KImageEffect::WestLite, 2);
ft = time.elapsed();
diff --git a/kdeui/tests/khashtest.h b/kdeui/tests/khashtest.h
index 24a01c4f1..3d4e8a3fa 100644
--- a/kdeui/tests/khashtest.h
+++ b/kdeui/tests/khashtest.h
@@ -7,7 +7,7 @@
#ifndef __KHASH_TEST_H
#define __KHASH_TEST_H
-#include <qwidget.h>
+#include <tqwidget.h>
#include <kpixmap.h>
class KHashWidget : public QWidget
@@ -15,10 +15,10 @@ class KHashWidget : public QWidget
Q_OBJECT
public:
- KHashWidget(QWidget *parent=0, const char *name=0)
- : QWidget(parent, name){;}
+ KHashWidget(TQWidget *parent=0, const char *name=0)
+ : TQWidget(parent, name){;}
protected:
- void paintEvent(QPaintEvent *ev);
+ void paintEvent(TQPaintEvent *ev);
private:
KPixmap pix;
};
diff --git a/kdeui/tests/kinputdialogtest.cpp b/kdeui/tests/kinputdialogtest.cpp
index 3f9509a40..66db4617a 100644
--- a/kdeui/tests/kinputdialogtest.cpp
+++ b/kdeui/tests/kinputdialogtest.cpp
@@ -7,15 +7,15 @@
#include <kinputdialog.h>
#include <kdebug.h>
-#include <qstring.h>
-#include <qvalidator.h>
+#include <tqstring.h>
+#include <tqvalidator.h>
int main( int argc, char *argv[] )
{
KApplication app( argc, argv, "kinputdialogtest" );
bool ok;
- QString svalue;
+ TQString svalue;
int ivalue;
double dvalue;
@@ -23,7 +23,7 @@ int main( int argc, char *argv[] )
kdDebug() << "value1: " << svalue << ", ok: " << ok << endl;
svalue = KInputDialog::getText( "_caption", "_label:", "_value", &ok, 0L, 0L,
- &QRegExpValidator( QRegExp( "[0-9]{3}\\-[0-9]{3}\\-[0-9]{4}" ), 0L ) );
+ &TQRegExpValidator( TQRegExp( "[0-9]{3}\\-[0-9]{3}\\-[0-9]{4}" ), 0L ) );
kdDebug() << "value2: " << svalue << ", ok: " << ok << endl;
svalue = KInputDialog::getText( "_caption", "_label:", "_value", &ok, 0L, 0L,
@@ -45,7 +45,7 @@ int main( int argc, char *argv[] )
dvalue = KInputDialog::getDouble( "_caption", "_label:", 10, 0, 100, 2, &ok );
kdDebug() << "value6: " << dvalue << ", ok: " << ok << endl;
- QStringList list, slvalue;
+ TQStringList list, slvalue;
list << "Item 1" << "Item 2" << "Item 3" << "Item 4" << "Item 5";
svalue = KInputDialog::getItem( "_caption", "_label:", list, 1, false, &ok );
kdDebug() << "value7: " << svalue << ", ok: " << ok << endl;
@@ -53,7 +53,7 @@ int main( int argc, char *argv[] )
svalue = KInputDialog::getItem( "_caption", "_label:", list, 1, true, &ok );
kdDebug() << "value8: " << svalue << ", ok: " << ok << endl;
- QStringList select;
+ TQStringList select;
select << "Item 3";
list << "Item 6" << "Item 7" << "Item 8" << "Item 9" << "Item 10";
slvalue = KInputDialog::getItemList( "_caption", "_label:", list, select,
diff --git a/kdeui/tests/kjanuswidgettest.cpp b/kdeui/tests/kjanuswidgettest.cpp
index 5788f3638..59db252e2 100644
--- a/kdeui/tests/kjanuswidgettest.cpp
+++ b/kdeui/tests/kjanuswidgettest.cpp
@@ -1,9 +1,9 @@
#include <kapplication.h>
#include <kjanuswidget.h>
-#include <qstring.h>
-#include <qcheckbox.h>
-#include <qvbox.h>
+#include <tqstring.h>
+#include <tqcheckbox.h>
+#include <tqvbox.h>
int main(int argc, char** argv)
{
@@ -11,14 +11,14 @@ int main(int argc, char** argv)
// -----
KJanusWidget* janus = new KJanusWidget( 0, 0, KJanusWidget::IconList );
- QVBox* page1 = janus->addVBoxPage( QString( "Page1" ) ); // use i18n in real apps
- QCheckBox* cb1 = new QCheckBox( "a", page1 );
+ TQVBox* page1 = janus->addVBoxPage( TQString( "Page1" ) ); // use i18n in real apps
+ TQCheckBox* cb1 = new TQCheckBox( "a", page1 );
- QVBox* page2 = janus->addVBoxPage( QString( "Page2" ) );
- QCheckBox* cb2 = new QCheckBox( "a", page2 );
+ TQVBox* page2 = janus->addVBoxPage( TQString( "Page2" ) );
+ TQCheckBox* cb2 = new TQCheckBox( "a", page2 );
janus->show();
- QObject::connect( &app, SIGNAL( lastWindowClosed() ), &app, SLOT( quit() ) );
+ TQObject::connect( &app, TQT_SIGNAL( lastWindowClosed() ), &app, TQT_SLOT( quit() ) );
return app.exec();
}
diff --git a/kdeui/tests/kledtest.cpp b/kdeui/tests/kledtest.cpp
index 8fc082420..d68f1e366 100644
--- a/kdeui/tests/kledtest.cpp
+++ b/kdeui/tests/kledtest.cpp
@@ -1,22 +1,22 @@
#include <kapplication.h>
-#include <qwidget.h>
-#include <qtimer.h>
+#include <tqwidget.h>
+#include <tqtimer.h>
#include <stdlib.h>
#include "kled.h"
#include "kledtest.h"
-KLedTest::KLedTest(QWidget* parent)
- : QWidget(parent, 0),
+KLedTest::KLedTest(TQWidget* parent)
+ : TQWidget(parent, 0),
LedWidth(16),
LedHeight(10),
Grid(3),
ledcolor(0),
- red(QColor("red")),
- blue(QColor("blue")),
- green(QColor("green")),
- yellow(QColor("yellow")),
+ red(TQColor("red")),
+ blue(TQColor("blue")),
+ green(TQColor("green")),
+ yellow(TQColor("yellow")),
kled_round(true) // Switch HERE between rectangle and circular leds
{
if (kled_round) {
@@ -42,9 +42,9 @@ KLedTest::KLedTest(QWidget* parent)
t_toggle.start(1000, false);
t_color.start(3500, false);
t_look.start(3500, false);
- QObject::connect(&t_toggle, SIGNAL(timeout()), l, SLOT(toggle()));
- QObject::connect(&t_color, SIGNAL(timeout()), this, SLOT(nextColor()));
- QObject::connect(&t_look, SIGNAL(timeout()), this, SLOT(nextLook()));
+ TQObject::connect(&t_toggle, TQT_SIGNAL(timeout()), l, TQT_SLOT(toggle()));
+ TQObject::connect(&t_color, TQT_SIGNAL(timeout()), this, TQT_SLOT(nextColor()));
+ TQObject::connect(&t_look, TQT_SIGNAL(timeout()), this, TQT_SLOT(nextLook()));
l->show();
resize(240,140);
}
@@ -66,7 +66,7 @@ KLedTest::KLedTest(QWidget* parent)
y+=Grid+LedHeight;
}
setFixedSize(x+Grid, y+Grid);
- connect(&timer, SIGNAL(timeout()), SLOT(timeout()));
+ connect(&timer, TQT_SIGNAL(timeout()), TQT_SLOT(timeout()));
timer.start(500);
}
}
diff --git a/kdeui/tests/kledtest.h b/kdeui/tests/kledtest.h
index ad9ad3ffb..33c70fe83 100644
--- a/kdeui/tests/kledtest.h
+++ b/kdeui/tests/kledtest.h
@@ -1,8 +1,8 @@
#ifndef kledtest_h
#define kledtest_h
-#include <qwidget.h>
-#include <qtimer.h>
+#include <tqwidget.h>
+#include <tqtimer.h>
#include <stdlib.h>
#include <kled.h>
@@ -10,7 +10,7 @@ class KLedTest : public QWidget
{
Q_OBJECT
protected:
- QTimer timer;
+ TQTimer timer;
KLed *leds[/*KLed::NoOfShapes*/2* /*KLed::NoOfLooks*/3* /*KLed::NoOfStates*/2];
const int LedWidth;
const int LedHeight;
@@ -21,7 +21,7 @@ protected:
int x, y, index;
- QTimer t_toggle, t_color, t_look;
+ TQTimer t_toggle, t_color, t_look;
//KLed *l; // create lamp
//KLed *l; // create lamp
KLed *l; // create lamp
@@ -30,14 +30,14 @@ protected:
int ledcolor;
KLed::Look ledlook;
- const QColor red;
- const QColor blue;
- const QColor green;
- const QColor yellow;
+ const TQColor red;
+ const TQColor blue;
+ const TQColor green;
+ const TQColor yellow;
public:
- KLedTest(QWidget* parent=0);
+ KLedTest(TQWidget* parent=0);
~KLedTest();
bool kled_round;
diff --git a/kdeui/tests/klineeditdlgtest.cpp b/kdeui/tests/klineeditdlgtest.cpp
index 2c9dc5248..e43085c0c 100644
--- a/kdeui/tests/klineeditdlgtest.cpp
+++ b/kdeui/tests/klineeditdlgtest.cpp
@@ -1,8 +1,8 @@
#include <kapplication.h>
#include <klineeditdlg.h>
-#include <qstring.h>
-#include <qtextview.h>
+#include <tqstring.h>
+#include <tqtextview.h>
int main(int argc, char** argv)
{
diff --git a/kdeui/tests/klineedittest.cpp b/kdeui/tests/klineedittest.cpp
index 2b40163a1..3508982fa 100644
--- a/kdeui/tests/klineedittest.cpp
+++ b/kdeui/tests/klineedittest.cpp
@@ -1,8 +1,8 @@
-#include <qstring.h>
-#include <qpushbutton.h>
-#include <qlayout.h>
-#include <qhbox.h>
-#include <qtimer.h>
+#include <tqstring.h>
+#include <tqpushbutton.h>
+#include <tqlayout.h>
+#include <tqhbox.h>
+#include <tqtimer.h>
#include <kaboutdata.h>
#include <kcmdlineargs.h>
@@ -16,12 +16,12 @@
#include "klineedittest.h"
-KLineEditTest::KLineEditTest (QWidget* widget, const char* name )
- :QWidget( widget, name )
+KLineEditTest::KLineEditTest (TQWidget* widget, const char* name )
+ :TQWidget( widget, name )
{
- QVBoxLayout* layout = new QVBoxLayout( this, KDialog::marginHint(), KDialog::spacingHint() );
+ TQVBoxLayout* layout = new TQVBoxLayout( this, KDialog::marginHint(), KDialog::spacingHint() );
- QStringList list;
+ TQStringList list;
list << "Tree" << "Suuupa" << "Stroustrup" << "Stone" << "Slick"
<< "Slashdot" << "Send" << "Peables" << "Mankind" << "Ocean"
<< "Chips" << "Computer" << "Sandworm" << "Sandstorm" << "Chops";
@@ -31,28 +31,28 @@ KLineEditTest::KLineEditTest (QWidget* widget, const char* name )
m_lineedit->completionObject()->setItems( list );
m_lineedit->setFixedSize(500,30);
m_lineedit->setEnableSqueezedText( true );
- connect( m_lineedit, SIGNAL( returnPressed() ), SLOT( slotReturnPressed() ) );
- connect( m_lineedit, SIGNAL( returnPressed(const QString&) ),
- SLOT( slotReturnPressed(const QString&) ) );
+ connect( m_lineedit, TQT_SIGNAL( returnPressed() ), TQT_SLOT( slotReturnPressed() ) );
+ connect( m_lineedit, TQT_SIGNAL( returnPressed(const TQString&) ),
+ TQT_SLOT( slotReturnPressed(const TQString&) ) );
- QHBox *hbox = new QHBox (this);
- m_btnExit = new QPushButton( "E&xit", hbox );
+ TQHBox *hbox = new TQHBox (this);
+ m_btnExit = new TQPushButton( "E&xit", hbox );
m_btnExit->setFixedSize(100,30);
- connect( m_btnExit, SIGNAL( clicked() ), SLOT( quitApp() ) );
+ connect( m_btnExit, TQT_SIGNAL( clicked() ), TQT_SLOT( quitApp() ) );
- m_btnReadOnly = new QPushButton( "&Read Only", hbox );
+ m_btnReadOnly = new TQPushButton( "&Read Only", hbox );
m_btnReadOnly->setToggleButton (true);
m_btnReadOnly->setFixedSize(100,30);
- connect( m_btnReadOnly, SIGNAL( toggled(bool) ), SLOT( slotReadOnly(bool) ) );
+ connect( m_btnReadOnly, TQT_SIGNAL( toggled(bool) ), TQT_SLOT( slotReadOnly(bool) ) );
- m_btnEnable = new QPushButton( "Dis&able", hbox );
+ m_btnEnable = new TQPushButton( "Dis&able", hbox );
m_btnEnable->setToggleButton (true);
m_btnEnable->setFixedSize(100,30);
- connect( m_btnEnable, SIGNAL( toggled(bool) ), SLOT( slotEnable(bool) ) );
+ connect( m_btnEnable, TQT_SIGNAL( toggled(bool) ), TQT_SLOT( slotEnable(bool) ) );
- m_btnHide = new QPushButton( "Hi&de", hbox );
+ m_btnHide = new TQPushButton( "Hi&de", hbox );
m_btnHide->setFixedSize(100,30);
- connect( m_btnHide, SIGNAL( clicked() ), SLOT( slotHide() ) );
+ connect( m_btnHide, TQT_SIGNAL( clicked() ), TQT_SLOT( slotHide() ) );
layout->addWidget( m_lineedit );
layout->addWidget( hbox );
@@ -75,7 +75,7 @@ void KLineEditTest::show()
m_btnHide->setEnabled( true );
- QWidget::show();
+ TQWidget::show();
}
void KLineEditTest::slotReturnPressed()
@@ -83,12 +83,12 @@ void KLineEditTest::slotReturnPressed()
kdDebug() << "Return pressed" << endl;
}
-void KLineEditTest::slotReturnPressed( const QString& text )
+void KLineEditTest::slotReturnPressed( const TQString& text )
{
kdDebug() << "Return pressed: " << text << endl;
}
-void KLineEditTest::resultOutput( const QString& text )
+void KLineEditTest::resultOutput( const TQString& text )
{
kdDebug() << "KlineEditTest Debug: " << text << endl;
}
@@ -96,14 +96,14 @@ void KLineEditTest::resultOutput( const QString& text )
void KLineEditTest::slotReadOnly( bool ro )
{
m_lineedit->setReadOnly (ro);
- QString text = (ro) ? "&Read Write" : "&Read Only";
+ TQString text = (ro) ? "&Read Write" : "&Read Only";
m_btnReadOnly->setText (text);
}
void KLineEditTest::slotEnable (bool enable)
{
m_lineedit->setEnabled (!enable);
- QString text = (enable) ? "En&able":"Dis&able";
+ TQString text = (enable) ? "En&able":"Dis&able";
m_btnEnable->setText (text);
}
@@ -113,7 +113,7 @@ void KLineEditTest::slotHide()
m_btnHide->setEnabled( false );
m_lineedit->setText( "My dog ate the homework, whaaaaaaaaaaaaaaaaaaaaaaa"
"aaaaaaaaaaaaaaaaaaaaaaaaa! I want my mommy!" );
- QTimer::singleShot( 1000, this, SLOT(show()) );
+ TQTimer::singleShot( 1000, this, TQT_SLOT(show()) );
}
int main ( int argc, char **argv)
diff --git a/kdeui/tests/klineedittest.h b/kdeui/tests/klineedittest.h
index e3b87c30e..4a07dc812 100644
--- a/kdeui/tests/klineedittest.h
+++ b/kdeui/tests/klineedittest.h
@@ -1,8 +1,8 @@
#ifndef _KLINEEDITTEST_H
#define _KLINEEDITTEST_H
-#include <qwidget.h>
-#include <qguardedptr.h>
+#include <tqwidget.h>
+#include <tqguardedptr.h>
class QString;
class QPushButton;
@@ -14,7 +14,7 @@ class KLineEditTest : public QWidget
Q_OBJECT
public:
- KLineEditTest( QWidget *parent=0, const char *name=0 );
+ KLineEditTest( TQWidget *parent=0, const char *name=0 );
~KLineEditTest();
KLineEdit* lineEdit() const { return m_lineedit; }
@@ -27,15 +27,15 @@ private slots:
void slotEnable( bool );
void slotReadOnly( bool );
void slotReturnPressed();
- void resultOutput( const QString& );
- void slotReturnPressed( const QString& );
+ void resultOutput( const TQString& );
+ void slotReturnPressed( const TQString& );
protected:
- QGuardedPtr<KLineEdit> m_lineedit;
- QPushButton* m_btnExit;
- QPushButton* m_btnReadOnly;
- QPushButton* m_btnEnable;
- QPushButton* m_btnHide;
+ TQGuardedPtr<KLineEdit> m_lineedit;
+ TQPushButton* m_btnExit;
+ TQPushButton* m_btnReadOnly;
+ TQPushButton* m_btnEnable;
+ TQPushButton* m_btnHide;
};
#endif
diff --git a/kdeui/tests/klistviewtest.cpp b/kdeui/tests/klistviewtest.cpp
index 75c01e439..6189c76e9 100644
--- a/kdeui/tests/klistviewtest.cpp
+++ b/kdeui/tests/klistviewtest.cpp
@@ -1,7 +1,7 @@
#include <klistview.h>
#include <kapplication.h>
#include <kdialogbase.h>
-#include <qvbox.h>
+#include <tqvbox.h>
int main( int argc, char **argv )
diff --git a/kdeui/tests/kmainwindowrestoretest.cpp b/kdeui/tests/kmainwindowrestoretest.cpp
index 35198a6c2..7415085ac 100644
--- a/kdeui/tests/kmainwindowrestoretest.cpp
+++ b/kdeui/tests/kmainwindowrestoretest.cpp
@@ -3,12 +3,12 @@
#include <kapplication.h>
-#include <qlabel.h>
+#include <tqlabel.h>
#define MAKE_WINDOW( kind, title ) do { \
MainWin##kind * m = new MainWin##kind; \
m->setCaption( title ); \
- m->setCentralWidget( new QLabel( title, m ) ); \
+ m->setCentralWidget( new TQLabel( title, m ) ); \
m->show(); \
} while ( false )
diff --git a/kdeui/tests/kmainwindowtest.cpp b/kdeui/tests/kmainwindowtest.cpp
index 6ab8d33a0..5b7afd36f 100644
--- a/kdeui/tests/kmainwindowtest.cpp
+++ b/kdeui/tests/kmainwindowtest.cpp
@@ -1,5 +1,5 @@
-#include <qtimer.h>
-#include <qlabel.h>
+#include <tqtimer.h>
+#include <tqlabel.h>
#include <kapplication.h>
#include <kstatusbar.h>
@@ -9,9 +9,9 @@
MainWindow::MainWindow()
{
- QTimer::singleShot( 2*1000, this, SLOT( showMessage() ) );
+ TQTimer::singleShot( 2*1000, this, TQT_SLOT( showMessage() ) );
- setCentralWidget( new QLabel( "foo", this ) );
+ setCentralWidget( new TQLabel( "foo", this ) );
menuBar()->insertItem( "hi" );
}
diff --git a/kdeui/tests/kmessageboxtest.cpp b/kdeui/tests/kmessageboxtest.cpp
index 372bef16a..1b926739f 100644
--- a/kdeui/tests/kmessageboxtest.cpp
+++ b/kdeui/tests/kmessageboxtest.cpp
@@ -1,7 +1,7 @@
#include "kmessagebox.h"
-#include <qdialog.h>
-#include <qlayout.h>
+#include <tqdialog.h>
+#include <tqlayout.h>
#include <stdlib.h>
@@ -15,15 +15,15 @@
class ExampleWidget : public QLabel
{
public:
- ExampleWidget( QWidget *parent = 0, const char *name = 0 );
+ ExampleWidget( TQWidget *parent = 0, const char *name = 0 );
};
-ExampleWidget::ExampleWidget( QWidget *parent, const char *name )
- : QLabel(parent, name )
+ExampleWidget::ExampleWidget( TQWidget *parent, const char *name )
+ : TQLabel(parent, name )
{
// Make the top-level layout; a vertical box to contain all widgets
// and sub-layouts.
- QSize sh;
+ TQSize sh;
setText("<p>Hello.</p>");
sh = sizeHint();
qWarning("SizeHint = %d x %d", sh.width(), sh.height());
@@ -43,7 +43,7 @@ ExampleWidget::ExampleWidget( QWidget *parent, const char *name )
class Foo: public QDialog
{
public:
- Foo() : QDialog(0, "foo", true) { resize(200,200); new QLabel("Hello World", this); show(); }
+ Foo() : TQDialog(0, "foo", true) { resize(200,200); new TQLabel("Hello World", this); show(); }
};
void showResult(int test, int i)
@@ -69,7 +69,7 @@ int main( int argc, char *argv[] )
w->show();
w->deleteLater();
- QStringList list; list.append("Hello"); list.append("World");
+ TQStringList list; list.append("Hello"); list.append("World");
for( test = 1; true; test++)
{
@@ -79,24 +79,24 @@ case 1:
i = KMessageBox::warningContinueCancel(w,
"You are about to <Print>.\n"
"Are you sure?",
- "Print", QString::fromLatin1("&Print"), "dontask", false);
+ "Print", TQString::fromLatin1("&Print"), "dontask", false);
i = KMessageBox::warningContinueCancel(0,
"You are about to <Print>.\n"
"Are you sure?",
- "Print", QString::fromLatin1("&Print"), "dontask", KMessageBox::AllowLink);
+ "Print", TQString::fromLatin1("&Print"), "dontask", KMessageBox::AllowLink);
i = KMessageBox::questionYesNo(0, "<p>Do you have a printer? thisisaverylongdkldhklghklghklashgkllasghkdlsghkldfghklsabla bla bbla bla. It also has <a href=http://www.kde.org>this URL</a>.</p>",
- QString("Bla"), QString("Yes"), QString("No"), "bla", KMessageBox::AllowLink);
+ TQString("Bla"), TQString("Yes"), TQString("No"), "bla", KMessageBox::AllowLink);
break;
case 2:
i = KMessageBox::questionYesNo(0, "Do you have a printer?",
- QString("Printer setup"), QString::null);
+ TQString("Printer setup"), TQString::null);
break;
case 3:
i = KMessageBox::questionYesNo(0,
"Does your printer support color or only black and white?",
- "Printer setup", QString::fromLatin1("&Color"), QString::fromLatin1("&Black & White"));
+ "Printer setup", TQString::fromLatin1("&Color"), TQString::fromLatin1("&Black & White"));
break;
case 4:
@@ -123,13 +123,13 @@ case 6:
i = KMessageBox::warningContinueCancel(0,
"You are about to print.\n"
"Are you sure?",
- "Print", QString::fromLatin1("&Print"));
+ "Print", TQString::fromLatin1("&Print"));
break;
case 7:
i = KMessageBox::warningContinueCancel(0,
"You are about to <Print>.\n"
"Are you sure?",
- "Print", QString::fromLatin1("&Print"), "dontask", false);
+ "Print", TQString::fromLatin1("&Print"), "dontask", false);
break;
case 8:
@@ -142,14 +142,14 @@ case 9:
i = KMessageBox::warningYesNoCancel(0,
"Your document contains unsaved changes.\n"
"Do you want to save your changes?\n",
- QString::fromLatin1("Close"));
+ TQString::fromLatin1("Close"));
break;
case 10:
i = KMessageBox::warningYesNoCancel(0,
"Your document contains unsaved changes.\n"
"Do you want to save or discard your changes?\n",
- "Close", QString::fromLatin1("&Save"), QString::fromLatin1("&Discard") );
+ "Close", TQString::fromLatin1("&Save"), TQString::fromLatin1("&Discard") );
break;
case 11:
@@ -186,7 +186,7 @@ case 16:
case 17:
i = KMessageBox::Ok;
- KMessageBox::information(0, "You can enable the menubar again\nwith the right mouse button menu.", QString::null, "Enable_Menubar");
+ KMessageBox::information(0, "You can enable the menubar again\nwith the right mouse button menu.", TQString::null, "Enable_Menubar");
break;
case 18:
@@ -196,11 +196,11 @@ case 18:
case 19:
i = KMessageBox::Ok;
- KMessageBox::information(0, "Return of the annoying popup message.", QString::null, "Enable_Menubar");
+ KMessageBox::information(0, "Return of the annoying popup message.", TQString::null, "Enable_Menubar");
break;
case 20:
{
- QStringList strlist;
+ TQStringList strlist;
strlist << "/dev/hda" << "/etc/inittab" << "/usr/somefile" << "/some/really/"
"long/file/name/which/is/in/a/really/deep/directory/in/a/really/large/"
"hard/disk/of/your/system" << "/and/another/one" ;
@@ -209,9 +209,9 @@ case 20:
break;
case 21:
{
- QStringList strlist;
+ TQStringList strlist;
printf("Filling StringList...\n");
- for (int j=1;j<=6000;j++) strlist.append(QString("/tmp/tmp.%1").arg(j));
+ for (int j=1;j<=6000;j++) strlist.append(TQString("/tmp/tmp.%1").arg(j));
printf("Completed...\n");
i = KMessageBox::questionYesNoList(0, "Do you want to delete the following files ?",strlist);
}
@@ -229,7 +229,7 @@ case 23:
case 24:
i = KMessageBox::Ok;
- KMessageBox::informationList(0, "The follwoing words have been found:", list, QString::null, "Search_Words");
+ KMessageBox::informationList(0, "The follwoing words have been found:", list, TQString::null, "Search_Words");
break;
default:
diff --git a/kdeui/tests/knuminputtest.cpp b/kdeui/tests/knuminputtest.cpp
index b3d8e9067..fdf8697e9 100644
--- a/kdeui/tests/knuminputtest.cpp
+++ b/kdeui/tests/knuminputtest.cpp
@@ -8,8 +8,8 @@
*
*/
-#include <qlayout.h>
-#include <qvgroupbox.h>
+#include <tqlayout.h>
+#include <tqvgroupbox.h>
#include <kapplication.h>
#include <knuminput.h>
@@ -26,15 +26,15 @@ void TopLevel::slotPrint( double n ) {
kdDebug() << "slotPrint( " << n << " )" << endl;
}
-#define conn(x,y) connect( x, SIGNAL(valueChanged(y)), SLOT(slotPrint(y)))
-TopLevel::TopLevel(QWidget *parent, const char *name)
- : QWidget(parent, name)
+#define conn(x,y) connect( x, TQT_SIGNAL(valueChanged(y)), TQT_SLOT(slotPrint(y)))
+TopLevel::TopLevel(TQWidget *parent, const char *name)
+ : TQWidget(parent, name)
{
setCaption("KNumInput test application");
- QBoxLayout* l = new QHBoxLayout(this, 10);
+ TQBoxLayout* l = new TQHBoxLayout(this, 10);
- QGroupBox* b1 = new QVGroupBox("KIntNumInput", this);
+ TQGroupBox* b1 = new TQVGroupBox("KIntNumInput", this);
i1 = new KIntNumInput(42, b1, 10, "perc_no_slider");
i1->setLabel("percent of usage (no slider)");
@@ -67,10 +67,10 @@ TopLevel::TopLevel(QWidget *parent, const char *name)
i6->setLabel("Height (should be 2xWidth):");
i6->setRange(0, 200, 1, false);
i6->setReferencePoint( 10 );
- connect( i5, SIGNAL(relativeValueChanged(double)),
- i6, SLOT(setRelativeValue(double)) );
- connect( i6, SIGNAL(relativeValueChanged(double)),
- i5, SLOT(setRelativeValue(double)) );
+ connect( i5, TQT_SIGNAL(relativeValueChanged(double)),
+ i6, TQT_SLOT(setRelativeValue(double)) );
+ connect( i6, TQT_SIGNAL(relativeValueChanged(double)),
+ i5, TQT_SLOT(setRelativeValue(double)) );
i7 = new KIntNumInput(i6, 0, b1, 10);
i7->setLabel("math test:", AlignVCenter|AlignLeft );
@@ -79,7 +79,7 @@ TopLevel::TopLevel(QWidget *parent, const char *name)
l->addWidget(b1);
- QGroupBox* b2 = new QVGroupBox("KDoubleNumInput", this);
+ TQGroupBox* b2 = new TQVGroupBox("KDoubleNumInput", this);
d1 = new KDoubleNumInput(4.0, b2, "perc_double_no_slider");
d1->setLabel("percent of usage (no slider)", AlignTop | AlignRight);
@@ -119,10 +119,10 @@ TopLevel::TopLevel(QWidget *parent, const char *name)
d7 = new KDoubleNumInput(d6, -30, 30, 0, 0.001, 3, b2, "d7");
d7->setReferencePoint( -3 );
- connect( d6, SIGNAL(relativeValueChanged(double)),
- d7, SLOT(setRelativeValue(double)) );
- connect( d7, SIGNAL(relativeValueChanged(double)),
- d6, SLOT(setRelativeValue(double)) );
+ connect( d6, TQT_SIGNAL(relativeValueChanged(double)),
+ d7, TQT_SLOT(setRelativeValue(double)) );
+ connect( d7, TQT_SIGNAL(relativeValueChanged(double)),
+ d6, TQT_SLOT(setRelativeValue(double)) );
l->addWidget(b2);
}
diff --git a/kdeui/tests/knuminputtest.h b/kdeui/tests/knuminputtest.h
index e4a979e48..f32e1c4b4 100644
--- a/kdeui/tests/knuminputtest.h
+++ b/kdeui/tests/knuminputtest.h
@@ -1,7 +1,7 @@
#ifndef _KNUMINPUTTEST_H
#define _KNUMINPUTTEST_H
-#include <qwidget.h>
+#include <tqwidget.h>
class KIntNumInput;
class KDoubleNumInput;
@@ -11,7 +11,7 @@ class TopLevel : public QWidget
Q_OBJECT
public:
- TopLevel( QWidget *parent=0, const char *name=0 );
+ TopLevel( TQWidget *parent=0, const char *name=0 );
protected:
KIntNumInput* i1, *i2, *i3, *i4, *i5, *i6, *i7;
KDoubleNumInput* d1, *d2, *d3, *d4, *d5, *d6, *d7;
diff --git a/kdeui/tests/kpalettetest.cpp b/kdeui/tests/kpalettetest.cpp
index d75563ec5..32b91ff96 100644
--- a/kdeui/tests/kpalettetest.cpp
+++ b/kdeui/tests/kpalettetest.cpp
@@ -1,21 +1,21 @@
#include <kapplication.h>
-#include <qwidget.h>
-#include <qtimer.h>
+#include <tqwidget.h>
+#include <tqtimer.h>
#include <stdlib.h>
#include "kpalette.h"
#include "kledtest.h"
#include <stdio.h>
-#include <qstringlist.h>
+#include <tqstringlist.h>
int main( int argc, char **argv )
{
KApplication a( argc, argv, "KPalettetest" );
- QStringList palettes = KPalette::getPaletteList();
- for(QStringList::ConstIterator it = palettes.begin();
+ TQStringList palettes = KPalette::getPaletteList();
+ for(TQStringList::ConstIterator it = palettes.begin();
it != palettes.end(); it++)
{
printf("Palette = %s\n", (*it).ascii());
diff --git a/kdeui/tests/kpanelmenutest.cpp b/kdeui/tests/kpanelmenutest.cpp
index 4ff13b89c..6f2d8f2be 100644
--- a/kdeui/tests/kpanelmenutest.cpp
+++ b/kdeui/tests/kpanelmenutest.cpp
@@ -3,8 +3,8 @@
#include <kstandarddirs.h>
#include <dcopclient.h>
-TestWidget::TestWidget(QWidget *parent, const char *name)
- : QLabel(parent, name)
+TestWidget::TestWidget(TQWidget *parent, const char *name)
+ : TQLabel(parent, name)
{
testMenu = new KPanelAppMenu(locate("mini", "x.png"), "Client Test", this,
"menu1");
@@ -15,8 +15,8 @@ TestWidget::TestWidget(QWidget *parent, const char *name)
KPanelAppMenu *ssub = subMenu->insertMenu(locate("mini", "x.png"), "One more");
- connect(testMenu, SIGNAL(activated(int)), SLOT(slotMenuCalled(int)));
- connect(subMenu, SIGNAL(activated(int)), SLOT(slotSubMenuCalled(int)));
+ connect(testMenu, TQT_SIGNAL(activated(int)), TQT_SLOT(slotMenuCalled(int)));
+ connect(subMenu, TQT_SIGNAL(activated(int)), TQT_SLOT(slotSubMenuCalled(int)));
init();
setText("We added \"Client Test\" to kicker. Click the K Menu to check.");
@@ -50,7 +50,7 @@ void TestWidget::slotMenuCalled(int id)
void TestWidget::slotSubMenuCalled(int id)
{
- QString msg("Called with id=%1");
+ TQString msg("Called with id=%1");
setText(msg.arg(id));
}
diff --git a/kdeui/tests/kpanelmenutest.h b/kdeui/tests/kpanelmenutest.h
index 0e0e4a728..ec76a4498 100644
--- a/kdeui/tests/kpanelmenutest.h
+++ b/kdeui/tests/kpanelmenutest.h
@@ -2,13 +2,13 @@
#define __KPANELMENUTEST_H
#include <kpanelappmenu.h>
-#include <qlabel.h>
+#include <tqlabel.h>
class TestWidget : public QLabel
{
Q_OBJECT
public:
- TestWidget(QWidget *parent=0, const char *name=0);
+ TestWidget(TQWidget *parent=0, const char *name=0);
~TestWidget(){delete testMenu;}
public slots:
void slotMenuCalled(int id);
diff --git a/kdeui/tests/kpixmapregionselectordialogtest.cpp b/kdeui/tests/kpixmapregionselectordialogtest.cpp
index 7d57c4234..c698c66f2 100644
--- a/kdeui/tests/kpixmapregionselectordialogtest.cpp
+++ b/kdeui/tests/kpixmapregionselectordialogtest.cpp
@@ -1,6 +1,6 @@
#include "kpixmapregionselectordialog.h"
-#include <qpixmap.h>
-#include <qimage.h>
+#include <tqpixmap.h>
+#include <tqimage.h>
#include <kapplication.h>
#include <kcmdlineargs.h>
#include <iostream>
@@ -24,8 +24,8 @@ int main(int argc, char**argv)
return 1;
}
- QImage image=
- KPixmapRegionSelectorDialog::getSelectedImage(QPixmap(args->arg(0)),100,100);
+ TQImage image=
+ KPixmapRegionSelectorDialog::getSelectedImage(TQPixmap(args->arg(0)),100,100);
image.save("output.png", "PNG");
diff --git a/kdeui/tests/kpopuptest.cpp b/kdeui/tests/kpopuptest.cpp
index 43e3c0958..96f4b3d32 100644
--- a/kdeui/tests/kpopuptest.cpp
+++ b/kdeui/tests/kpopuptest.cpp
@@ -1,30 +1,30 @@
#include <kapplication.h>
-#include <qwidget.h>
-#include <qcursor.h>
+#include <tqwidget.h>
+#include <tqcursor.h>
#include "kpopupmenu.h"
-class DemoWidget : public QWidget {
+class DemoWidget : public TQWidget {
private:
KPopupMenu *menu;
-void mousePressEvent(QMouseEvent *)
+void mousePressEvent(TQMouseEvent *)
{
- menu->popup(QCursor::pos());
+ menu->popup(TQCursor::pos());
}
-void paintEvent(QPaintEvent *)
+void paintEvent(TQPaintEvent *)
{
drawText(32, 32, "Press a Mouse Button!");
}
public:
- DemoWidget() : QWidget()
+ DemoWidget() : TQWidget()
{
menu = new KPopupMenu("Popup Menu:");
menu->insertItem("Item1");
menu->insertItem("Item2");
menu->insertSeparator();
- menu->insertItem("Quit", qApp, SLOT(quit()));
+ menu->insertItem("Quit", qApp, TQT_SLOT(quit()));
}
};
@@ -33,7 +33,7 @@ int main(int argc, char **argv)
KApplication app(argc, argv, "kpopupmenutest");
DemoWidget w;
app.setMainWidget(&w);
- w.setFont(QFont("helvetica", 12, QFont::Bold), true);
+ w.setFont(TQFont("helvetica", 12, TQFont::Bold), true);
w.show();
return app.exec();
}
diff --git a/kdeui/tests/kprogresstest.cpp b/kdeui/tests/kprogresstest.cpp
index d748fcb0f..7b7024135 100644
--- a/kdeui/tests/kprogresstest.cpp
+++ b/kdeui/tests/kprogresstest.cpp
@@ -1,11 +1,11 @@
#include <kapplication.h>
-#include <qwidget.h>
+#include <tqwidget.h>
#include "kprogress.h"
-class MyWidget : public QWidget {
+class MyWidget : public TQWidget {
public:
- MyWidget() : QWidget()
+ MyWidget() : TQWidget()
{
setFixedSize(440, 80);
Progress = new KProgress(this);
@@ -17,10 +17,10 @@ public:
private:
KProgress *Progress;
- void timerEvent(QTimerEvent *);
+ void timerEvent(TQTimerEvent *);
};
-void MyWidget::timerEvent(QTimerEvent *)
+void MyWidget::timerEvent(TQTimerEvent *)
{
static enum { fwd, back } direction = fwd;
//static KProgress::BarStyle style = KProgress::Solid;
diff --git a/kdeui/tests/krulertest.cpp b/kdeui/tests/krulertest.cpp
index 1efe57643..ad2f5630a 100644
--- a/kdeui/tests/krulertest.cpp
+++ b/kdeui/tests/krulertest.cpp
@@ -3,26 +3,26 @@
#include "krulertest.h"
#include "kruler.h"
-#include <qlayout.h>
-#include <qlabel.h>
-#include <qgroupbox.h>
+#include <tqlayout.h>
+#include <tqlabel.h>
+#include <tqgroupbox.h>
/*
void
MyCheckBox::mouseReleaseEvent(QMouseEvent *e )
{
- QButton::mouseReleaseEvent(e);
+ TQButton::mouseReleaseEvent(e);
if ();
}
*/
-MouseWidget::MouseWidget( QWidget *parent, const char *name, WFlags f )
- : QFrame(parent, name, f)
+MouseWidget::MouseWidget( TQWidget *parent, const char *name, WFlags f )
+ : TQFrame(parent, name, f)
{
}
void
-MouseWidget::mousePressEvent( QMouseEvent *e )
+MouseWidget::mousePressEvent( TQMouseEvent *e )
{
mouseButtonDown = true;
emit newXPos(e->x());
@@ -30,11 +30,11 @@ MouseWidget::mousePressEvent( QMouseEvent *e )
}
void
-MouseWidget::mouseReleaseEvent( QMouseEvent * )
+MouseWidget::mouseReleaseEvent( TQMouseEvent * )
{ mouseButtonDown = false; }
void
-MouseWidget::mouseMoveEvent( QMouseEvent *e )
+MouseWidget::mouseMoveEvent( TQMouseEvent *e )
{
if (mouseButtonDown) {
emit newXPos(e->x());
@@ -43,7 +43,7 @@ MouseWidget::mouseMoveEvent( QMouseEvent *e )
}
void
-MouseWidget::resizeEvent( QResizeEvent *r )
+MouseWidget::resizeEvent( TQResizeEvent *r )
{
emit newWidth(r->size().width());
emit newHeight(r->size().height());
@@ -53,16 +53,16 @@ MouseWidget::resizeEvent( QResizeEvent *r )
KRulerTest::KRulerTest( const char *name )
: KMainWindow(0, name)
{
- mainframe = new QFrame(this);
+ mainframe = new TQFrame(this);
- layout = new QGridLayout(mainframe, 2, 2);
+ layout = new TQGridLayout(mainframe, 2, 2);
- miniwidget = new QFrame(mainframe);
- miniwidget->setFrameStyle(QFrame::WinPanel | QFrame::Raised);
+ miniwidget = new TQFrame(mainframe);
+ miniwidget->setFrameStyle(TQFrame::WinPanel | TQFrame::Raised);
bigwidget = new MouseWidget(mainframe);
- bigwidget->setFrameStyle(QFrame::WinPanel | QFrame::Sunken);
+ bigwidget->setFrameStyle(TQFrame::WinPanel | TQFrame::Sunken);
- // QRect bwrect = bigwidget->frameRect();
+ // TQRect bwrect = bigwidget->frameRect();
// qDebug("big rect: top%i left%i bottom%i right%i",
// bwrect.top(), bwrect.left(), bwrect.bottom(), bwrect.right());
hruler = new KRuler(Horizontal, mainframe);
@@ -72,98 +72,98 @@ KRulerTest::KRulerTest( const char *name )
hruler->setOffset( 0 );
vruler = new KRuler(Vertical, mainframe);
- vruler->setFrameStyle(QFrame::WinPanel | QFrame::Sunken);
+ vruler->setFrameStyle(TQFrame::WinPanel | TQFrame::Sunken);
vruler->setOffset( 0 );
vruler->setRange( 0, 1000 );
- connect( bigwidget, SIGNAL(newXPos(int)),
- hruler, SLOT(slotNewValue(int)) );
- connect( bigwidget, SIGNAL(newYPos(int)),
- vruler, SLOT(slotNewValue(int)) );
- connect( bigwidget, SIGNAL(newWidth(int)),
- SLOT(slotNewWidth(int)) );
- connect( bigwidget, SIGNAL(newHeight(int)),
- SLOT(slotNewHeight(int)) );
+ connect( bigwidget, TQT_SIGNAL(newXPos(int)),
+ hruler, TQT_SLOT(slotNewValue(int)) );
+ connect( bigwidget, TQT_SIGNAL(newYPos(int)),
+ vruler, TQT_SLOT(slotNewValue(int)) );
+ connect( bigwidget, TQT_SIGNAL(newWidth(int)),
+ TQT_SLOT(slotNewWidth(int)) );
+ connect( bigwidget, TQT_SIGNAL(newHeight(int)),
+ TQT_SLOT(slotNewHeight(int)) );
layout->addWidget(miniwidget, 0, 0);
layout->addWidget(hruler, 0, 1);
layout->addWidget(vruler, 1, 0);
layout->addWidget(bigwidget, 1, 1);
- mouse_message = new QLabel("Press and hold mouse button\nfor pointer movement", bigwidget);
+ mouse_message = new TQLabel("Press and hold mouse button\nfor pointer movement", bigwidget);
mouse_message->adjustSize();
mouse_message->move(4,4);
- showMarks = new QGroupBox("Show which marks ?", bigwidget);
+ showMarks = new TQGroupBox("Show which marks ?", bigwidget);
showMarks->setFixedSize(140, 160);
showMarks->move(330,4);
- showTM = new QCheckBox("show tiny marks", showMarks);
+ showTM = new TQCheckBox("show tiny marks", showMarks);
showTM->adjustSize();
showTM->move(5,15);
showTM->setChecked(true);
- connect(showTM, SIGNAL(toggled(bool)), SLOT(slotSetTinyMarks(bool)) );
- showLM = new QCheckBox("show little marks", showMarks);
+ connect(showTM, TQT_SIGNAL(toggled(bool)), TQT_SLOT(slotSetTinyMarks(bool)) );
+ showLM = new TQCheckBox("show little marks", showMarks);
showLM->adjustSize();
showLM->move(5,35);
showLM->setChecked(true);
- connect(showLM, SIGNAL(toggled(bool)), SLOT(slotSetLittleMarks(bool)) );
- showMM = new QCheckBox("show medium marks", showMarks);
+ connect(showLM, TQT_SIGNAL(toggled(bool)), TQT_SLOT(slotSetLittleMarks(bool)) );
+ showMM = new TQCheckBox("show medium marks", showMarks);
showMM->adjustSize();
showMM->move(5,55);
showMM->setChecked(true);
- connect(showMM, SIGNAL(toggled(bool)), SLOT(slotSetMediumMarks(bool)) );
- showBM = new QCheckBox("show big marks", showMarks);
+ connect(showMM, TQT_SIGNAL(toggled(bool)), TQT_SLOT(slotSetMediumMarks(bool)) );
+ showBM = new TQCheckBox("show big marks", showMarks);
showBM->adjustSize();
showBM->move(5,75);
showBM->setChecked(true);
- connect(showBM, SIGNAL(toggled(bool)), SLOT(slotSetBigMarks(bool)) );
- showEM = new QCheckBox("show end marks", showMarks);
+ connect(showBM, TQT_SIGNAL(toggled(bool)), TQT_SLOT(slotSetBigMarks(bool)) );
+ showEM = new TQCheckBox("show end marks", showMarks);
showEM->adjustSize();
showEM->move(5,95);
showEM->setChecked(true);
- connect(showEM, SIGNAL(toggled(bool)), SLOT(slotSetEndMarks(bool)) );
- showPT = new QCheckBox("show ruler pointer", showMarks);
+ connect(showEM, TQT_SIGNAL(toggled(bool)), TQT_SLOT(slotSetEndMarks(bool)) );
+ showPT = new TQCheckBox("show ruler pointer", showMarks);
showPT->adjustSize();
showPT->move(5,115);
showPT->setChecked(true);
- connect(showPT, SIGNAL(toggled(bool)), SLOT(slotSetRulerPointer(bool)) );
- fixLen = new QCheckBox("fix ruler length", showMarks);
+ connect(showPT, TQT_SIGNAL(toggled(bool)), TQT_SLOT(slotSetRulerPointer(bool)) );
+ fixLen = new TQCheckBox("fix ruler length", showMarks);
fixLen->adjustSize();
fixLen->move(5,135);
fixLen->setChecked(true);
- connect(fixLen, SIGNAL(toggled(bool)), SLOT(slotFixRulerLength(bool)) );
- connect(fixLen, SIGNAL(toggled(bool)), SLOT(slotCheckLength(bool)) );
+ connect(fixLen, TQT_SIGNAL(toggled(bool)), TQT_SLOT(slotFixRulerLength(bool)) );
+ connect(fixLen, TQT_SIGNAL(toggled(bool)), TQT_SLOT(slotCheckLength(bool)) );
- lineEdit = new QGroupBox("Value of begin/end", bigwidget);
+ lineEdit = new TQGroupBox("Value of begin/end", bigwidget);
lineEdit->setFixedSize(140, 80);
lineEdit->move(330,4+160);
beginMark = new KIntNumInput(0, lineEdit);
beginMark->setRange(-1000, 1000, 1, false);
beginMark->move(5, 15);
beginMark->setFixedSize(beginMark->sizeHint());
- connect(beginMark, SIGNAL(valueChanged(int)),
- hruler, SLOT(slotNewOffset(int)) );
- connect(beginMark, SIGNAL(valueChanged(int)),
- vruler, SLOT(slotNewOffset(int)) );
+ connect(beginMark, TQT_SIGNAL(valueChanged(int)),
+ hruler, TQT_SLOT(slotNewOffset(int)) );
+ connect(beginMark, TQT_SIGNAL(valueChanged(int)),
+ vruler, TQT_SLOT(slotNewOffset(int)) );
endMark = new KIntNumInput(0, lineEdit);
endMark->setRange(-1000, 1000, 1, false);
endMark->move(5, 35);
endMark->setFixedSize(endMark->sizeHint());
- connect(endMark, SIGNAL(valueChanged(int)),
- hruler, SLOT(slotEndOffset(int)) );
- connect(endMark, SIGNAL(valueChanged(int)),
- vruler, SLOT(slotEndOffset(int)) );
+ connect(endMark, TQT_SIGNAL(valueChanged(int)),
+ hruler, TQT_SLOT(slotEndOffset(int)) );
+ connect(endMark, TQT_SIGNAL(valueChanged(int)),
+ vruler, TQT_SLOT(slotEndOffset(int)) );
lengthInput = new KIntNumInput(0, lineEdit);
lengthInput->setRange(-1000, 1000, 1, false);
lengthInput->move(5, 55);
lengthInput->setFixedSize(lengthInput->sizeHint());
- connect(lengthInput, SIGNAL(valueChanged(int)),
- hruler, SLOT(slotEndOffset(int)) );
- connect(lengthInput, SIGNAL(valueChanged(int)),
- vruler, SLOT(slotEndOffset(int)) );
+ connect(lengthInput, TQT_SIGNAL(valueChanged(int)),
+ hruler, TQT_SLOT(slotEndOffset(int)) );
+ connect(lengthInput, TQT_SIGNAL(valueChanged(int)),
+ vruler, TQT_SLOT(slotEndOffset(int)) );
- vertrot = new QGroupBox("Value of rotate translate for Vert.", bigwidget);
+ vertrot = new TQGroupBox("Value of rotate translate for Vert.", bigwidget);
vertrot->setFixedSize(140, 80);
vertrot->move(330,4+160+80+4);
transX = new KDoubleNumInput(0.0, vertrot);
@@ -171,48 +171,48 @@ KRulerTest::KRulerTest( const char *name )
transX->move(5, 15);
transX->setFixedSize(transX->sizeHint());
//transX->setLabel("transx", AlignLeft);
- connect(transX, SIGNAL(valueChanged(double)),
- SLOT(slotSetXTrans(double)) );
+ connect(transX, TQT_SIGNAL(valueChanged(double)),
+ TQT_SLOT(slotSetXTrans(double)) );
transY = new KDoubleNumInput(-12.0, vertrot);
transY->setRange(-1000, 1000, 1, false);
transY->move(5, 35);
transY->setFixedSize(transY->sizeHint());
//transY->setLabel("transy", AlignLeft);
- connect(transY, SIGNAL(valueChanged(double)),
- SLOT(slotSetYTrans(double)) );
+ connect(transY, TQT_SIGNAL(valueChanged(double)),
+ TQT_SLOT(slotSetYTrans(double)) );
rotV = new KDoubleNumInput(90.0, vertrot);
rotV->setRange(-1000, 1000, 1, false);
rotV->move(5, 55);
rotV->setFixedSize(rotV->sizeHint());
//rotV->setLabel("rot", AlignLeft);
- connect(rotV, SIGNAL(valueChanged(double)),
- SLOT(slotSetRotate(double)) );
+ connect(rotV, TQT_SIGNAL(valueChanged(double)),
+ TQT_SLOT(slotSetRotate(double)) );
- metricstyle = new QButtonGroup("metric styles", bigwidget);
+ metricstyle = new TQButtonGroup("metric styles", bigwidget);
metricstyle->setFixedSize(100, 120);
metricstyle->move(330-110,4);
- pixelmetric = new QRadioButton("pixel", metricstyle);
+ pixelmetric = new TQRadioButton("pixel", metricstyle);
pixelmetric->adjustSize();
pixelmetric->move(5,15);
metricstyle->insert(pixelmetric, (int)KRuler::Pixel);
- inchmetric = new QRadioButton("inch", metricstyle);
+ inchmetric = new TQRadioButton("inch", metricstyle);
inchmetric->adjustSize();
inchmetric->move(5,35);
metricstyle->insert(inchmetric, (int)KRuler::Inch);
- mmmetric = new QRadioButton("millimeter", metricstyle);
+ mmmetric = new TQRadioButton("millimeter", metricstyle);
mmmetric->adjustSize();
mmmetric->move(5,55);
metricstyle->insert(mmmetric, (int)KRuler::Millimetres);
- cmmetric = new QRadioButton("centimeter", metricstyle);
+ cmmetric = new TQRadioButton("centimeter", metricstyle);
cmmetric->adjustSize();
cmmetric->move(5,75);
metricstyle->insert(cmmetric, (int)KRuler::Centimetres);
- mmetric = new QRadioButton("meter", metricstyle);
+ mmetric = new TQRadioButton("meter", metricstyle);
mmetric->adjustSize();
mmetric->move(5,95);
metricstyle->insert(mmetric, (int)KRuler::Metres);
- connect ( metricstyle, SIGNAL(clicked(int)), SLOT(slotSetMStyle(int)) );
+ connect ( metricstyle, TQT_SIGNAL(clicked(int)), TQT_SLOT(slotSetMStyle(int)) );
setCentralWidget(mainframe);
@@ -362,7 +362,7 @@ int main(int argc, char **argv)
KRulerTest *window;
testapp = new KApplication(argc, argv,"krulertest");
- testapp->setFont(QFont("Helvetica",12),true);
+ testapp->setFont(TQFont("Helvetica",12),true);
window = new KRulerTest("main");
testapp->setMainWidget(window);
diff --git a/kdeui/tests/krulertest.h b/kdeui/tests/krulertest.h
index ba9938deb..20ee8d372 100644
--- a/kdeui/tests/krulertest.h
+++ b/kdeui/tests/krulertest.h
@@ -5,10 +5,10 @@
#include <kapplication.h>
#include <kmainwindow.h>
-#include <qwidget.h>
-#include <qcheckbox.h>
-#include <qradiobutton.h>
-#include <qbuttongroup.h>
+#include <tqwidget.h>
+#include <tqcheckbox.h>
+#include <tqradiobutton.h>
+#include <tqbuttongroup.h>
#include <knuminput.h>
class KRuler;
@@ -23,7 +23,7 @@ class MouseWidget : public QFrame
{
Q_OBJECT
public:
-MouseWidget( QWidget *parent=0, const char *name=0, WFlags f=0 );
+MouseWidget( TQWidget *parent=0, const char *name=0, WFlags f=0 );
signals:
void newXPos(int);
@@ -32,10 +32,10 @@ signals:
void newHeight(int);
protected:
- virtual void mousePressEvent ( QMouseEvent * );
- virtual void mouseReleaseEvent ( QMouseEvent * );
- virtual void mouseMoveEvent ( QMouseEvent * );
- virtual void resizeEvent ( QResizeEvent * );
+ virtual void mousePressEvent ( TQMouseEvent * );
+ virtual void mouseReleaseEvent ( TQMouseEvent * );
+ virtual void mouseMoveEvent ( TQMouseEvent * );
+ virtual void resizeEvent ( TQResizeEvent * );
private:
bool mouseButtonDown;
@@ -74,17 +74,17 @@ private slots:
private:
KRuler *hruler, *vruler;
- QGridLayout *layout;
- QFrame *miniwidget, *bigwidget;
- QFrame *mainframe;
+ TQGridLayout *layout;
+ TQFrame *miniwidget, *bigwidget;
+ TQFrame *mainframe;
- QLabel *mouse_message;
- QGroupBox *showMarks, *lineEdit, *vertrot;
- QCheckBox *showTM, *showLM, *showMM, *showBM, *showEM, *showPT, *fixLen;
+ TQLabel *mouse_message;
+ TQGroupBox *showMarks, *lineEdit, *vertrot;
+ TQCheckBox *showTM, *showLM, *showMM, *showBM, *showEM, *showPT, *fixLen;
KIntNumInput *beginMark, *endMark, *lengthInput;
KDoubleNumInput *transX, *transY, *rotV;
- QButtonGroup *metricstyle;
- QRadioButton *pixelmetric, *inchmetric, *mmmetric, *cmmetric, *mmetric;
+ TQButtonGroup *metricstyle;
+ TQRadioButton *pixelmetric, *inchmetric, *mmmetric, *cmmetric, *mmetric;
};
#endif
diff --git a/kdeui/tests/kseparatortest.cpp b/kdeui/tests/kseparatortest.cpp
index 2abd84448..17e965ca8 100644
--- a/kdeui/tests/kseparatortest.cpp
+++ b/kdeui/tests/kseparatortest.cpp
@@ -19,19 +19,19 @@
#include <kapplication.h>
-#include <qlayout.h>
-#include <qwidget.h>
+#include <tqlayout.h>
+#include <tqwidget.h>
#include "kseparator.h"
int main(int argc, char **argv)
{
- QApplication app(argc, argv);
+ TQApplication app(argc, argv);
- QWidget *toplevel = new QWidget();
+ TQWidget *toplevel = new TQWidget();
- QBoxLayout *mainbox = new QBoxLayout(toplevel, QBoxLayout::TopToBottom, 10);
+ TQBoxLayout *mainbox = new TQBoxLayout(toplevel, TQBoxLayout::TopToBottom, 10);
KSeparator *sep1 = new KSeparator( KSeparator::VLine, toplevel );
mainbox->addWidget(sep1);
diff --git a/kdeui/tests/kspelltest.cpp b/kdeui/tests/kspelltest.cpp
index 4511edd6c..9180ed376 100644
--- a/kdeui/tests/kspelltest.cpp
+++ b/kdeui/tests/kspelltest.cpp
@@ -20,26 +20,26 @@
#include <kapplication.h>
#include <kdebug.h>
-#include <qstring.h>
-#include <qlabel.h>
-#include <qtextcodec.h>
+#include <tqstring.h>
+#include <tqlabel.h>
+#include <tqtextcodec.h>
int main(int argc, char **argv)
{
KApplication *app = new KApplication(argc, argv, "KSpellTest");
// test ASCII
- //QString text( "I have noo idee of how to wride englisch or englisch" );
+ //TQString text( "I have noo idee of how to wride englisch or englisch" );
// test Latin-3 (need dictionary "esperanto" and "Latin3" in config)
- //QCString ctext( "sed jen: e¶oþanø' æiu¼aýde; e¶uþunøo øiun fendredon - kaj dimanøon...");
- //QTextCodec *codec = QTextCodec::codecForName("ISO 8859-3");
+ //TQCString ctext( "sed jen: e¶oþanø' æiu¼aýde; e¶uþunøo øiun fendredon - kaj dimanøon...");
+ //TQTextCodec *codec = TQTextCodec::codecForName("ISO 8859-3");
// test UTF-8 (need dictionary "esperanto" and "UTF-8" in config)
- QCString ctext( "sed jen: e\304\245oÅanÄo ĉiuĵaÅ­de e\304\245uÅunÄo Äiun fendredon kaj dimanÄon");
- QTextCodec *codec = QTextCodec::codecForName("UTF-8");
+ TQCString ctext( "sed jen: e\304\245oÅanÄo ĉiuĵaÅ­de e\304\245uÅunÄo Äiun fendredon kaj dimanÄon");
+ TQTextCodec *codec = TQTextCodec::codecForName("UTF-8");
- QString text = codec->toUnicode(ctext.data());
+ TQString text = codec->toUnicode(ctext.data());
KSpell::modalCheck( text );
diff --git a/kdeui/tests/kstatusbartest.cpp b/kdeui/tests/kstatusbartest.cpp
index 80b92c446..a85689494 100644
--- a/kdeui/tests/kstatusbartest.cpp
+++ b/kdeui/tests/kstatusbartest.cpp
@@ -1,11 +1,11 @@
-#include <qpopupmenu.h>
-#include <qwidget.h>
-#include <qstring.h>
-#include <qmessagebox.h>
-#include <qmultilineedit.h>
-#include <qkeycode.h>
-#include <qpixmap.h>
-#include <qcursor.h>
+#include <tqpopupmenu.h>
+#include <tqwidget.h>
+#include <tqstring.h>
+#include <tqmessagebox.h>
+#include <tqmultilineedit.h>
+#include <tqkeycode.h>
+#include <tqpixmap.h>
+#include <tqcursor.h>
#include <stdlib.h>
@@ -15,7 +15,7 @@
#include <kmenubar.h>
#include "kstatusbartest.h"
-testWindow::testWindow (QWidget *, const char *name)
+testWindow::testWindow (TQWidget *, const char *name)
: KMainWindow (0, name)
{
// Setup Menus
@@ -23,7 +23,7 @@ testWindow::testWindow (QWidget *, const char *name)
fileMenu = new QPopupMenu;
menuBar->insertItem ("&File", fileMenu);
fileMenu->insertItem ("&Exit", KApplication::kApplication(),
- SLOT( quit() ), ALT + Key_Q );
+ TQT_SLOT( quit() ), ALT + Key_Q );
statusbar = new KStatusBar (this);
statusbar->insertItem("Zoom: XXXX", 0);
statusbar->insertItem("XXX", 1);
@@ -34,10 +34,10 @@ testWindow::testWindow (QWidget *, const char *name)
insert = true;
statusbar->changeItem("Line: 13567", 2);
- connect (statusbar, SIGNAL(pressed(int)), this, SLOT(slotPress(int)));
- connect (statusbar, SIGNAL(released(int)), this, SLOT(slotClick(int)));
+ connect (statusbar, TQT_SIGNAL(pressed(int)), this, TQT_SLOT(slotPress(int)));
+ connect (statusbar, TQT_SIGNAL(released(int)), this, TQT_SLOT(slotClick(int)));
- widget = new QMultiLineEdit (this);
+ widget = new TQMultiLineEdit (this);
setCentralWidget(widget);
@@ -53,7 +53,7 @@ testWindow::testWindow (QWidget *, const char *name)
smenu->insertItem("400%");
smenu->insertItem("oo%");
- connect (smenu, SIGNAL(activated(int)), this, SLOT(slotMenu(int)));
+ connect (smenu, TQT_SIGNAL(activated(int)), this, TQT_SLOT(slotMenu(int)));
}
void testWindow::slotClick(int id)
@@ -77,7 +77,7 @@ void testWindow::slotClick(int id)
break;
case 2:
- QMessageBox::information(0, "Go to line", "Enter line number:", "where?");
+ TQMessageBox::information(0, "Go to line", "Enter line number:", "where?");
statusbar->changeItem("16543", 2);
break;
}
@@ -86,12 +86,12 @@ void testWindow::slotClick(int id)
void testWindow::slotPress(int id)
{
if (id == 0)
- smenu->popup(QCursor::pos()); // This popup should understand keys up and down
+ smenu->popup(TQCursor::pos()); // This popup should understand keys up and down
}
void testWindow::slotMenu(int id)
{
- QString s = "Zoom: ";
+ TQString s = "Zoom: ";
s.append (smenu->text(id));
statusbar->changeItem(s,0);
}
diff --git a/kdeui/tests/kstatusbartest.h b/kdeui/tests/kstatusbartest.h
index ea59073b6..aa9aded27 100644
--- a/kdeui/tests/kstatusbartest.h
+++ b/kdeui/tests/kstatusbartest.h
@@ -2,7 +2,7 @@
#define test_kstatusbar_h
#include <kmenubar.h>
-#include <qpopupmenu.h>
+#include <tqpopupmenu.h>
#include <kstatusbar.h>
#include <kmainwindow.h>
@@ -13,7 +13,7 @@ class testWindow : public KMainWindow
Q_OBJECT
public:
- testWindow (QWidget *parent=0, const char *name=0);
+ testWindow (TQWidget *parent=0, const char *name=0);
~testWindow ();
public slots:
@@ -22,12 +22,12 @@ public slots:
void slotMenu(int i);
protected:
- QPopupMenu *fileMenu;
- QPopupMenu *smenu;
+ TQPopupMenu *fileMenu;
+ TQPopupMenu *smenu;
KMenuBar *menuBar;
KStatusBar *statusbar;
bool insert;
- QMultiLineEdit *widget;
+ TQMultiLineEdit *widget;
};
#endif
diff --git a/kdeui/tests/ksystemtraytest.cpp b/kdeui/tests/ksystemtraytest.cpp
index 746246132..dcee78346 100644
--- a/kdeui/tests/ksystemtraytest.cpp
+++ b/kdeui/tests/ksystemtraytest.cpp
@@ -4,7 +4,7 @@
int main(int argc, char **argv)
{
KApplication app( argc, argv, "ksystemtraytest" );
- QLabel *l = new QLabel("System Tray Main Window", 0L);
+ TQLabel *l = new TQLabel("System Tray Main Window", 0L);
KSystemTray *tray = new KSystemTray( l );
tray->setText("Test");
l->show();
diff --git a/kdeui/tests/ktabctltest.cpp b/kdeui/tests/ktabctltest.cpp
index 20b7246c1..33e7fc5b7 100644
--- a/kdeui/tests/ktabctltest.cpp
+++ b/kdeui/tests/ktabctltest.cpp
@@ -3,22 +3,22 @@
*/
#include <kapplication.h>
-#include <qpushbutton.h>
-#include <qlabel.h>
-#include <qobject.h>
-#include <qlistbox.h>
-#include <qgroupbox.h>
-#include <qevent.h>
-#include <qcombobox.h>
-#include <qlineedit.h>
-#include <qradiobutton.h>
-#include <qcheckbox.h>
-#include <qtabdialog.h>
-#include <qtooltip.h>
-#include <qmessagebox.h>
-#include <qtabbar.h>
-#include <qpalette.h>
-#include <qmultilineedit.h>
+#include <tqpushbutton.h>
+#include <tqlabel.h>
+#include <tqobject.h>
+#include <tqlistbox.h>
+#include <tqgroupbox.h>
+#include <tqevent.h>
+#include <tqcombobox.h>
+#include <tqlineedit.h>
+#include <tqradiobutton.h>
+#include <tqcheckbox.h>
+#include <tqtabdialog.h>
+#include <tqtooltip.h>
+#include <tqmessagebox.h>
+#include <tqtabbar.h>
+#include <tqpalette.h>
+#include <tqmultilineedit.h>
#include <stdio.h>
#include <stdlib.h>
@@ -28,12 +28,12 @@
#include "ktabctl.h"
#include "ktabctltest.h"
-QFont default_font("Helvetica", 12);
+TQFont default_font("Helvetica", 12);
KApplication *a;
-TopLevel::TopLevel(QWidget *parent, const char *name)
- : QWidget(parent, name)
+TopLevel::TopLevel(TQWidget *parent, const char *name)
+ : TQWidget(parent, name)
{
setCaption("KTabCtl test application");
setMinimumSize(300, 200);
@@ -43,22 +43,22 @@ TopLevel::TopLevel(QWidget *parent, const char *name)
*/
test = new KTabCtl(this, "test");
- connect(test, SIGNAL(tabSelected(int)), this, SLOT(tabChanged(int)));
- QWidget *w = new QWidget(test, "_page1");
- QPushButton *bt = new QPushButton("Click me to quit", w, "_bt1");
- connect(bt, SIGNAL(clicked()), this, SLOT(okPressed()));
+ connect(test, TQT_SIGNAL(tabSelected(int)), this, TQT_SLOT(tabChanged(int)));
+ TQWidget *w = new TQWidget(test, "_page1");
+ TQPushButton *bt = new TQPushButton("Click me to quit", w, "_bt1");
+ connect(bt, TQT_SIGNAL(clicked()), this, TQT_SLOT(okPressed()));
bt->adjustSize();
bt->move(20, 20);
test->addTab(w, "Seite 1");
pages[0] = w;
- w = new QWidget(test, "_page2");
- e = new QMultiLineEdit(w, "_editor");
+ w = new TQWidget(test, "_page2");
+ e = new TQMultiLineEdit(w, "_editor");
e->setText("Write some usesless stuff here :-)");
w->resize(width(), height());
test->addTab(w, "Seite 2");
pages[1] = w;
- w = new QWidget(test, "_page3");
- bt = new QPushButton("This button does absolutely nothing", w, "_bt3");
+ w = new TQWidget(test, "_page3");
+ bt = new TQPushButton("This button does absolutely nothing", w, "_bt3");
bt->adjustSize();
bt->move(20, 20);
test->addTab(w, "Seite 3");
@@ -70,7 +70,7 @@ TopLevel::TopLevel(QWidget *parent, const char *name)
adjustSize();
}
-void TopLevel::resizeEvent( QResizeEvent * )
+void TopLevel::resizeEvent( TQResizeEvent * )
{
test->resize(width(), height());
e->setGeometry(10, 10, pages[1]->width() - 20, pages[1]->height() - 20);
diff --git a/kdeui/tests/ktabctltest.h b/kdeui/tests/ktabctltest.h
index c010c993f..0090de1c9 100644
--- a/kdeui/tests/ktabctltest.h
+++ b/kdeui/tests/ktabctltest.h
@@ -5,7 +5,7 @@
#ifndef _KTABCTLTEST_H
#define _KTABCTLTEST_H
-#include <qwidget.h>
+#include <tqwidget.h>
class KTabCtl;
class QPushButton;
class QMultiLineEdit;
@@ -15,13 +15,13 @@ class TopLevel : public QWidget
Q_OBJECT
public:
- TopLevel( QWidget *parent=0, const char *name=0 );
+ TopLevel( TQWidget *parent=0, const char *name=0 );
protected:
- void resizeEvent(QResizeEvent *);
+ void resizeEvent(TQResizeEvent *);
KTabCtl *test;
- QPushButton *ok, *cancel;
- QMultiLineEdit *e;
- QWidget *pages[3];
+ TQPushButton *ok, *cancel;
+ TQMultiLineEdit *e;
+ TQWidget *pages[3];
public slots:
void okPressed();
void tabChanged(int);
diff --git a/kdeui/tests/ktabwidgettest.cpp b/kdeui/tests/ktabwidgettest.cpp
index 82db9109c..32ed5c89f 100644
--- a/kdeui/tests/ktabwidgettest.cpp
+++ b/kdeui/tests/ktabwidgettest.cpp
@@ -1,6 +1,6 @@
-#include <qcheckbox.h>
-#include <qlayout.h>
-#include <qdragobject.h>
+#include <tqcheckbox.h>
+#include <tqlayout.h>
+#include <tqdragobject.h>
#include <kapplication.h>
#include <kcmdlineargs.h>
@@ -9,119 +9,119 @@
#include "ktabwidgettest.h"
-Test::Test( QWidget* parent, const char *name )
- :QVBox( parent, name ), mChange(0), mLeftWidget(0), mRightWidget(0),
+Test::Test( TQWidget* parent, const char *name )
+ :TQVBox( parent, name ), mChange(0), mLeftWidget(0), mRightWidget(0),
mLeftPopup( false ), mRightPopup( false ), mTabbarContextPopup( false ), mContextPopup( false )
{
resize( 600,300 );
mWidget = new KTabWidget( this );
- mWidget->addTab( new QLabel( "Testlabel 1", mWidget ), "One" );
- mWidget->addTab( new QLabel( "Testlabel 2", mWidget ), "Two" );
- mWidget->addTab( new QWidget( mWidget), SmallIcon( "konsole" ), "Three" );
- mWidget->addTab( new QWidget( mWidget), "Four" );
+ mWidget->addTab( new TQLabel( "Testlabel 1", mWidget ), "One" );
+ mWidget->addTab( new TQLabel( "Testlabel 2", mWidget ), "Two" );
+ mWidget->addTab( new TQWidget( mWidget), SmallIcon( "konsole" ), "Three" );
+ mWidget->addTab( new TQWidget( mWidget), "Four" );
mWidget->setTabColor( mWidget->page(0), Qt::red );
mWidget->setTabColor( mWidget->page(1), Qt::blue );
- connect( mWidget, SIGNAL( currentChanged( QWidget * ) ), SLOT( currentChanged( QWidget * ) ) );
- connect( mWidget, SIGNAL( contextMenu( QWidget *, const QPoint & )), SLOT(contextMenu( QWidget *, const QPoint & )));
- connect( mWidget, SIGNAL( contextMenu( const QPoint & )), SLOT(tabbarContextMenu( const QPoint & )));
- connect( mWidget, SIGNAL( mouseDoubleClick( QWidget * )), SLOT(mouseDoubleClick( QWidget * )));
- connect( mWidget, SIGNAL( mouseMiddleClick() ), SLOT(addTab() ));
- connect( mWidget, SIGNAL( mouseMiddleClick( QWidget * )), SLOT(mouseMiddleClick( QWidget * )));
- connect( mWidget, SIGNAL( closeRequest( QWidget * )), SLOT(mouseMiddleClick( QWidget * )));
- connect( mWidget, SIGNAL( testCanDecode(const QDragMoveEvent *, bool & )), SLOT(testCanDecode(const QDragMoveEvent *, bool & )));
- connect( mWidget, SIGNAL( receivedDropEvent( QDropEvent * )), SLOT(receivedDropEvent( QDropEvent * )));
- connect( mWidget, SIGNAL( receivedDropEvent( QWidget *, QDropEvent * )), SLOT(receivedDropEvent( QWidget *, QDropEvent * )));
- connect( mWidget, SIGNAL( initiateDrag( QWidget * )), SLOT(initiateDrag( QWidget * )));
- connect( mWidget, SIGNAL( movedTab( int, int )), SLOT(movedTab( int, int )));
+ connect( mWidget, TQT_SIGNAL( currentChanged( TQWidget * ) ), TQT_SLOT( currentChanged( TQWidget * ) ) );
+ connect( mWidget, TQT_SIGNAL( contextMenu( TQWidget *, const TQPoint & )), TQT_SLOT(contextMenu( TQWidget *, const TQPoint & )));
+ connect( mWidget, TQT_SIGNAL( contextMenu( const TQPoint & )), TQT_SLOT(tabbarContextMenu( const TQPoint & )));
+ connect( mWidget, TQT_SIGNAL( mouseDoubleClick( TQWidget * )), TQT_SLOT(mouseDoubleClick( TQWidget * )));
+ connect( mWidget, TQT_SIGNAL( mouseMiddleClick() ), TQT_SLOT(addTab() ));
+ connect( mWidget, TQT_SIGNAL( mouseMiddleClick( TQWidget * )), TQT_SLOT(mouseMiddleClick( TQWidget * )));
+ connect( mWidget, TQT_SIGNAL( closeRequest( TQWidget * )), TQT_SLOT(mouseMiddleClick( TQWidget * )));
+ connect( mWidget, TQT_SIGNAL( testCanDecode(const TQDragMoveEvent *, bool & )), TQT_SLOT(testCanDecode(const TQDragMoveEvent *, bool & )));
+ connect( mWidget, TQT_SIGNAL( receivedDropEvent( TQDropEvent * )), TQT_SLOT(receivedDropEvent( TQDropEvent * )));
+ connect( mWidget, TQT_SIGNAL( receivedDropEvent( TQWidget *, TQDropEvent * )), TQT_SLOT(receivedDropEvent( TQWidget *, TQDropEvent * )));
+ connect( mWidget, TQT_SIGNAL( initiateDrag( TQWidget * )), TQT_SLOT(initiateDrag( TQWidget * )));
+ connect( mWidget, TQT_SIGNAL( movedTab( int, int )), TQT_SLOT(movedTab( int, int )));
mWidget->setTabReorderingEnabled( true );
- QWidget * grid = new QWidget(this);
- QGridLayout * gridlayout = new QGridLayout( grid, 5, 2 );
+ TQWidget * grid = new TQWidget(this);
+ TQGridLayout * gridlayout = new TQGridLayout( grid, 5, 2 );
- QPushButton * addTab = new QPushButton( "Add Tab", grid );
+ TQPushButton * addTab = new TQPushButton( "Add Tab", grid );
gridlayout->addWidget( addTab, 0, 0 );
- connect( addTab, SIGNAL( clicked() ), SLOT( addTab() ) );
+ connect( addTab, TQT_SIGNAL( clicked() ), TQT_SLOT( addTab() ) );
- QPushButton * removeTab = new QPushButton( "Remove Current Tab", grid );
+ TQPushButton * removeTab = new TQPushButton( "Remove Current Tab", grid );
gridlayout->addWidget( removeTab, 0, 1 );
- connect( removeTab, SIGNAL( clicked() ), SLOT( removeCurrentTab() ) );
+ connect( removeTab, TQT_SIGNAL( clicked() ), TQT_SLOT( removeCurrentTab() ) );
- mLeftButton = new QCheckBox( "Show left button", grid );
+ mLeftButton = new TQCheckBox( "Show left button", grid );
gridlayout->addWidget( mLeftButton, 1, 0 );
- connect( mLeftButton, SIGNAL( toggled(bool) ), SLOT( toggleLeftButton(bool) ) );
+ connect( mLeftButton, TQT_SIGNAL( toggled(bool) ), TQT_SLOT( toggleLeftButton(bool) ) );
mLeftButton->setChecked(true);
- QCheckBox * leftPopup = new QCheckBox( "Enable left popup", grid );
+ TQCheckBox * leftPopup = new TQCheckBox( "Enable left popup", grid );
gridlayout->addWidget( leftPopup, 2, 0 );
- connect( leftPopup, SIGNAL( toggled(bool) ), SLOT( toggleLeftPopup(bool) ) );
+ connect( leftPopup, TQT_SIGNAL( toggled(bool) ), TQT_SLOT( toggleLeftPopup(bool) ) );
leftPopup->setChecked(true);
- mRightButton = new QCheckBox( "Show right button", grid );
+ mRightButton = new TQCheckBox( "Show right button", grid );
gridlayout->addWidget( mRightButton, 1, 1 );
- connect( mRightButton, SIGNAL( toggled(bool) ), SLOT( toggleRightButton(bool) ) );
+ connect( mRightButton, TQT_SIGNAL( toggled(bool) ), TQT_SLOT( toggleRightButton(bool) ) );
mRightButton->setChecked(true);
- QCheckBox * rightPopup = new QCheckBox( "Enable right popup", grid );
+ TQCheckBox * rightPopup = new TQCheckBox( "Enable right popup", grid );
gridlayout->addWidget( rightPopup, 2, 1 );
- connect( rightPopup, SIGNAL( toggled(bool) ), SLOT( toggleRightPopup(bool) ) );
+ connect( rightPopup, TQT_SIGNAL( toggled(bool) ), TQT_SLOT( toggleRightPopup(bool) ) );
rightPopup->setChecked(true);
- mTabsBottom = new QCheckBox( "Show tabs at bottom", grid );
+ mTabsBottom = new TQCheckBox( "Show tabs at bottom", grid );
gridlayout->addWidget( mTabsBottom, 3, 0 );
- connect( mTabsBottom, SIGNAL( toggled(bool) ), SLOT( toggleTabPosition(bool) ) );
+ connect( mTabsBottom, TQT_SIGNAL( toggled(bool) ), TQT_SLOT( toggleTabPosition(bool) ) );
- QCheckBox * tabshape = new QCheckBox( "Triangular tab shape", grid );
+ TQCheckBox * tabshape = new TQCheckBox( "Triangular tab shape", grid );
gridlayout->addWidget( tabshape, 3, 1 );
- connect( tabshape, SIGNAL( toggled(bool) ), SLOT( toggleTabShape(bool) ) );
+ connect( tabshape, TQT_SIGNAL( toggled(bool) ), TQT_SLOT( toggleTabShape(bool) ) );
- QCheckBox *tabClose = new QCheckBox( "Close button on icon hover", grid );
+ TQCheckBox *tabClose = new TQCheckBox( "Close button on icon hover", grid );
gridlayout->addWidget( tabClose, 4, 0 );
- connect( tabClose, SIGNAL( toggled(bool) ), SLOT( toggleCloseButtons(bool) ) );
+ connect( tabClose, TQT_SIGNAL( toggled(bool) ), TQT_SLOT( toggleCloseButtons(bool) ) );
tabClose->setChecked(true);
- QCheckBox * showlabels = new QCheckBox( "Show labels", grid );
+ TQCheckBox * showlabels = new TQCheckBox( "Show labels", grid );
gridlayout->addWidget( showlabels, 4, 1 );
- connect( showlabels, SIGNAL( toggled(bool) ), this, SLOT( toggleLabels(bool) ) );
+ connect( showlabels, TQT_SIGNAL( toggled(bool) ), this, TQT_SLOT( toggleLabels(bool) ) );
}
-void Test::currentChanged(QWidget* w)
+void Test::currentChanged(TQWidget* w)
{
mWidget->setTabColor( w, Qt::black );
}
void Test::addTab()
{
- mWidget->addTab( new QWidget( mWidget ), SmallIcon( "konsole" ), QString("Tab %1").arg( mWidget->count()+1 ) );
+ mWidget->addTab( new TQWidget( mWidget ), SmallIcon( "konsole" ), TQString("Tab %1").arg( mWidget->count()+1 ) );
}
-void Test::testCanDecode(const QDragMoveEvent *e, bool &accept /* result */)
+void Test::testCanDecode(const TQDragMoveEvent *e, bool &accept /* result */)
{
- if ( QTextDrag::canDecode(e) ) // don't accept=false if it cannot be decoded!
+ if ( TQTextDrag::canDecode(e) ) // don't accept=false if it cannot be decoded!
accept = true;
}
-void Test::receivedDropEvent( QDropEvent *e )
+void Test::receivedDropEvent( TQDropEvent *e )
{
- QString dropText;
- if (QTextDrag::decode(e, dropText)) {
- mWidget->addTab( new QWidget( mWidget), dropText );
+ TQString dropText;
+ if (TQTextDrag::decode(e, dropText)) {
+ mWidget->addTab( new TQWidget( mWidget), dropText );
}
}
-void Test::receivedDropEvent( QWidget *w, QDropEvent *e )
+void Test::receivedDropEvent( TQWidget *w, TQDropEvent *e )
{
- QString dropText;
- if (QTextDrag::decode(e, dropText)) {
+ TQString dropText;
+ if (TQTextDrag::decode(e, dropText)) {
mWidget->changeTab( w, dropText );
}
}
-void Test::initiateDrag( QWidget *w )
+void Test::initiateDrag( TQWidget *w )
{
- QDragObject *d = new QTextDrag( mWidget->label( mWidget->indexOf( w ) ), this );
+ TQDragObject *d = new TQTextDrag( mWidget->label( mWidget->indexOf( w ) ), this );
d->dragCopy(); // do NOT delete d.
}
@@ -136,11 +136,11 @@ void Test::toggleLeftButton(bool state)
{
if (state) {
if (!mLeftWidget) {
- mLeftWidget = new QToolButton( mWidget );
- connect( mLeftWidget, SIGNAL( clicked() ), SLOT( addTab() ) );
+ mLeftWidget = new TQToolButton( mWidget );
+ connect( mLeftWidget, TQT_SIGNAL( clicked() ), TQT_SLOT( addTab() ) );
mLeftWidget->setIconSet( SmallIcon( "tab_new" ) );
mLeftWidget->setTextLabel("New");
- mLeftWidget->setTextPosition(QToolButton::Right);
+ mLeftWidget->setTextPosition(TQToolButton::Right);
mLeftWidget->adjustSize();
//mLeftWidget->setGeometry( 0, 0, h, h );
mLeftWidget->setPopup(mLeftPopup);
@@ -156,13 +156,13 @@ void Test::toggleLeftPopup(bool state)
{
if (state) {
if (!mLeftPopup) {
- mLeftPopup = new QPopupMenu(this);
+ mLeftPopup = new TQPopupMenu(this);
mLeftPopup->insertItem(SmallIcon( "tab_new" ), "Empty Tab", 0);
mLeftPopup->insertItem(SmallIcon( "tab_new" ), "Empty Tab After First", 3);
mLeftPopup->insertSeparator();
mLeftPopup->insertItem(SmallIcon( "tab_new" ), "Button Tab", 1);
mLeftPopup->insertItem(SmallIcon( "tab_new" ), "Label Tab", 2);
- connect(mLeftPopup, SIGNAL(activated(int)), SLOT(leftPopupActivated(int)));
+ connect(mLeftPopup, TQT_SIGNAL(activated(int)), TQT_SLOT(leftPopupActivated(int)));
}
mLeftWidget->setPopup(mLeftPopup);
}
@@ -173,13 +173,13 @@ void Test::toggleLeftPopup(bool state)
void Test::leftPopupActivated(int item)
{
switch (item) {
- case 0: mWidget->addTab( new QWidget( mWidget), QString("Tab %1").arg( mWidget->count()+1 ) );
+ case 0: mWidget->addTab( new TQWidget( mWidget), TQString("Tab %1").arg( mWidget->count()+1 ) );
break;
- case 1: mWidget->addTab( new QPushButton( "Testbutton", mWidget ), QString("Tab %1").arg( mWidget->count()+1 ) );
+ case 1: mWidget->addTab( new TQPushButton( "Testbutton", mWidget ), TQString("Tab %1").arg( mWidget->count()+1 ) );
break;
- case 2: mWidget->addTab( new QLabel( "Testlabel", mWidget ), QString("Tab %1").arg( mWidget->count()+1 ) );
+ case 2: mWidget->addTab( new TQLabel( "Testlabel", mWidget ), TQString("Tab %1").arg( mWidget->count()+1 ) );
break;
- case 3: mWidget->insertTab( new QWidget( mWidget), QString("Tab %1").arg( mWidget->count()+1 ), 1 );
+ case 3: mWidget->insertTab( new TQWidget( mWidget), TQString("Tab %1").arg( mWidget->count()+1 ), 1 );
}
}
@@ -187,11 +187,11 @@ void Test::toggleRightButton(bool state)
{
if (state) {
if ( !mRightWidget) {
- mRightWidget = new QToolButton( mWidget );
- QObject::connect( mRightWidget, SIGNAL( clicked() ), SLOT( removeCurrentTab() ) );
+ mRightWidget = new TQToolButton( mWidget );
+ TQObject::connect( mRightWidget, TQT_SIGNAL( clicked() ), TQT_SLOT( removeCurrentTab() ) );
mRightWidget->setIconSet( SmallIcon( "tab_remove" ) );
mRightWidget->setTextLabel("Close");
- mRightWidget->setTextPosition(QToolButton::Right);
+ mRightWidget->setTextPosition(TQToolButton::Right);
mRightWidget->adjustSize();
//mRightButton->setGeometry( 0, 0, h, h );
mRightWidget->setPopup(mRightPopup);
@@ -207,12 +207,12 @@ void Test::toggleRightPopup(bool state)
{
if (state) {
if (!mRightPopup) {
- mRightPopup = new QPopupMenu(this);
+ mRightPopup = new TQPopupMenu(this);
mRightPopup->insertItem(SmallIcon( "tab_remove" ), "Current Tab", 1);
mRightPopup->insertSeparator();
mRightPopup->insertItem(SmallIcon( "tab_remove" ), "Most Left Tab", 0);
mRightPopup->insertItem(SmallIcon( "tab_remove" ), "Most Right Tab", 2);
- connect(mRightPopup, SIGNAL(activated(int)), SLOT(rightPopupActivated(int)));
+ connect(mRightPopup, TQT_SIGNAL(activated(int)), TQT_SLOT(rightPopupActivated(int)));
}
mRightWidget->setPopup(mRightPopup);
}
@@ -238,12 +238,12 @@ void Test::rightPopupActivated(int item)
void Test::toggleTabPosition(bool state)
{
- mWidget->setTabPosition(state ? QTabWidget::Bottom : QTabWidget::Top);
+ mWidget->setTabPosition(state ? TQTabWidget::Bottom : TQTabWidget::Top);
}
void Test::toggleTabShape(bool state)
{
- mWidget->setTabShape(state ? QTabWidget::Triangular : QTabWidget::Rounded);
+ mWidget->setTabShape(state ? TQTabWidget::Triangular : TQTabWidget::Rounded);
}
void Test::toggleCloseButtons(bool state)
@@ -251,12 +251,12 @@ void Test::toggleCloseButtons(bool state)
mWidget->setHoverCloseButton( state );
}
-void Test::contextMenu(QWidget *w, const QPoint &p)
+void Test::contextMenu(TQWidget *w, const TQPoint &p)
{
if (mContextPopup)
delete mContextPopup;
- mContextPopup = new QPopupMenu(this);
+ mContextPopup = new TQPopupMenu(this);
mContextPopup->insertItem( "Activate Tab", 4);
mContextPopup->insertSeparator();
mContextPopup->insertItem(SmallIcon( "konsole" ), "Set This Icon", 0);
@@ -264,7 +264,7 @@ void Test::contextMenu(QWidget *w, const QPoint &p)
mContextPopup->insertSeparator();
mContextPopup->insertItem( mWidget->isTabEnabled(w) ? "Disable Tab" : "Enable Tab", 2);
mContextPopup->insertItem( mWidget->tabToolTip(w).isEmpty() ? "Set Tooltip" : "Remove Tooltip", 3);
- connect(mContextPopup, SIGNAL(activated(int)), SLOT(contextMenuActivated(int)));
+ connect(mContextPopup, TQT_SIGNAL(activated(int)), TQT_SLOT(contextMenuActivated(int)));
mContextWidget = w;
mContextPopup->popup(p);
@@ -290,17 +290,17 @@ void Test::contextMenuActivated(int item)
mContextPopup = 0;
}
-void Test::tabbarContextMenu(const QPoint &p)
+void Test::tabbarContextMenu(const TQPoint &p)
{
if (mTabbarContextPopup)
delete mTabbarContextPopup;
- mTabbarContextPopup = new QPopupMenu(this);
+ mTabbarContextPopup = new TQPopupMenu(this);
mTabbarContextPopup->insertItem(SmallIcon( "tab_new" ), mLeftWidget->isVisible() ? "Hide \"Add\" Button" : "Show \"Add\" Button", 0);
mTabbarContextPopup->insertItem(SmallIcon( "tab_remove" ), mRightWidget->isVisible() ? "Hide \"Remove\" Button" : "Show \"Remove\" Button", 1);
mTabbarContextPopup->insertSeparator();
- mTabbarContextPopup->insertItem(mWidget->tabPosition()==QTabWidget::Top ? "Put Tabbar to Bottom" : "Put Tabbar to Top", 2);
- connect(mTabbarContextPopup, SIGNAL(activated(int)), SLOT(tabbarContextMenuActivated(int)));
+ mTabbarContextPopup->insertItem(mWidget->tabPosition()==TQTabWidget::Top ? "Put Tabbar to Bottom" : "Put Tabbar to Top", 2);
+ connect(mTabbarContextPopup, TQT_SIGNAL(activated(int)), TQT_SLOT(tabbarContextMenuActivated(int)));
mTabbarContextPopup->popup(p);
}
@@ -318,10 +318,10 @@ void Test::tabbarContextMenuActivated(int item)
mTabbarContextPopup = 0;
}
-void Test::mouseDoubleClick(QWidget *w)
+void Test::mouseDoubleClick(TQWidget *w)
{
bool ok;
- QString text = KInputDialog::getText(
+ TQString text = KInputDialog::getText(
"Rename Tab", "Enter new name:",
mWidget->label( mWidget->indexOf( w ) ), &ok, this );
if ( ok && !text.isEmpty() ) {
@@ -330,7 +330,7 @@ void Test::mouseDoubleClick(QWidget *w)
}
}
-void Test::mouseMiddleClick(QWidget *w)
+void Test::mouseMiddleClick(TQWidget *w)
{
if ( mWidget->count()==1 ) return;
diff --git a/kdeui/tests/ktabwidgettest.h b/kdeui/tests/ktabwidgettest.h
index cc96a24c6..2bd056cf8 100644
--- a/kdeui/tests/ktabwidgettest.h
+++ b/kdeui/tests/ktabwidgettest.h
@@ -2,22 +2,22 @@
#define KTABWIDGETTEST_H
#include <kiconloader.h>
-#include <qwidget.h>
+#include <tqwidget.h>
#include <ktabwidget.h>
-#include <qlabel.h>
-#include <qpushbutton.h>
-#include <qpopupmenu.h>
+#include <tqlabel.h>
+#include <tqpushbutton.h>
+#include <tqpopupmenu.h>
#include <stdlib.h>
-#include <qvbox.h>
+#include <tqvbox.h>
#include <time.h>
-#include <qcheckbox.h>
-#include <qtoolbutton.h>
+#include <tqcheckbox.h>
+#include <tqtoolbutton.h>
class Test : public QVBox
{
Q_OBJECT
public:
- Test( QWidget* parent=0, const char *name =0 );
+ Test( TQWidget* parent=0, const char *name =0 );
private slots:
void addTab();
@@ -31,15 +31,15 @@ private slots:
void toggleCloseButtons(bool);
void toggleLabels(bool);
- void currentChanged(QWidget*);
- void contextMenu(QWidget*, const QPoint&);
- void tabbarContextMenu(const QPoint&);
- void testCanDecode(const QDragMoveEvent *, bool & /* result */);
- void receivedDropEvent( QDropEvent* );
- void initiateDrag( QWidget * );
- void receivedDropEvent( QWidget *, QDropEvent * );
- void mouseDoubleClick(QWidget*);
- void mouseMiddleClick(QWidget*);
+ void currentChanged(TQWidget*);
+ void contextMenu(TQWidget*, const TQPoint&);
+ void tabbarContextMenu(const TQPoint&);
+ void testCanDecode(const TQDragMoveEvent *, bool & /* result */);
+ void receivedDropEvent( TQDropEvent* );
+ void initiateDrag( TQWidget * );
+ void receivedDropEvent( TQWidget *, TQDropEvent * );
+ void mouseDoubleClick(TQWidget*);
+ void mouseMiddleClick(TQWidget*);
void movedTab( int, int );
void leftPopupActivated(int);
@@ -51,18 +51,18 @@ private:
KTabWidget* mWidget;
int mChange;
- QCheckBox * mLeftButton;
- QCheckBox * mRightButton;
- QCheckBox * mTabsBottom;
+ TQCheckBox * mLeftButton;
+ TQCheckBox * mRightButton;
+ TQCheckBox * mTabsBottom;
- QToolButton* mLeftWidget;
- QToolButton* mRightWidget;
+ TQToolButton* mLeftWidget;
+ TQToolButton* mRightWidget;
- QPopupMenu* mLeftPopup;
- QPopupMenu* mRightPopup;
- QPopupMenu* mTabbarContextPopup;
- QPopupMenu* mContextPopup;
- QWidget* mContextWidget;
+ TQPopupMenu* mLeftPopup;
+ TQPopupMenu* mRightPopup;
+ TQPopupMenu* mTabbarContextPopup;
+ TQPopupMenu* mContextPopup;
+ TQWidget* mContextWidget;
};
diff --git a/kdeui/tests/ktextedittest.cpp b/kdeui/tests/ktextedittest.cpp
index d37afab30..d43f77260 100644
--- a/kdeui/tests/ktextedittest.cpp
+++ b/kdeui/tests/ktextedittest.cpp
@@ -20,7 +20,7 @@
#include <kapplication.h>
#include <ktextedit.h>
-#include <qfile.h>
+#include <tqfile.h>
int main( int argc, char **argv )
{
@@ -29,7 +29,7 @@ int main( int argc, char **argv )
edit->setReadOnly( true );
edit->setCheckSpellingEnabled( true );
- QFile file( "ktextedittest.cpp" );
+ TQFile file( "ktextedittest.cpp" );
if ( file.open( IO_ReadOnly ) )
{
edit->setText( file.readAll() );
diff --git a/kdeui/tests/ktoolbarlabelactiontest.cpp b/kdeui/tests/ktoolbarlabelactiontest.cpp
index 8ff2ccb74..020834605 100644
--- a/kdeui/tests/ktoolbarlabelactiontest.cpp
+++ b/kdeui/tests/ktoolbarlabelactiontest.cpp
@@ -16,7 +16,7 @@
Boston, MA 02110-1301, USA.
*/
-#include <qguardedptr.h>
+#include <tqguardedptr.h>
#include <kapplication.h>
#include <kmainwindow.h>
@@ -26,7 +26,7 @@
#include <ktoolbarlabelaction.h>
#include <ksqueezedtextlabel.h>
#include <kdebug.h>
-#include <qvbox.h>
+#include <tqvbox.h>
#include <assert.h>
@@ -35,7 +35,7 @@ class MainWindow : public KMainWindow
public:
MainWindow()
{
- QVBox* main = new QVBox(this);
+ TQVBox* main = new TQVBox(this);
setCentralWidget(main);
KSqueezedTextLabel* accel = new KSqueezedTextLabel
@@ -65,7 +65,7 @@ public:
accel->setBuddy(lineEdit);
// third constructor
- QLabel* customLabel = new KSqueezedTextLabel
+ TQLabel* customLabel = new KSqueezedTextLabel
("&Really long, long, long and boring text goes here", this,
"kde toolbar widget");
diff --git a/kdeui/tests/kunbalancedgrdtest.cpp b/kdeui/tests/kunbalancedgrdtest.cpp
index ec3ce967b..7f5b2cc78 100644
--- a/kdeui/tests/kunbalancedgrdtest.cpp
+++ b/kdeui/tests/kunbalancedgrdtest.cpp
@@ -1,31 +1,31 @@
#include "kunbalancedgrdtest.h"
#include <kapplication.h>
#include <kpixmapeffect.h>
-#include <qpainter.h>
-#include <qstring.h>
-#include <qlayout.h>
+#include <tqpainter.h>
+#include <tqstring.h>
+#include <tqlayout.h>
int cols = 3, rows = 3; // how many
-KGradientWidget::KGradientWidget(QWidget *parent, const char *name)
- :QWidget(parent, name)
+KGradientWidget::KGradientWidget(TQWidget *parent, const char *name)
+ :TQWidget(parent, name)
{
time.start();
setMinimumSize(250 * cols, 250 * rows);
}
-void KGradientWidget::paintEvent(QPaintEvent *)
+void KGradientWidget::paintEvent(TQPaintEvent *)
{
int it, ft;
- QString say;
+ TQString say;
- QColor ca = Qt::black, cb = Qt::cyan;
+ TQColor ca = Qt::black, cb = Qt::cyan;
int x = 0, y = 0;
pix.resize(width()/cols, height()/rows);
- QPainter p(this);
+ TQPainter p(this);
p.setPen(Qt::white);
// draw once, so that the benchmarking be fair :-)
@@ -121,25 +121,25 @@ void KGradientWidget::paintEvent(QPaintEvent *)
p.drawText(5+(x++)*width()/rows, 15+y*height()/rows, say);
}
-myTopWidget::myTopWidget (QWidget *parent, const char *name)
- :QWidget(parent, name)
+myTopWidget::myTopWidget (TQWidget *parent, const char *name)
+ :TQWidget(parent, name)
{
- QGridLayout *lay = new QGridLayout (this, 2, 3, 0);
+ TQGridLayout *lay = new TQGridLayout (this, 2, 3, 0);
grds = new KGradientWidget(this);
lay->addMultiCellWidget(grds, 0, 0 ,0, 2);
- bLabel = new QLabel("Balance: X = 000; Y = 000", this);
+ bLabel = new TQLabel("Balance: X = 000; Y = 000", this);
lay->addWidget(bLabel, 1, 0);
- xSlider = new QSlider ( -200, 200, 1, 100, QSlider::Horizontal, this);
+ xSlider = new TQSlider ( -200, 200, 1, 100, TQSlider::Horizontal, this);
lay->addWidget(xSlider, 1, 1);
- ySlider = new QSlider ( -200, 200, 1, 100, QSlider::Horizontal, this);
+ ySlider = new TQSlider ( -200, 200, 1, 100, TQSlider::Horizontal, this);
lay->addWidget(ySlider, 1, 2);
- connect(xSlider, SIGNAL(valueChanged(int)), this, SLOT(rebalance()));
- connect(ySlider, SIGNAL(valueChanged(int)), this, SLOT(rebalance()));
+ connect(xSlider, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(rebalance()));
+ connect(ySlider, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(rebalance()));
rebalance();
@@ -151,7 +151,7 @@ void myTopWidget::rebalance()
{
otime = time.elapsed();
- QString val; val.sprintf("Balance: X = %3d; Y = %3d",
+ TQString val; val.sprintf("Balance: X = %3d; Y = %3d",
xSlider->value(), ySlider->value());
bLabel->setText(val);
diff --git a/kdeui/tests/kunbalancedgrdtest.h b/kdeui/tests/kunbalancedgrdtest.h
index 6af7e4e92..bc282b1ce 100644
--- a/kdeui/tests/kunbalancedgrdtest.h
+++ b/kdeui/tests/kunbalancedgrdtest.h
@@ -7,24 +7,24 @@
#ifndef __KGRADIENT_TEST_H
#define __KGRADIENT_TEST_H
-#include <qwidget.h>
+#include <tqwidget.h>
#include <kpixmap.h>
-#include <qslider.h>
-#include <qlabel.h>
-#include <qdatetime.h>
+#include <tqslider.h>
+#include <tqlabel.h>
+#include <tqdatetime.h>
class KGradientWidget : public QWidget
{
public:
- KGradientWidget(QWidget *parent=0, const char *name=0);
+ KGradientWidget(TQWidget *parent=0, const char *name=0);
void setBalance(int a, int b) { xbalance = a; ybalance = b; }
protected:
- void paintEvent(QPaintEvent *ev);
+ void paintEvent(TQPaintEvent *ev);
private:
KPixmap pix;
int xbalance, ybalance;
- QTime time;
+ TQTime time;
};
@@ -32,14 +32,14 @@ class myTopWidget: public QWidget
{
Q_OBJECT
public:
- myTopWidget(QWidget *parent=0, const char *name=0);
+ myTopWidget(TQWidget *parent=0, const char *name=0);
private:
- QLabel *bLabel;
- QSlider *xSlider, *ySlider;
+ TQLabel *bLabel;
+ TQSlider *xSlider, *ySlider;
KGradientWidget *grds;
- QTime time;
+ TQTime time;
int itime, otime;
diff --git a/kdeui/tests/kwindowtest.cpp b/kdeui/tests/kwindowtest.cpp
index ae19dd7e3..288ab554f 100644
--- a/kdeui/tests/kwindowtest.cpp
+++ b/kdeui/tests/kwindowtest.cpp
@@ -1,10 +1,10 @@
-#include <qmessagebox.h>
-#include <qpopupmenu.h>
-#include <qpixmap.h>
-#include <qkeycode.h>
-#include <qwidget.h>
-#include <qstring.h>
-#include <qcursor.h>
+#include <tqmessagebox.h>
+#include <tqpopupmenu.h>
+#include <tqpixmap.h>
+#include <tqkeycode.h>
+#include <tqwidget.h>
+#include <tqstring.h>
+#include <tqcursor.h>
#include <stdlib.h>
@@ -17,7 +17,7 @@
#include <ktoolbarradiogroup.h>
#include <kiconloader.h>
#include <kpopupmenu.h>
-#include <qmultilineedit.h>
+#include <tqmultilineedit.h>
#include "kwindowtest.h"
#include <kglobal.h>
@@ -37,7 +37,7 @@
static int itemId = 0;
-testWindow::testWindow (QWidget *parent, const char *name)
+testWindow::testWindow (TQWidget *parent, const char *name)
: KMainWindow (parent,name)
{
ena=false;
@@ -56,13 +56,13 @@ setAutoSaveSettings();
// We insert item "Exit" with accelerator ALT-Q, and connect
// it to application's exit-slot.
fileMenu->insertItem ("&Exit", KApplication::kApplication(),
- SLOT( quit() ), ALT + Key_Q );
+ TQT_SLOT( quit() ), ALT + Key_Q );
// Another popup...
toolBarMenu = new QPopupMenu;
menuBar->insertItem ("&Toolbars", toolBarMenu);
- toolBarMenu->insertItem ("(Un)Hide tollbar 1", this, SLOT(slotHide1()));
- toolBarMenu->insertItem ("(Un)Hide tollbar 2", this, SLOT(slotHide2()));
+ toolBarMenu->insertItem ("(Un)Hide tollbar 1", this, TQT_SLOT(slotHide1()));
+ toolBarMenu->insertItem ("(Un)Hide tollbar 2", this, TQT_SLOT(slotHide2()));
itemsMenu = new QPopupMenu;
menuBar->insertItem ("&Items", itemsMenu);
@@ -71,15 +71,15 @@ setAutoSaveSettings();
lineL = true; // Lined is enabled
greenF = false; // Frame not inserted
- itemsMenu->insertItem ("delete/insert exit button", this, SLOT(slotExit()));
- itemsMenu->insertItem ("insert/delete green frame!", this, SLOT(slotFrame()));
- itemsMenu->insertItem ("enable/disable Lined", this, SLOT(slotLined()));
- itemsMenu->insertItem ("Toggle fileNew", this, SLOT(slotNew()));
- itemsMenu->insertItem ("Clear comboBox", this, SLOT(slotClearCombo()));
- itemsMenu->insertItem ("Insert List in Combo", this, SLOT(slotInsertListInCombo()));
- itemsMenu->insertItem ("Make item 3 curent", this, SLOT(slotMakeItem3Current()));
- //itemsMenu->insertItem ("Insert clock!", this, SLOT(slotInsertClock()));
- itemsMenu->insertItem ("Important!", this, SLOT(slotImportant()));
+ itemsMenu->insertItem ("delete/insert exit button", this, TQT_SLOT(slotExit()));
+ itemsMenu->insertItem ("insert/delete green frame!", this, TQT_SLOT(slotFrame()));
+ itemsMenu->insertItem ("enable/disable Lined", this, TQT_SLOT(slotLined()));
+ itemsMenu->insertItem ("Toggle fileNew", this, TQT_SLOT(slotNew()));
+ itemsMenu->insertItem ("Clear comboBox", this, TQT_SLOT(slotClearCombo()));
+ itemsMenu->insertItem ("Insert List in Combo", this, TQT_SLOT(slotInsertListInCombo()));
+ itemsMenu->insertItem ("Make item 3 curent", this, TQT_SLOT(slotMakeItem3Current()));
+ //itemsMenu->insertItem ("Insert clock!", this, TQT_SLOT(slotInsertClock()));
+ itemsMenu->insertItem ("Important!", this, TQT_SLOT(slotImportant()));
menuBar->insertSeparator();
helpMenu = new KHelpMenu(this, "KWindowTest was programmed by Sven Radej");
@@ -93,7 +93,7 @@ setAutoSaveSettings();
statusBar->insertItem("Look for tooltips to see functions", 1);
//DigitalClock *clk = new DigitalClock (statusBar);
- //clk->setFrameStyle(QFrame::NoFrame);
+ //clk->setFrameStyle(TQFrame::NoFrame);
//statusBar->insertWidget(clk, 70, 2);
/***********************/
@@ -101,7 +101,7 @@ setAutoSaveSettings();
/***********************/
// pixmap which we will use
- QPixmap pix;
+ TQPixmap pix;
// Create toolbar...
tb = toolBar();
@@ -113,30 +113,30 @@ setAutoSaveSettings();
// First four buttons
pix = BarIcon("filenew");
- itemId = tb->insertButton(pix, 0, SIGNAL(clicked()), this, SLOT(slotNew()),
+ itemId = tb->insertButton(pix, 0, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotNew()),
true, "Create.. (toggles upper button)", 50);
pix = BarIcon("fileopen");
- tb->insertButton(pix, 1, SIGNAL(clicked()), this, SLOT(slotOpen()),
+ tb->insertButton(pix, 1, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotOpen()),
false, "Open");
pix = BarIcon("filefloppy");
- tb->insertButton(pix, 2, SIGNAL(clicked()), this, SLOT(slotSave()),
+ tb->insertButton(pix, 2, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotSave()),
true, "Save (beep or delayed popup)");
tb->setDelayedPopup(2, itemsMenu);
pix = BarIcon("fileprint");
- tb->insertButton(pix, 3, SIGNAL(clicked()), this, SLOT(slotPrint()),
+ tb->insertButton(pix, 3, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotPrint()),
true, "Print (enables/disables open)");
// And a combobox
// arguments: text (or strList), ID, writable, signal, object, slot, enabled,
// tooltiptext, size
- tb->insertCombo (QString("one"), 4, true, SIGNAL(activated(const QString&)), this,
- SLOT(slotList(const QString&)), true, "ComboBox", 150);
+ tb->insertCombo (TQString("one"), 4, true, TQT_SIGNAL(activated(const TQString&)), this,
+ TQT_SLOT(slotList(const TQString&)), true, "ComboBox", 150);
// Then one line editor
// arguments: text, id, signal, object (this), slot, enabled, tooltiptext, size
- tb->insertLined ("ftp://ftp.kde.org/pub/kde", 5, SIGNAL(returnPressed()), this,
- SLOT(slotReturn()), true, "Location", 200);
+ tb->insertLined ("ftp://ftp.kde.org/pub/kde", 5, TQT_SIGNAL(returnPressed()), this,
+ TQT_SLOT(slotReturn()), true, "Location", 200);
// Set this Lined to auto size itself. Note that only one item (Lined or Combo)
// Can be set to autosize; If you specify more of them only last (according to
@@ -148,27 +148,27 @@ setAutoSaveSettings();
// Now add another button and align it right
pix = BarIcon("exit");
- tb->insertButton(pix, 6, SIGNAL(clicked()), KApplication::kApplication(),
- SLOT( quit() ), true, "Exit");
+ tb->insertButton(pix, 6, TQT_SIGNAL(clicked()), KApplication::kApplication(),
+ TQT_SLOT( quit() ), true, "Exit");
tb->alignItemRight (6);
// Another toolbar
- tb1 = new KToolBar(this, QMainWindow::DockTop); // this one is normal and has separators
+ tb1 = new KToolBar(this, TQMainWindow::DockTop); // this one is normal and has separators
pix = BarIcon("filenew");
tb1->insertButton(pix, 0, true, "Create new file2 (Toggle)");
tb1->setToggle(0);
- tb1->addConnection (0, SIGNAL(toggled(bool)), this, SLOT(slotToggle(bool)));
+ tb1->addConnection (0, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotToggle(bool)));
pix = BarIcon("fileopen");
- tb1->insertButton(pix, 1, SIGNAL(clicked()), this, SLOT(slotOpen()),
+ tb1->insertButton(pix, 1, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotOpen()),
true, "Open (starts progres in sb)");
tb1->insertSeparator ();
pix = BarIcon("filefloppy");
- tb1->insertButton(pix, 2, SIGNAL(clicked()), this, SLOT(slotSave()),
+ tb1->insertButton(pix, 2, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotSave()),
true, "Save file2 (autorepeat)");
tb1->setAutoRepeat(2);
@@ -201,14 +201,14 @@ setAutoSaveSettings();
rg->addButton(6);
rg->addButton(7);
- connect (tb1, SIGNAL(toggled(int)), this, SLOT(slotToggled(int)));
+ connect (tb1, TQT_SIGNAL(toggled(int)), this, TQT_SLOT(slotToggled(int)));
// Set caption for floating toolbars
tb->setTitle ("Toolbar 1");
tb1->setTitle ("Toolbar 2");
// Set main widget. In this example it is Qt's multiline editor.
- widget = new QMultiLineEdit (this);
+ widget = new TQMultiLineEdit (this);
// Setup is now complete
@@ -216,8 +216,8 @@ setAutoSaveSettings();
//addToolBar (tb1);
//addToolBar (tb);
- connect (tb, SIGNAL(highlighted(int,bool)), this, SLOT(slotMessage(int, bool)));
- connect (tb1, SIGNAL(highlighted(int, bool)), this, SLOT(slotMessage(int, bool)));
+ connect (tb, TQT_SIGNAL(highlighted(int,bool)), this, TQT_SLOT(slotMessage(int, bool)));
+ connect (tb1, TQT_SIGNAL(highlighted(int, bool)), this, TQT_SLOT(slotMessage(int, bool)));
// Floating is enabled by default, so you don't need this.
// tb->enableFloating(true);
@@ -243,7 +243,7 @@ setAutoSaveSettings();
completions->insertItem("/home/");
completions->insertItem("/vmlinuz :-)");
- connect (completions, SIGNAL(activated(int)), this, SLOT(slotCompletionsMenu(int)));
+ connect (completions, TQT_SIGNAL(activated(int)), this, TQT_SLOT(slotCompletionsMenu(int)));
pr = 0;
}
/***********************************/
@@ -257,7 +257,7 @@ void testWindow::slotToggled(int)
void testWindow::slotInsertClock()
{
//DigitalClock *clock = new DigitalClock(tb1);
- //clock->setFrameStyle(QFrame::NoFrame);
+ //clock->setFrameStyle(TQFrame::NoFrame);
//tb1->insertWidget(8, 70, clock);
}
@@ -269,11 +269,11 @@ void testWindow::slotNew()
void testWindow::slotOpen()
{
if (pr == 0)
- pr = new QProgressBar (statusBar);
+ pr = new TQProgressBar (statusBar);
// statusBar->message(pr);
- timer = new QTimer (pr);
+ timer = new TQTimer (pr);
- connect (timer, SIGNAL(timeout()), this, SLOT(slotGoGoGoo()));
+ connect (timer, TQT_SIGNAL(timeout()), this, TQT_SLOT(slotGoGoGoo()));
timer->start(100);
}
@@ -303,14 +303,14 @@ void testWindow::slotPrint()
}
void testWindow::slotReturn()
{
- QString s = "You entered ";
+ TQString s = "You entered ";
s = s + tb->getLinedText(5);
statusBar->changeItem(s, 0);
}
-void testWindow::slotList(const QString &str)
+void testWindow::slotList(const TQString &str)
{
- QString s = "You chose ";
+ TQString s = "You chose ";
s = s + str;
statusBar->changeItem(s, 0);
}
@@ -319,13 +319,13 @@ void testWindow::slotCompletion()
{
// Now do a completion
// Call your completing function and set that text in klined
- // QString s = tb->getLinedText(/* ID */ 4)
- // QString completed = complete (s);
+ // TQString s = tb->getLinedText(/* ID */ 4)
+ // TQString completed = complete (s);
// tb->setLinedText(/* ID */ 4, completed.data())
// for now this:
- completions->popup(QCursor::pos()); // This popup should understunf keys up and down
+ completions->popup(TQCursor::pos()); // This popup should understunf keys up and down
/* This is just an example. KLined automatically sets cursor at end of string
when ctrl-d or ctrl-s is pressed. KToolBar will also put cursor at end of text in Lined
@@ -340,7 +340,7 @@ void testWindow::slotListCompletion()
Combo is not behaving good and it is ugly. I will see how it behaves in Qt-1.3,
and then decide should I make a new combobox.
*/
- QString s(tb->getComboItem(4)); // get text in combo
+ TQString s(tb->getComboItem(4)); // get text in combo
s+= "(completing)";
//tb->getCombo(4)->changeItem(s.data()); // setTextIncombo
@@ -349,7 +349,7 @@ void testWindow::slotListCompletion()
void testWindow::slotCompletionsMenu(int id)
{
// Now set text in lined
- QString s =completions->text(id);
+ TQString s =completions->text(id);
tb->setLinedText(5, s); // Cursor is automatically at the end of string after this
}
@@ -406,10 +406,10 @@ void testWindow::slotExit ()
}
else
{
- QPixmap pix;
+ TQPixmap pix;
pix = BarIcon("exit");
- tb->insertButton(pix, 6, SIGNAL(clicked()), KApplication::kApplication(),
- SLOT( quit() ), true, "Exit");
+ tb->insertButton(pix, 6, TQT_SIGNAL(clicked()), KApplication::kApplication(),
+ TQT_SLOT( quit() ), true, "Exit");
tb->alignItemRight (6);
exitB = true;
}
@@ -437,7 +437,7 @@ void testWindow::slotFrame()
tb1->insertFrame(10, 100);
tb1->alignItemRight (10); // this is pointless 'cause tb1 is not fullwidth
- QFrame *myFrame = tb1->getFrame(10); // get frame pointer
+ TQFrame *myFrame = tb1->getFrame(10); // get frame pointer
if (myFrame == 0)
{
@@ -450,7 +450,7 @@ void testWindow::slotFrame()
// And don't move it
// If you want to have something right from your toolbar you can reduce its
// max_width with setMaxWidth()
- myFrame->setBackgroundColor (QColor("green"));
+ myFrame->setBackgroundColor (TQColor("green"));
greenF = true;
}
@@ -478,7 +478,7 @@ void testWindow::slotClearCombo()
void testWindow::slotInsertListInCombo()
{
- QStringList list;
+ TQStringList list;
list.append("ListOne");
list.append("ListTwo");
list.append("ListThree");
@@ -509,7 +509,7 @@ int main( int argc, char *argv[] )
myApp->setMainWidget(test);
- i = QMessageBox::information(0, "Select", "Select type of mainwidget",
+ i = TQMessageBox::information(0, "Select", "Select type of mainwidget",
"Fixed", "Y-fixed", "Resizable");
if (i == 0)
test->beFixed();
diff --git a/kdeui/tests/kwindowtest.h b/kdeui/tests/kwindowtest.h
index c041d7723..4441b6caa 100644
--- a/kdeui/tests/kwindowtest.h
+++ b/kdeui/tests/kwindowtest.h
@@ -1,9 +1,9 @@
#ifndef testwindow_h
#define testwindow_h
-#include <qpopupmenu.h>
-#include <qtimer.h>
-#include <qprogressbar.h>
+#include <tqpopupmenu.h>
+#include <tqtimer.h>
+#include <tqprogressbar.h>
#include <kmenubar.h>
#include <kstatusbar.h>
#include <ktoolbar.h>
@@ -18,7 +18,7 @@ class testWindow : public KMainWindow
Q_OBJECT
public:
- testWindow (QWidget *parent=0, const char *name=0);
+ testWindow (TQWidget *parent=0, const char *name=0);
~testWindow ();
public slots:
@@ -29,7 +29,7 @@ public slots:
void slotPrint();
void slotReturn();
void slotSave();
- void slotList(const QString &str);
+ void slotList(const TQString &str);
void slotOpen();
void slotCompletion();
void slotCompletionsMenu(int id);
@@ -50,10 +50,10 @@ public slots:
void slotToggled(int);
protected:
KMenuBar *menuBar;
- QPopupMenu *fileMenu;
- QPopupMenu *itemsMenu;
- QPopupMenu *completions;
- QPopupMenu *toolBarMenu;
+ TQPopupMenu *fileMenu;
+ TQPopupMenu *itemsMenu;
+ TQPopupMenu *completions;
+ TQPopupMenu *toolBarMenu;
KStatusBar *statusBar;
KHelpMenu *helpMenu;
KToolBar *tb;
@@ -62,9 +62,9 @@ protected:
bool exitB;
bool greenF;
bool ena;
- QMultiLineEdit *widget;
- QTimer *timer;
- QProgressBar *pr;
+ TQMultiLineEdit *widget;
+ TQTimer *timer;
+ TQProgressBar *pr;
KToolBarRadioGroup *rg;
};
#endif
diff --git a/kdeui/tests/kwizardtest.cpp b/kdeui/tests/kwizardtest.cpp
index 2d5f7e288..960929f8c 100644
--- a/kdeui/tests/kwizardtest.cpp
+++ b/kdeui/tests/kwizardtest.cpp
@@ -18,8 +18,8 @@
*
*/
-#include <qlabel.h>
-#include <qlayout.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
#include <kapplication.h>
#include <kwizard.h>
@@ -27,20 +27,20 @@ int main(int argc, char **argv)
{
KApplication a(argc,argv,"kwizardtest");
KWizard *wiz = new KWizard(0, "kwizardtest", false);
- QObject::connect((QObject*) wiz->cancelButton(), SIGNAL(clicked()),
- &a, SLOT(quit()));
- QObject::connect((QObject*) wiz->finishButton(), SIGNAL(clicked()),
- &a, SLOT(quit()));
+ TQObject::connect((TQObject*) wiz->cancelButton(), TQT_SIGNAL(clicked()),
+ &a, TQT_SLOT(quit()));
+ TQObject::connect((TQObject*) wiz->finishButton(), TQT_SIGNAL(clicked()),
+ &a, TQT_SLOT(quit()));
for(int i = 1; i < 11; i++)
{
- QWidget *p = new QWidget;
- QString msg = QString("This is page %1 out of 10").arg(i);
- QLabel *label = new QLabel(msg, p);
- QHBoxLayout *layout = new QHBoxLayout(p, 5);
+ TQWidget *p = new QWidget;
+ TQString msg = TQString("This is page %1 out of 10").arg(i);
+ TQLabel *label = new TQLabel(msg, p);
+ TQHBoxLayout *layout = new TQHBoxLayout(p, 5);
label->setAlignment(Qt::AlignCenter);
label->setFixedSize(300, 200);
layout->addWidget(label);
- QString title = QString("%1. page").arg(i);
+ TQString title = TQString("%1. page").arg(i);
wiz->addPage(p, title);
wiz->setFinishEnabled(p, (i==10));
}
diff --git a/kdeui/tests/kwordwraptest.cpp b/kdeui/tests/kwordwraptest.cpp
index 60a35b394..ad60bd897 100644
--- a/kdeui/tests/kwordwraptest.cpp
+++ b/kdeui/tests/kwordwraptest.cpp
@@ -18,17 +18,17 @@
#include <kapplication.h>
#include <kdebug.h>
-#include <qwidget.h>
+#include <tqwidget.h>
#include "kwordwrap.h"
int main(int argc, char *argv[])
{
KApplication app(argc, argv, "KWordWrapTest");
- QFont font( "helvetica", 12 ); // let's hope we all have the same...
- QFontMetrics fm( font );
- QRect r( 0, 0, 100, -1 );
- QString str = "test wadabada [/foo/bar/waba]";
+ TQFont font( "helvetica", 12 ); // let's hope we all have the same...
+ TQFontMetrics fm( font );
+ TQRect r( 0, 0, 100, -1 );
+ TQString str = "test wadabada [/foo/bar/waba]";
KWordWrap* ww = KWordWrap::formatText( fm, r, 0, str );
kdDebug() << str << " => " << ww->truncatedString() << endl;
delete ww;
diff --git a/kdeui/tests/kxmlguitest.cpp b/kdeui/tests/kxmlguitest.cpp
index 949eb03c4..a903aeb3f 100644
--- a/kdeui/tests/kxmlguitest.cpp
+++ b/kdeui/tests/kxmlguitest.cpp
@@ -8,8 +8,8 @@
#include <kdebug.h>
#include <kstdaction.h>
#include <kstandarddirs.h>
-#include <qlineedit.h>
-#include <qdir.h>
+#include <tqlineedit.h>
+#include <tqdir.h>
void Client::slotSec()
{
@@ -22,11 +22,11 @@ int main( int argc, char **argv )
// KXMLGUIClient looks in the "data" resource for the .rc files
// Let's add $PWD (ideally $srcdir instead...) to it
- KGlobal::dirs()->addResourceDir( "data", QDir::currentDirPath() );
+ KGlobal::dirs()->addResourceDir( "data", TQDir::currentDirPath() );
KMainWindow *mainwindow = new KMainWindow;
- QLineEdit* line = new QLineEdit( mainwindow );
+ TQLineEdit* line = new TQLineEdit( mainwindow );
mainwindow->setCentralWidget( line );
mainwindow->show();
@@ -37,7 +37,7 @@ int main( int argc, char **argv )
Client *shell = new Client;
shell->setInstance( new KInstance( "konqueror" ) );
- shell->instance()->dirs()->addResourceDir( "data", QDir::currentDirPath() );
+ shell->instance()->dirs()->addResourceDir( "data", TQDir::currentDirPath() );
(void)new KAction( "Split", "view_left_right", 0, 0, 0, shell->actionCollection(), "splitviewh" );
@@ -48,7 +48,7 @@ int main( int argc, char **argv )
Client *part = new Client;
(void)new KAction( "decfont", "viewmag-", 0, 0, 0, part->actionCollection(), "decFontSizes" );
- (void)new KAction( "sec", "unlock", Qt::ALT + Qt::Key_1, part, SLOT( slotSec() ), part->actionCollection(), "security" );
+ (void)new KAction( "sec", "unlock", Qt::ALT + Qt::Key_1, part, TQT_SLOT( slotSec() ), part->actionCollection(), "security" );
part->setXMLFile( "./kxmlguitest_part.rc" );
diff --git a/kdeui/tests/kxmlguitest.h b/kdeui/tests/kxmlguitest.h
index de651e8a9..1adb1a14b 100644
--- a/kdeui/tests/kxmlguitest.h
+++ b/kdeui/tests/kxmlguitest.h
@@ -2,15 +2,15 @@
#define KXMLGUITEST_H
#include <kxmlguiclient.h>
-#include <qobject.h>
+#include <tqobject.h>
-class Client : public QObject, public KXMLGUIClient
+class Client : public TQObject, public KXMLGUIClient
{
Q_OBJECT
public:
Client() {}
- void setXMLFile( const QString &f, bool merge = true ) { KXMLGUIClient::setXMLFile( f, merge ); }
+ void setXMLFile( const TQString &f, bool merge = true ) { KXMLGUIClient::setXMLFile( f, merge ); }
void setInstance( KInstance *inst ) { KXMLGUIClient::setInstance( inst ); }
public slots:
diff --git a/kdeui/tests/qxembedtest.cpp b/kdeui/tests/qxembedtest.cpp
index 513231051..5e870ba8f 100644
--- a/kdeui/tests/qxembedtest.cpp
+++ b/kdeui/tests/qxembedtest.cpp
@@ -1,11 +1,11 @@
#include <stdlib.h>
#include <stdio.h>
-#include "qapplication.h"
-#include "qpushbutton.h"
-#include "qlineedit.h"
-#include "qhbox.h"
-#include "qvbox.h"
+#include "tqapplication.h"
+#include "tqpushbutton.h"
+#include "tqlineedit.h"
+#include "tqhbox.h"
+#include "tqvbox.h"
#include "qxembed.h"
WId windowWithName(const char *);
@@ -23,13 +23,13 @@ main(int argc, char**argv)
}
- QApplication a(argc,argv);
+ TQApplication a(argc,argv);
- QWidget *main = new QVBox(NULL,"main",Qt::WDestructiveClose);
- QWidget *top = new QHBox(main);
- QPushButton *quit = new QPushButton("Quit", top);
- QObject::connect( quit, SIGNAL(clicked()), main, SLOT(close()) );
- QLineEdit *edit = new QLineEdit(top);
+ TQWidget *main = new TQVBox(NULL,"main",Qt::WDestructiveClose);
+ TQWidget *top = new TQHBox(main);
+ TQPushButton *quit = new TQPushButton("Quit", top);
+ TQObject::connect( quit, TQT_SIGNAL(clicked()), main, TQT_SLOT(close()) );
+ TQLineEdit *edit = new TQLineEdit(top);
edit->setText( "Just to see focus changes");
QXEmbed *embed = new QXEmbed(main);
embed->setProtocol(QXEmbed::XPLAIN);
@@ -57,7 +57,7 @@ main(int argc, char**argv)
#include <X11/Xlib.h>
-#include <qpaintdevice.h>
+#include <tqpaintdevice.h>
// This is lifted from X11 xprop.