summaryrefslogtreecommitdiffstats
path: root/kdeui/tests
diff options
context:
space:
mode:
Diffstat (limited to 'kdeui/tests')
-rw-r--r--kdeui/tests/itemcontainertest.h2
-rw-r--r--kdeui/tests/kalphaicontest.h2
-rw-r--r--kdeui/tests/kblendtest.cpp2
-rw-r--r--kdeui/tests/kblendtest.h2
-rw-r--r--kdeui/tests/kbuttonboxtest.cpp24
-rw-r--r--kdeui/tests/kcharselecttest.cpp2
-rw-r--r--kdeui/tests/kcolortest.cpp6
-rw-r--r--kdeui/tests/kcolortest.h2
-rw-r--r--kdeui/tests/kcomboboxtest.cpp10
-rw-r--r--kdeui/tests/kcomboboxtest.h2
-rw-r--r--kdeui/tests/kcompletiontest.cpp2
-rw-r--r--kdeui/tests/kcompletiontest.h2
-rw-r--r--kdeui/tests/kdesattest.cpp2
-rw-r--r--kdeui/tests/kdesattest.h2
-rw-r--r--kdeui/tests/kdialogbasetest.cpp2
-rw-r--r--kdeui/tests/kdockwidgetdemo.cpp12
-rw-r--r--kdeui/tests/kdockwidgetdemo.h12
-rw-r--r--kdeui/tests/kdockwidgettest.cpp4
-rw-r--r--kdeui/tests/kdualcolortest.cpp6
-rw-r--r--kdeui/tests/kdualcolortest.h2
-rw-r--r--kdeui/tests/keditlistboxtest.cpp12
-rw-r--r--kdeui/tests/kgradienttest.h2
-rw-r--r--kdeui/tests/khashtest.h2
-rw-r--r--kdeui/tests/kledtest.cpp6
-rw-r--r--kdeui/tests/kledtest.h4
-rw-r--r--kdeui/tests/klineedittest.h2
-rw-r--r--kdeui/tests/kmessageboxtest.cpp24
-rw-r--r--kdeui/tests/knuminputtest.h2
-rw-r--r--kdeui/tests/kpanelmenutest.cpp2
-rw-r--r--kdeui/tests/kpanelmenutest.h2
-rw-r--r--kdeui/tests/kpopuptest.cpp2
-rw-r--r--kdeui/tests/krulertest.cpp12
-rw-r--r--kdeui/tests/krulertest.h2
-rw-r--r--kdeui/tests/ktabctltest.h2
-rw-r--r--kdeui/tests/ktabwidgettest.cpp6
-rw-r--r--kdeui/tests/ktabwidgettest.h2
-rw-r--r--kdeui/tests/kunbalancedgrdtest.cpp2
-rw-r--r--kdeui/tests/kunbalancedgrdtest.h4
-rw-r--r--kdeui/tests/kwizardtest.cpp2
39 files changed, 96 insertions, 96 deletions
diff --git a/kdeui/tests/itemcontainertest.h b/kdeui/tests/itemcontainertest.h
index 9af239c60..4334bd805 100644
--- a/kdeui/tests/itemcontainertest.h
+++ b/kdeui/tests/itemcontainertest.h
@@ -9,7 +9,7 @@ class KListBox;
class TQButtonGroup;
class TQLabel;
-class TopLevel : public QWidget
+class TopLevel : public TQWidget
{
Q_OBJECT
public:
diff --git a/kdeui/tests/kalphaicontest.h b/kdeui/tests/kalphaicontest.h
index 6143b569d..201f96cd6 100644
--- a/kdeui/tests/kalphaicontest.h
+++ b/kdeui/tests/kalphaicontest.h
@@ -5,7 +5,7 @@
#include <kimageeffect.h>
#include <kalphapainter.h>
-class KAlphaTest : public QWidget
+class KAlphaTest : public TQWidget
{
public:
KAlphaTest();
diff --git a/kdeui/tests/kblendtest.cpp b/kdeui/tests/kblendtest.cpp
index e2d36a575..59a57dc6a 100644
--- a/kdeui/tests/kblendtest.cpp
+++ b/kdeui/tests/kblendtest.cpp
@@ -11,7 +11,7 @@ KBlendWidget::KBlendWidget(TQWidget *parent, const char *name)
:TQWidget(parent, name)
{
- bgnd = qRgb(255, 255, 255);
+ bgnd = tqRgb(255, 255, 255);
image = TQImage("testimage.png");
diff --git a/kdeui/tests/kblendtest.h b/kdeui/tests/kblendtest.h
index b0f4485dd..f35afbb5f 100644
--- a/kdeui/tests/kblendtest.h
+++ b/kdeui/tests/kblendtest.h
@@ -10,7 +10,7 @@
#include <tqwidget.h>
#include <tqimage.h>
-class KBlendWidget : public QWidget
+class KBlendWidget : public TQWidget
{
public:
KBlendWidget(TQWidget *parent=0, const char *name=0);
diff --git a/kdeui/tests/kbuttonboxtest.cpp b/kdeui/tests/kbuttonboxtest.cpp
index 1773c47f9..86850f0ce 100644
--- a/kdeui/tests/kbuttonboxtest.cpp
+++ b/kdeui/tests/kbuttonboxtest.cpp
@@ -37,8 +37,8 @@ int main(int argc, char **argv) {
"the window!\n"
"Press OK or Cancel when done"
, w);
- l->setAlignment(Qt::AlignVCenter|Qt::AlignLeft|Qt::WordBreak);
- l->setMinimumSize(l->sizeHint());
+ l->tqsetAlignment(Qt::AlignVCenter|Qt::AlignLeft|Qt::WordBreak);
+ l->setMinimumSize(l->tqsizeHint());
tl->addWidget(l,1);
KButtonBox *bbox = new KButtonBox(w);
TQPushButton *b = bbox->addButton("OK");
@@ -65,8 +65,8 @@ int main(int argc, char **argv) {
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);
- l->setMinimumSize(l->sizeHint());
+ l->tqsetAlignment(Qt::AlignVCenter|Qt::AlignLeft|Qt::WordBreak);
+ l->setMinimumSize(l->tqsizeHint());
tl->addWidget(l,1);
KButtonBox *bbox = new KButtonBox(w);
bbox->addStretch(1);
@@ -91,8 +91,8 @@ int main(int argc, char **argv) {
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);
- l->setMinimumSize(l->sizeHint());
+ l->tqsetAlignment(Qt::AlignVCenter|Qt::AlignLeft|Qt::WordBreak);
+ l->setMinimumSize(l->tqsizeHint());
tl->addWidget(l,1);
KButtonBox *bbox = new KButtonBox(w);
bbox->addStretch(1);
@@ -120,8 +120,8 @@ int main(int argc, char **argv) {
"the maximum width for all buttons\n"
"since it will look ugly -- "
"anyway, it works", w);
- l->setAlignment(Qt::AlignVCenter|Qt::AlignLeft|Qt::WordBreak);
- l->setMinimumSize(l->sizeHint());
+ l->tqsetAlignment(Qt::AlignVCenter|Qt::AlignLeft|Qt::WordBreak);
+ l->setMinimumSize(l->tqsizeHint());
tl->addWidget(l,1);
KButtonBox *bbox = new KButtonBox(w);
bbox->addStretch(1);
@@ -152,8 +152,8 @@ int main(int argc, char **argv) {
"prevent this strange effect as seen\n"
"the former example!"
,w);
- l->setAlignment(Qt::AlignVCenter|Qt::AlignLeft|Qt::WordBreak);
- l->setMinimumSize(l->sizeHint());
+ l->tqsetAlignment(Qt::AlignVCenter|Qt::AlignLeft|Qt::WordBreak);
+ l->setMinimumSize(l->tqsizeHint());
tl->addWidget(l,1);
KButtonBox *bbox = new KButtonBox(w);
bbox->addStretch(1);
@@ -182,8 +182,8 @@ int main(int argc, char **argv) {
"to make vertically aligned buttons\n"
"too?"
,w);
- l->setAlignment(Qt::AlignVCenter|Qt::AlignLeft|Qt::WordBreak);
- l->setMinimumSize(l->sizeHint());
+ l->tqsetAlignment(Qt::AlignVCenter|Qt::AlignLeft|Qt::WordBreak);
+ l->setMinimumSize(l->tqsizeHint());
tl->addWidget(l,1);
KButtonBox *bbox = new KButtonBox(w, KButtonBox::Vertical);
TQPushButton *b = bbox->addButton("OK");
diff --git a/kdeui/tests/kcharselecttest.cpp b/kdeui/tests/kcharselecttest.cpp
index facd17bca..5880c436a 100644
--- a/kdeui/tests/kcharselecttest.cpp
+++ b/kdeui/tests/kcharselecttest.cpp
@@ -7,7 +7,7 @@ int main (int argc,char **argv)
KApplication app( argc, argv, "kcharselecttest" );
KCharSelect selector( 0, "char selector" );
- selector.resize( selector.sizeHint() );
+ selector.resize( selector.tqsizeHint() );
selector.show();
selector.setCaption( "KCharSelect Test" );
diff --git a/kdeui/tests/kcolortest.cpp b/kdeui/tests/kcolortest.cpp
index d4a5c2625..46f5b42bc 100644
--- a/kdeui/tests/kcolortest.cpp
+++ b/kdeui/tests/kcolortest.cpp
@@ -51,9 +51,9 @@ void KColorWidget::doIntensityLoop()
for (int i=0;i<size; i++, qptr++)
{
qrgb=*(QRgb *)qptr;
- *qptr=qRgb((int)(qRed(qrgb)*1./max),
- (int)(qGreen(qrgb)*1./max),
- (int)(qBlue(qrgb)*1./max));
+ *qptr=tqRgb((int)(tqRed(qrgb)*1./max),
+ (int)(tqGreen(qrgb)*1./max),
+ (int)(tqBlue(qrgb)*1./max));
}
}
pixmap.convertFromImage(image);
diff --git a/kdeui/tests/kcolortest.h b/kdeui/tests/kcolortest.h
index ac8716d59..529a1ad74 100644
--- a/kdeui/tests/kcolortest.h
+++ b/kdeui/tests/kcolortest.h
@@ -5,7 +5,7 @@
#include <tqimage.h>
#include <kpixmap.h>
-class KColorWidget : public QWidget
+class KColorWidget : public TQWidget
{
public:
KColorWidget(TQWidget *parent=0, const char *name=0);
diff --git a/kdeui/tests/kcomboboxtest.cpp b/kdeui/tests/kcomboboxtest.cpp
index 44b849b44..e8fd35f7e 100644
--- a/kdeui/tests/kcomboboxtest.cpp
+++ b/kdeui/tests/kcomboboxtest.cpp
@@ -36,7 +36,7 @@ KComboBoxTest::KComboBoxTest(TQWidget* widget, const char* name )
TQHBox* hbox = new TQHBox(this);
hbox->setSpacing (KDialog::spacingHint());
TQLabel* lbl = new TQLabel("&QCombobox:", hbox);
- lbl->setSizePolicy (TQSizePolicy::Maximum, TQSizePolicy::Preferred);
+ lbl->tqsetSizePolicy (TQSizePolicy::Maximum, TQSizePolicy::Preferred);
m_qc = new TQComboBox(hbox, "QtReadOnlyCombo" );
lbl->setBuddy (m_qc);
@@ -48,7 +48,7 @@ KComboBoxTest::KComboBoxTest(TQWidget* widget, const char* name )
hbox = new TQHBox(this);
hbox->setSpacing (KDialog::spacingHint());
lbl = new TQLabel("&Read-Only Combo:", hbox);
- lbl->setSizePolicy (TQSizePolicy::Maximum, TQSizePolicy::Preferred);
+ lbl->tqsetSizePolicy (TQSizePolicy::Maximum, TQSizePolicy::Preferred);
m_ro = new KComboBox(hbox, "ReadOnlyCombo" );
lbl->setBuddy (m_ro);
@@ -61,7 +61,7 @@ KComboBoxTest::KComboBoxTest(TQWidget* widget, const char* name )
hbox = new TQHBox(this);
hbox->setSpacing (KDialog::spacingHint());
lbl = new TQLabel("&Editable Combo:", hbox);
- lbl->setSizePolicy (TQSizePolicy::Maximum, TQSizePolicy::Preferred);
+ lbl->tqsetSizePolicy (TQSizePolicy::Maximum, TQSizePolicy::Preferred);
m_rw = new KComboBox( true, hbox, "ReadWriteCombo" );
lbl->setBuddy (m_rw);
@@ -78,7 +78,7 @@ KComboBoxTest::KComboBoxTest(TQWidget* widget, const char* name )
hbox = new TQHBox(this);
hbox->setSpacing (KDialog::spacingHint());
lbl = new TQLabel("&History Combo:", hbox);
- lbl->setSizePolicy (TQSizePolicy::Maximum, TQSizePolicy::Preferred);
+ lbl->tqsetSizePolicy (TQSizePolicy::Maximum, TQSizePolicy::Preferred);
m_hc = new KHistoryCombo( true, hbox, "HistoryCombo" );
lbl->setBuddy (m_hc);
@@ -94,7 +94,7 @@ KComboBoxTest::KComboBoxTest(TQWidget* widget, const char* name )
hbox = new TQHBox(this);
hbox->setSpacing (KDialog::spacingHint());
lbl = new TQLabel( "&Konq's Combo:", hbox);
- lbl->setSizePolicy (TQSizePolicy::Maximum, TQSizePolicy::Preferred);
+ lbl->tqsetSizePolicy (TQSizePolicy::Maximum, TQSizePolicy::Preferred);
m_konqc = new KComboBox( true, hbox, "KonqyCombo" );
lbl->setBuddy (m_konqc);
diff --git a/kdeui/tests/kcomboboxtest.h b/kdeui/tests/kcomboboxtest.h
index ac6d48338..6566c9097 100644
--- a/kdeui/tests/kcomboboxtest.h
+++ b/kdeui/tests/kcomboboxtest.h
@@ -9,7 +9,7 @@ class TQPushButton;
class KComboBox;
-class KComboBoxTest : public QWidget
+class KComboBoxTest : public TQWidget
{
Q_OBJECT
diff --git a/kdeui/tests/kcompletiontest.cpp b/kdeui/tests/kcompletiontest.cpp
index bdd47ab48..fd44307d3 100644
--- a/kdeui/tests/kcompletiontest.cpp
+++ b/kdeui/tests/kcompletiontest.cpp
@@ -42,7 +42,7 @@ Form1::Form1( TQWidget* parent, const char* name )
GroupBox1->layout()->setSpacing( 0 );
GroupBox1->layout()->setMargin( 0 );
GroupBox1Layout = new TQVBoxLayout( GroupBox1->layout() );
- GroupBox1Layout->setAlignment( Qt::AlignTop );
+ GroupBox1Layout->tqsetAlignment( Qt::AlignTop );
GroupBox1Layout->setSpacing( 6 );
GroupBox1Layout->setMargin( 11 );
diff --git a/kdeui/tests/kcompletiontest.h b/kdeui/tests/kcompletiontest.h
index 55b01a82d..9443401eb 100644
--- a/kdeui/tests/kcompletiontest.h
+++ b/kdeui/tests/kcompletiontest.h
@@ -25,7 +25,7 @@ class KHistoryCombo;
class KLineEdit;
-class Form1 : public QWidget
+class Form1 : public TQWidget
{
Q_OBJECT
diff --git a/kdeui/tests/kdesattest.cpp b/kdeui/tests/kdesattest.cpp
index 28f7d4cf2..e75b320a7 100644
--- a/kdeui/tests/kdesattest.cpp
+++ b/kdeui/tests/kdesattest.cpp
@@ -23,7 +23,7 @@ KDesatWidget::KDesatWidget(TQWidget *parent, const char *name)
void KDesatWidget::change(double) {
desat_value = slide->value();
- repaint(false);
+ tqrepaint(false);
}
void KDesatWidget::paintEvent(TQPaintEvent */*ev*/)
diff --git a/kdeui/tests/kdesattest.h b/kdeui/tests/kdesattest.h
index 67329d578..8e04c08c6 100644
--- a/kdeui/tests/kdesattest.h
+++ b/kdeui/tests/kdesattest.h
@@ -11,7 +11,7 @@
#include <tqimage.h>
#include <knuminput.h>
-class KDesatWidget : public QWidget
+class KDesatWidget : public TQWidget
{
Q_OBJECT
public:
diff --git a/kdeui/tests/kdialogbasetest.cpp b/kdeui/tests/kdialogbasetest.cpp
index 5e62115fa..ec77e7453 100644
--- a/kdeui/tests/kdialogbasetest.cpp
+++ b/kdeui/tests/kdialogbasetest.cpp
@@ -64,7 +64,7 @@ int main(int argc, char** argv)
widget may change before the dialog is shown. Additionally, setting a
help chapter may cause a need for adjustment since it modifies the height
of the upper frame. */
- dialog.resize(dialog.minimumSize());
+ dialog.resize(dialog.tqminimumSize());
/* The dialog object is used just as any other TQDialog: */
if(dialog.exec())
{
diff --git a/kdeui/tests/kdockwidgetdemo.cpp b/kdeui/tests/kdockwidgetdemo.cpp
index 15b83d14e..2f2c59d94 100644
--- a/kdeui/tests/kdockwidgetdemo.cpp
+++ b/kdeui/tests/kdockwidgetdemo.cpp
@@ -82,7 +82,7 @@ SFileDialog::SFileDialog( TQString initially, const TQStringList& filter, const
:TQDialog(0L,name,true)
{
KConfig* config = kapp->config();
- config->setGroup( TQString::fromLatin1("SFileDialogData:") + name );
+ config->setGroup( TQString::tqfromLatin1("SFileDialogData:") + name );
if ( initially.isNull() ){
initially = config->readPathEntry( "InitiallyDir", TQDir::currentDirPath() );
}
@@ -242,7 +242,7 @@ void PixmapView::setPixmap( const TQPixmap &pix )
{
pixmap = pix;
resizeContents( pixmap.size().width(), pixmap.size().height() );
- viewport()->repaint( true );
+ viewport()->tqrepaint( true );
}
void PixmapView::drawContents( TQPainter *p, int, int, int, int )
@@ -777,13 +777,13 @@ int main(int argc, char* argv[]) {
#endif
#if 0
- qDebug ( SFileDialog::getOpenFileName( TQString::null, TQString::fromLatin1("All (*)"),
- TQString::fromLatin1("DockWidget Demo"), "dialog1" ) );
+ qDebug ( SFileDialog::getOpenFileName( TQString::null, TQString::tqfromLatin1("All (*)"),
+ TQString::tqfromLatin1("DockWidget Demo"), "dialog1" ) );
#endif
#if 1
- TQStringList s = SFileDialog::getOpenFileNames( TQString::null, TQString::fromLatin1("All (*)"),
- TQString::fromLatin1("DockWidget Demo"), "dialog1" );
+ TQStringList s = SFileDialog::getOpenFileNames( TQString::null, TQString::tqfromLatin1("All (*)"),
+ TQString::tqfromLatin1("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 ff9b1451b..b6f029cd5 100644
--- a/kdeui/tests/kdockwidgetdemo.h
+++ b/kdeui/tests/kdockwidgetdemo.h
@@ -28,7 +28,7 @@ class CustomFileDialog;
class Preview;
class DirectoryView;
-class SFileDialog : public QDialog
+class SFileDialog : public TQDialog
{Q_OBJECT
public:
@@ -67,7 +67,7 @@ private:
TQToolButton *b_preview;
};
/******************************************************************************************************/
-class Directory : public QListViewItem
+class Directory : public TQListViewItem
{
public:
Directory( TQListView * parent, const TQString& filename );
@@ -86,7 +86,7 @@ private:
bool readable;
};
-class DirectoryView : public QListView
+class DirectoryView : public TQListView
{Q_OBJECT
public:
DirectoryView( TQWidget *parent = 0, const char *name = 0 );
@@ -107,7 +107,7 @@ private:
TQString fullPath(TQListViewItem* item);
};
/******************************************************************************************************/
-class PixmapView : public QScrollView
+class PixmapView : public TQScrollView
{Q_OBJECT
public:
PixmapView( TQWidget *parent );
@@ -118,7 +118,7 @@ private:
TQPixmap pixmap;
};
-class Preview : public QWidgetStack
+class Preview : public TQWidgetStack
{Q_OBJECT
public:
Preview( TQWidget *parent );
@@ -132,7 +132,7 @@ private:
PixmapView *pixmap;
};
-class CustomFileDialog : public QFileDialog
+class CustomFileDialog : public TQFileDialog
{Q_OBJECT
public:
CustomFileDialog( TQWidget* parent );
diff --git a/kdeui/tests/kdockwidgettest.cpp b/kdeui/tests/kdockwidgettest.cpp
index 08a7e42b3..b2f7b8bd9 100644
--- a/kdeui/tests/kdockwidgettest.cpp
+++ b/kdeui/tests/kdockwidgettest.cpp
@@ -101,7 +101,7 @@ DockApplication::DockApplication( const char* name )
l->setBackgroundColor(white);
l->setMinimumSize(100,100);
dock5->setWidget(l);
- if (l->qt_cast("KDockContainer")) qDebug("KDockContainer created for dock 5");
+ if (l->tqqt_cast("KDockContainer")) qDebug("KDockContainer created for dock 5");
/*****************************************************/
/*****************************************************/
@@ -112,7 +112,7 @@ DockApplication::DockApplication( const char* name )
l->setBackgroundColor(white);
l->setMinimumSize(100,100);
dock6->setWidget(l);
- if (l->qt_cast("KDockContainer")) qDebug("KDockContainer created for dock 6");
+ if (l->tqqt_cast("KDockContainer")) qDebug("KDockContainer created for dock 6");
/*****************************************************/
diff --git a/kdeui/tests/kdualcolortest.cpp b/kdeui/tests/kdualcolortest.cpp
index 2060a9842..507030132 100644
--- a/kdeui/tests/kdualcolortest.cpp
+++ b/kdeui/tests/kdualcolortest.cpp
@@ -10,8 +10,8 @@ KDualColorWidget::KDualColorWidget(TQWidget *parent, const char *name)
{
lbl = new TQLabel("Testing, testing, 1, 2, 3...", this);
KDualColorButton *colorBtn =
- new KDualColorButton(lbl->colorGroup().text(),
- lbl->colorGroup().background(), this);
+ new KDualColorButton(lbl->tqcolorGroup().text(),
+ lbl->tqcolorGroup().background(), this);
connect(colorBtn, TQT_SIGNAL(fgChanged(const TQColor &)),
TQT_SLOT(slotFgChanged(const TQColor &)));
connect(colorBtn, TQT_SIGNAL(bgChanged(const TQColor &)),
@@ -23,7 +23,7 @@ KDualColorWidget::KDualColorWidget(TQWidget *parent, const char *name)
layout->addWidget(colorBtn, 0);
layout->addWidget(lbl, 1);
layout->activate();
- resize(sizeHint());
+ resize(tqsizeHint());
}
void KDualColorWidget::slotFgChanged(const TQColor &c)
diff --git a/kdeui/tests/kdualcolortest.h b/kdeui/tests/kdualcolortest.h
index bcd9b271e..2c38b7af0 100644
--- a/kdeui/tests/kdualcolortest.h
+++ b/kdeui/tests/kdualcolortest.h
@@ -4,7 +4,7 @@
#include <tqlabel.h>
#include <kdualcolorbutton.h>
-class KDualColorWidget : public QWidget
+class KDualColorWidget : public TQWidget
{
Q_OBJECT
public:
diff --git a/kdeui/tests/keditlistboxtest.cpp b/kdeui/tests/keditlistboxtest.cpp
index 90dbb74d0..fdc90a742 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( TQString::fromLatin1("KEditListBox"),
+ KEditListBox *box = new KEditListBox( TQString::tqfromLatin1("KEditListBox"),
editor );
- 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->insertItem( TQString::tqfromLatin1("Test") );
+ box->insertItem( TQString::tqfromLatin1("for") );
+ box->insertItem( TQString::tqfromLatin1("this") );
+ box->insertItem( TQString::tqfromLatin1("KEditListBox") );
+ box->insertItem( TQString::tqfromLatin1("Widget") );
box->show();
return app.exec();
diff --git a/kdeui/tests/kgradienttest.h b/kdeui/tests/kgradienttest.h
index a793bfa5c..ba99c8313 100644
--- a/kdeui/tests/kgradienttest.h
+++ b/kdeui/tests/kgradienttest.h
@@ -10,7 +10,7 @@
#include <tqwidget.h>
#include <kpixmap.h>
-class KGradientWidget : public QWidget
+class KGradientWidget : public TQWidget
{
public:
KGradientWidget(TQWidget *parent=0, const char *name=0)
diff --git a/kdeui/tests/khashtest.h b/kdeui/tests/khashtest.h
index 3d4e8a3fa..05de5c435 100644
--- a/kdeui/tests/khashtest.h
+++ b/kdeui/tests/khashtest.h
@@ -10,7 +10,7 @@
#include <tqwidget.h>
#include <kpixmap.h>
-class KHashWidget : public QWidget
+class KHashWidget : public TQWidget
{
Q_OBJECT
diff --git a/kdeui/tests/kledtest.cpp b/kdeui/tests/kledtest.cpp
index d68f1e366..f8d031530 100644
--- a/kdeui/tests/kledtest.cpp
+++ b/kdeui/tests/kledtest.cpp
@@ -50,14 +50,14 @@ KLedTest::KLedTest(TQWidget* parent)
}
else {
y=Grid; index=0;
- for( int shape=0; (int)shape<2; shape=(KLed::Shape)(shape+1)) {
+ for( int tqshape=0; (int)tqshape<2; tqshape=(KLed::Shape)(tqshape+1)) {
x=Grid;
for( int look=0; (int)look<3; look=(KLed::Look)(look+1)) {
for(state=KLed::Off; (int)state<2; state=(KLed::State)(state+1))
{
leds[index]=new KLed(Qt::yellow, state,
(KLed::Look)(look+1),
- (KLed::Shape)(shape+1), this);
+ (KLed::Shape)(tqshape+1), this);
leds[index]->setGeometry(x, y, LedWidth, LedHeight);
++index;
x+=Grid+LedWidth;
@@ -108,7 +108,7 @@ KLedTest::nextLook() {
ledlook = static_cast<KLed::Look>(tmp);
l->setLook(ledlook);
//qDebug("painting look %i", ledlook);
- //l->repaint();
+ //l->tqrepaint();
}
diff --git a/kdeui/tests/kledtest.h b/kdeui/tests/kledtest.h
index 33c70fe83..5d660f5a3 100644
--- a/kdeui/tests/kledtest.h
+++ b/kdeui/tests/kledtest.h
@@ -6,7 +6,7 @@
#include <stdlib.h>
#include <kled.h>
-class KLedTest : public QWidget
+class KLedTest : public TQWidget
{
Q_OBJECT
protected:
@@ -15,7 +15,7 @@ protected:
const int LedWidth;
const int LedHeight;
const int Grid;
- KLed::Shape shape;
+ KLed::Shape tqshape;
KLed::Look look;
KLed::State state;
int x, y, index;
diff --git a/kdeui/tests/klineedittest.h b/kdeui/tests/klineedittest.h
index fc2b74a30..6fee4dbc4 100644
--- a/kdeui/tests/klineedittest.h
+++ b/kdeui/tests/klineedittest.h
@@ -9,7 +9,7 @@ class TQPushButton;
class KLineEdit;
-class KLineEditTest : public QWidget
+class KLineEditTest : public TQWidget
{
Q_OBJECT
diff --git a/kdeui/tests/kmessageboxtest.cpp b/kdeui/tests/kmessageboxtest.cpp
index 1b926739f..e63d24fca 100644
--- a/kdeui/tests/kmessageboxtest.cpp
+++ b/kdeui/tests/kmessageboxtest.cpp
@@ -25,18 +25,18 @@ ExampleWidget::ExampleWidget( TQWidget *parent, const char *name )
// and sub-layouts.
TQSize sh;
setText("<p>Hello.</p>");
- sh = sizeHint();
+ sh = tqsizeHint();
qWarning("SizeHint = %d x %d", sh.width(), sh.height());
setText("Hello.");
- sh = sizeHint();
+ sh = tqsizeHint();
qWarning("SizeHint = %d x %d", sh.width(), sh.height());
setText("<p>Hello<br>World</p>");
- sh = sizeHint();
+ sh = tqsizeHint();
qWarning("SizeHint = %d x %d", sh.width(), sh.height());
// setText("Hello\nWorld");
- sh = sizeHint();
+ sh = tqsizeHint();
qWarning("SizeHint = %d x %d", sh.width(), sh.height());
- setMinimumSize(sizeHint());
+ setMinimumSize(tqsizeHint());
}
@@ -79,11 +79,11 @@ case 1:
i = KMessageBox::warningContinueCancel(w,
"You are about to <Print>.\n"
"Are you sure?",
- "Print", TQString::fromLatin1("&Print"), "dontask", false);
+ "Print", TQString::tqfromLatin1("&Print"), "dontask", false);
i = KMessageBox::warningContinueCancel(0,
"You are about to <Print>.\n"
"Are you sure?",
- "Print", TQString::fromLatin1("&Print"), "dontask", KMessageBox::AllowLink);
+ "Print", TQString::tqfromLatin1("&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>",
TQString("Bla"), TQString("Yes"), TQString("No"), "bla", KMessageBox::AllowLink);
break;
@@ -96,7 +96,7 @@ case 2:
case 3:
i = KMessageBox::questionYesNo(0,
"Does your printer support color or only black and white?",
- "Printer setup", TQString::fromLatin1("&Color"), TQString::fromLatin1("&Black & White"));
+ "Printer setup", TQString::tqfromLatin1("&Color"), TQString::tqfromLatin1("&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", TQString::fromLatin1("&Print"));
+ "Print", TQString::tqfromLatin1("&Print"));
break;
case 7:
i = KMessageBox::warningContinueCancel(0,
"You are about to <Print>.\n"
"Are you sure?",
- "Print", TQString::fromLatin1("&Print"), "dontask", false);
+ "Print", TQString::tqfromLatin1("&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",
- TQString::fromLatin1("Close"));
+ TQString::tqfromLatin1("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", TQString::fromLatin1("&Save"), TQString::fromLatin1("&Discard") );
+ "Close", TQString::tqfromLatin1("&Save"), TQString::tqfromLatin1("&Discard") );
break;
case 11:
diff --git a/kdeui/tests/knuminputtest.h b/kdeui/tests/knuminputtest.h
index f32e1c4b4..32a9e9098 100644
--- a/kdeui/tests/knuminputtest.h
+++ b/kdeui/tests/knuminputtest.h
@@ -6,7 +6,7 @@
class KIntNumInput;
class KDoubleNumInput;
-class TopLevel : public QWidget
+class TopLevel : public TQWidget
{
Q_OBJECT
public:
diff --git a/kdeui/tests/kpanelmenutest.cpp b/kdeui/tests/kpanelmenutest.cpp
index 6f2d8f2be..e081e467f 100644
--- a/kdeui/tests/kpanelmenutest.cpp
+++ b/kdeui/tests/kpanelmenutest.cpp
@@ -20,7 +20,7 @@ TestWidget::TestWidget(TQWidget *parent, const char *name)
init();
setText("We added \"Client Test\" to kicker. Click the K Menu to check.");
- resize(sizeHint());
+ resize(tqsizeHint());
}
void TestWidget::init()
diff --git a/kdeui/tests/kpanelmenutest.h b/kdeui/tests/kpanelmenutest.h
index ec76a4498..361ae545a 100644
--- a/kdeui/tests/kpanelmenutest.h
+++ b/kdeui/tests/kpanelmenutest.h
@@ -4,7 +4,7 @@
#include <kpanelappmenu.h>
#include <tqlabel.h>
-class TestWidget : public QLabel
+class TestWidget : public TQLabel
{
Q_OBJECT
public:
diff --git a/kdeui/tests/kpopuptest.cpp b/kdeui/tests/kpopuptest.cpp
index 96f4b3d32..3db71106b 100644
--- a/kdeui/tests/kpopuptest.cpp
+++ b/kdeui/tests/kpopuptest.cpp
@@ -24,7 +24,7 @@ public:
menu->insertItem("Item1");
menu->insertItem("Item2");
menu->insertSeparator();
- menu->insertItem("Quit", qApp, TQT_SLOT(quit()));
+ menu->insertItem("Quit", tqApp, TQT_SLOT(quit()));
}
};
diff --git a/kdeui/tests/krulertest.cpp b/kdeui/tests/krulertest.cpp
index ad2f5630a..8d64a53f4 100644
--- a/kdeui/tests/krulertest.cpp
+++ b/kdeui/tests/krulertest.cpp
@@ -140,7 +140,7 @@ KRulerTest::KRulerTest( const char *name )
beginMark = new KIntNumInput(0, lineEdit);
beginMark->setRange(-1000, 1000, 1, false);
beginMark->move(5, 15);
- beginMark->setFixedSize(beginMark->sizeHint());
+ beginMark->setFixedSize(beginMark->tqsizeHint());
connect(beginMark, TQT_SIGNAL(valueChanged(int)),
hruler, TQT_SLOT(slotNewOffset(int)) );
connect(beginMark, TQT_SIGNAL(valueChanged(int)),
@@ -148,7 +148,7 @@ KRulerTest::KRulerTest( const char *name )
endMark = new KIntNumInput(0, lineEdit);
endMark->setRange(-1000, 1000, 1, false);
endMark->move(5, 35);
- endMark->setFixedSize(endMark->sizeHint());
+ endMark->setFixedSize(endMark->tqsizeHint());
connect(endMark, TQT_SIGNAL(valueChanged(int)),
hruler, TQT_SLOT(slotEndOffset(int)) );
connect(endMark, TQT_SIGNAL(valueChanged(int)),
@@ -156,7 +156,7 @@ KRulerTest::KRulerTest( const char *name )
lengthInput = new KIntNumInput(0, lineEdit);
lengthInput->setRange(-1000, 1000, 1, false);
lengthInput->move(5, 55);
- lengthInput->setFixedSize(lengthInput->sizeHint());
+ lengthInput->setFixedSize(lengthInput->tqsizeHint());
connect(lengthInput, TQT_SIGNAL(valueChanged(int)),
hruler, TQT_SLOT(slotEndOffset(int)) );
connect(lengthInput, TQT_SIGNAL(valueChanged(int)),
@@ -169,21 +169,21 @@ KRulerTest::KRulerTest( const char *name )
transX = new KDoubleNumInput(0.0, vertrot);
transX->setRange(-1000, 1000, 1, false);
transX->move(5, 15);
- transX->setFixedSize(transX->sizeHint());
+ transX->setFixedSize(transX->tqsizeHint());
//transX->setLabel("transx", AlignLeft);
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->setFixedSize(transY->tqsizeHint());
//transY->setLabel("transy", AlignLeft);
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->setFixedSize(rotV->tqsizeHint());
//rotV->setLabel("rot", AlignLeft);
connect(rotV, TQT_SIGNAL(valueChanged(double)),
TQT_SLOT(slotSetRotate(double)) );
diff --git a/kdeui/tests/krulertest.h b/kdeui/tests/krulertest.h
index fe552467c..d180e93a0 100644
--- a/kdeui/tests/krulertest.h
+++ b/kdeui/tests/krulertest.h
@@ -19,7 +19,7 @@ class TQCheckBox;
class TQGroupBox;
-class MouseWidget : public QFrame
+class MouseWidget : public TQFrame
{
Q_OBJECT
public:
diff --git a/kdeui/tests/ktabctltest.h b/kdeui/tests/ktabctltest.h
index 8b4632411..6dd3b932a 100644
--- a/kdeui/tests/ktabctltest.h
+++ b/kdeui/tests/ktabctltest.h
@@ -10,7 +10,7 @@ class KTabCtl;
class TQPushButton;
class TQMultiLineEdit;
-class TopLevel : public QWidget
+class TopLevel : public TQWidget
{
Q_OBJECT
public:
diff --git a/kdeui/tests/ktabwidgettest.cpp b/kdeui/tests/ktabwidgettest.cpp
index 32ed5c89f..5f9fb3dcc 100644
--- a/kdeui/tests/ktabwidgettest.cpp
+++ b/kdeui/tests/ktabwidgettest.cpp
@@ -73,9 +73,9 @@ Test::Test( TQWidget* parent, const char *name )
gridlayout->addWidget( mTabsBottom, 3, 0 );
connect( mTabsBottom, TQT_SIGNAL( toggled(bool) ), TQT_SLOT( toggleTabPosition(bool) ) );
- TQCheckBox * tabshape = new TQCheckBox( "Triangular tab shape", grid );
- gridlayout->addWidget( tabshape, 3, 1 );
- connect( tabshape, TQT_SIGNAL( toggled(bool) ), TQT_SLOT( toggleTabShape(bool) ) );
+ TQCheckBox * tabtqshape = new TQCheckBox( "Triangular tab tqshape", grid );
+ gridlayout->addWidget( tabtqshape, 3, 1 );
+ connect( tabtqshape, TQT_SIGNAL( toggled(bool) ), TQT_SLOT( toggleTabShape(bool) ) );
TQCheckBox *tabClose = new TQCheckBox( "Close button on icon hover", grid );
gridlayout->addWidget( tabClose, 4, 0 );
diff --git a/kdeui/tests/ktabwidgettest.h b/kdeui/tests/ktabwidgettest.h
index 2bd056cf8..7c178bd32 100644
--- a/kdeui/tests/ktabwidgettest.h
+++ b/kdeui/tests/ktabwidgettest.h
@@ -13,7 +13,7 @@
#include <tqcheckbox.h>
#include <tqtoolbutton.h>
-class Test : public QVBox
+class Test : public TQVBox
{
Q_OBJECT
public:
diff --git a/kdeui/tests/kunbalancedgrdtest.cpp b/kdeui/tests/kunbalancedgrdtest.cpp
index 7f5b2cc78..9f616496d 100644
--- a/kdeui/tests/kunbalancedgrdtest.cpp
+++ b/kdeui/tests/kunbalancedgrdtest.cpp
@@ -159,7 +159,7 @@ void myTopWidget::rebalance()
if ((otime - itime )> 500)
{
- grds->repaint(false);
+ grds->tqrepaint(false);
itime = time.elapsed();
}
}
diff --git a/kdeui/tests/kunbalancedgrdtest.h b/kdeui/tests/kunbalancedgrdtest.h
index bc282b1ce..8b7893772 100644
--- a/kdeui/tests/kunbalancedgrdtest.h
+++ b/kdeui/tests/kunbalancedgrdtest.h
@@ -13,7 +13,7 @@
#include <tqlabel.h>
#include <tqdatetime.h>
-class KGradientWidget : public QWidget
+class KGradientWidget : public TQWidget
{
public:
KGradientWidget(TQWidget *parent=0, const char *name=0);
@@ -28,7 +28,7 @@ private:
};
-class myTopWidget: public QWidget
+class myTopWidget: public TQWidget
{
Q_OBJECT
public:
diff --git a/kdeui/tests/kwizardtest.cpp b/kdeui/tests/kwizardtest.cpp
index 91974263e..dd9e9eeaf 100644
--- a/kdeui/tests/kwizardtest.cpp
+++ b/kdeui/tests/kwizardtest.cpp
@@ -37,7 +37,7 @@ int main(int argc, char **argv)
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->tqsetAlignment(Qt::AlignCenter);
label->setFixedSize(300, 200);
layout->addWidget(label);
TQString title = TQString("%1. page").arg(i);