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 /knewstuff/testnewstuff.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 'knewstuff/testnewstuff.cpp')
-rw-r--r-- | knewstuff/testnewstuff.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/knewstuff/testnewstuff.cpp b/knewstuff/testnewstuff.cpp index f9bc84ef2..b0c380c68 100644 --- a/knewstuff/testnewstuff.cpp +++ b/knewstuff/testnewstuff.cpp @@ -20,9 +20,9 @@ #include <iostream> -#include <qlayout.h> -#include <qfile.h> -#include <qtextstream.h> +#include <tqlayout.h> +#include <tqfile.h> +#include <tqtextstream.h> #include <kaboutdata.h> #include <kapplication.h> @@ -37,22 +37,22 @@ using namespace std; -bool TestNewStuff::install( const QString &fileName ) +bool TestNewStuff::install( const TQString &fileName ) { kdDebug() << "TestNewStuff::install(): " << fileName << endl; - QFile f( fileName ); + TQFile f( fileName ); if ( !f.open( IO_ReadOnly ) ) { kdDebug() << "Error opening file." << endl; return false; } - QTextStream ts( &f ); + TQTextStream ts( &f ); kdDebug() << "--BEGIN-NEW_STUFF--" << endl; cout << ts.read().utf8(); kdDebug() << "---END-NEW_STUFF---" << endl; return true; } -bool TestNewStuff::createUploadFile( const QString &fileName ) +bool TestNewStuff::createUploadFile( const TQString &fileName ) { KProcess p; p << "touch" << fileName; @@ -66,23 +66,23 @@ MyWidget::MyWidget() { mNewStuff = new TestNewStuff; - QBoxLayout *topLayout = new QVBoxLayout( this ); + TQBoxLayout *topLayout = new TQVBoxLayout( this ); topLayout->setMargin( KDialog::marginHint() ); topLayout->setSpacing( KDialog::spacingHint() ); - QPushButton *downloadButton = new QPushButton( "Download", this ); + TQPushButton *downloadButton = new TQPushButton( "Download", this ); topLayout->addWidget( downloadButton ); - connect( downloadButton, SIGNAL( clicked() ), SLOT( download() ) ); + connect( downloadButton, TQT_SIGNAL( clicked() ), TQT_SLOT( download() ) ); - QPushButton *uploadButton = new QPushButton( "Upload", this ); + TQPushButton *uploadButton = new TQPushButton( "Upload", this ); topLayout->addWidget( uploadButton ); - connect( uploadButton, SIGNAL( clicked() ), SLOT( upload() ) ); + connect( uploadButton, TQT_SIGNAL( clicked() ), TQT_SLOT( upload() ) ); topLayout->addSpacing( 5 ); - QPushButton *closeButton = new QPushButton( "Close", this ); + TQPushButton *closeButton = new TQPushButton( "Close", this ); topLayout->addWidget( closeButton ); - connect( closeButton, SIGNAL( clicked() ), kapp, SLOT( quit() ) ); + connect( closeButton, TQT_SIGNAL( clicked() ), kapp, TQT_SLOT( quit() ) ); } MyWidget::~MyWidget() |