summaryrefslogtreecommitdiffstats
path: root/kdeui/tests/klineedittest.cpp
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/klineedittest.cpp
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/klineedittest.cpp')
-rw-r--r--kdeui/tests/klineedittest.cpp54
1 files changed, 27 insertions, 27 deletions
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)