diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
commit | 7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch) | |
tree | 8474f9b444b2756228600050f07a7ff25de532b2 /kresources/lib/folderselectdialog.cpp | |
parent | f587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff) | |
download | tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kresources/lib/folderselectdialog.cpp')
-rw-r--r-- | kresources/lib/folderselectdialog.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/kresources/lib/folderselectdialog.cpp b/kresources/lib/folderselectdialog.cpp index 07b8bc8fe..0942f8223 100644 --- a/kresources/lib/folderselectdialog.cpp +++ b/kresources/lib/folderselectdialog.cpp @@ -32,19 +32,19 @@ #include "folderselectdialog.h" -#include <qlayout.h> -#include <qlabel.h> +#include <tqlayout.h> +#include <tqlabel.h> using namespace KPIM; -FolderSelectDialog::FolderSelectDialog( const QString& caption, const QString& label, - const QStringList& list ) +FolderSelectDialog::FolderSelectDialog( const TQString& caption, const TQString& label, + const TQStringList& list ) : KDialogBase(0, 0, true, caption, Ok, Ok, true) { - QFrame* frame = makeMainWidget(); - QVBoxLayout* layout = new QVBoxLayout( frame, 0, spacingHint() ); + TQFrame* frame = makeMainWidget(); + TQVBoxLayout* layout = new TQVBoxLayout( frame, 0, spacingHint() ); - QLabel* labelWidget = new QLabel( label, frame ); + TQLabel* labelWidget = new TQLabel( label, frame ); layout->addWidget( labelWidget ); mListBox = new KListBox( frame ); @@ -53,10 +53,10 @@ FolderSelectDialog::FolderSelectDialog( const QString& caption, const QString& l mListBox->ensureCurrentVisible(); layout->addWidget( mListBox, 10 ); - connect( mListBox, SIGNAL( doubleClicked( QListBoxItem * ) ), - SLOT( slotOk() ) ); - connect( mListBox, SIGNAL( returnPressed( QListBoxItem * ) ), - SLOT( slotOk() ) ); + connect( mListBox, TQT_SIGNAL( doubleClicked( TQListBoxItem * ) ), + TQT_SLOT( slotOk() ) ); + connect( mListBox, TQT_SIGNAL( returnPressed( TQListBoxItem * ) ), + TQT_SLOT( slotOk() ) ); mListBox->setFocus(); @@ -65,19 +65,19 @@ FolderSelectDialog::FolderSelectDialog( const QString& caption, const QString& l setMinimumWidth( 320 ); } -QString FolderSelectDialog::getItem( const QString &caption, const QString &label, - const QStringList& list ) +TQString FolderSelectDialog::getItem( const TQString &caption, const TQString &label, + const TQStringList& list ) { FolderSelectDialog dlg( caption, label, list ); - QString result; + TQString result; if ( dlg.exec() == Accepted ) result = dlg.mListBox->currentText(); return result; } -void FolderSelectDialog::closeEvent(QCloseEvent *event) +void FolderSelectDialog::closeEvent(TQCloseEvent *event) { event->ignore(); } |