diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:46:43 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:46:43 +0000 |
commit | ffe8a83e053396df448e9413828527613ca3bd46 (patch) | |
tree | a73d4169e02df4a50f9a12cb165fcd0ab5bac7c6 /kdeui/tests/kinputdialogtest.cpp | |
parent | 682bf3bfdcbcbb1fca85e8a36ed03e062e0555d5 (diff) | |
download | tdelibs-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/kinputdialogtest.cpp')
-rw-r--r-- | kdeui/tests/kinputdialogtest.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
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, |