diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:33:34 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:33:34 +0000 |
commit | c663b6440964f6ac48027143ac9e63298991f9d0 (patch) | |
tree | 6d8b0c5a5f9db1ee16acf98b1397cea9126b281d /kdialog/klistboxdialog.cpp | |
parent | a061f7191beebb0e4a3b0c0a7c534ec5f22f2dc7 (diff) | |
download | tdebase-c663b6440964f6ac48027143ac9e63298991f9d0.tar.gz tdebase-c663b6440964f6ac48027143ac9e63298991f9d0.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1157639 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdialog/klistboxdialog.cpp')
-rw-r--r-- | kdialog/klistboxdialog.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/kdialog/klistboxdialog.cpp b/kdialog/klistboxdialog.cpp index 7ddbf509c..d7abfb694 100644 --- a/kdialog/klistboxdialog.cpp +++ b/kdialog/klistboxdialog.cpp @@ -17,34 +17,34 @@ // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. // -#include <qlabel.h> -#include <qlistbox.h> -#include <qvbox.h> +#include <tqlabel.h> +#include <tqlistbox.h> +#include <tqvbox.h> #include "klistboxdialog.h" #include "klistboxdialog.moc" #include "klocale.h" -KListBoxDialog::KListBoxDialog(QString text, QWidget *parent) - : KDialogBase( parent, 0, true, QString::null, Ok|Cancel, Ok, true ) +KListBoxDialog::KListBoxDialog(TQString text, TQWidget *parent) + : KDialogBase( parent, 0, true, TQString::null, Ok|Cancel, Ok, true ) { - QVBox *page = makeVBoxMainWidget(); + TQVBox *page = makeVBoxMainWidget(); - label = new QLabel(text, page); + label = new TQLabel(text, page); label->setAlignment(AlignCenter); - table = new QListBox(page); + table = new TQListBox(page); table->setFocus(); } -void KListBoxDialog::insertItem(const QString& item) +void KListBoxDialog::insertItem(const TQString& item) { table->insertItem(item); table->setCurrentItem(0); } -void KListBoxDialog::setCurrentItem(const QString& item) +void KListBoxDialog::setCurrentItem(const TQString& item) { for ( int i=0; i < (int) table->count(); i++ ) { if ( table->text(i) == item ) { |