From 7be55ffa061c026e35e2d6a0effe1161ddb0d41f Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:53:50 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kmail/klistboxdialog.cpp | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) (limited to 'kmail/klistboxdialog.cpp') diff --git a/kmail/klistboxdialog.cpp b/kmail/klistboxdialog.cpp index 030ca3b0a..4249d3bf1 100644 --- a/kmail/klistboxdialog.cpp +++ b/kmail/klistboxdialog.cpp @@ -5,13 +5,13 @@ #include "klistboxdialog.h" -#include -#include +#include +#include -KListBoxDialog::KListBoxDialog( QString& _selectedString, - const QString& caption, - const QString& labelText, - QWidget* parent, +KListBoxDialog::KListBoxDialog( TQString& _selectedString, + const TQString& caption, + const TQString& labelText, + TQWidget* parent, const char* name, bool modal ) : KDialogBase( parent, name, modal, caption, Ok|Cancel, Ok, true ), @@ -22,27 +22,27 @@ KListBoxDialog::KListBoxDialog( QString& _selectedString, setName( "KListBoxDialog" ); resize( 400, 180 ); - QFrame *page = makeMainWidget(); - QVBoxLayout *topLayout = new QVBoxLayout( page, 0, spacingHint() ); - labelAboveLA = new QLabel( page, "labelAboveLA" ); + TQFrame *page = makeMainWidget(); + TQVBoxLayout *topLayout = new TQVBoxLayout( page, 0, spacingHint() ); + labelAboveLA = new TQLabel( page, "labelAboveLA" ); labelAboveLA->setText( labelText ); topLayout->addWidget( labelAboveLA ); - entriesLB = new QListBox( page, "entriesLB" ); + entriesLB = new TQListBox( page, "entriesLB" ); topLayout->addWidget( entriesLB ); - commentBelowLA = new QLabel( page, "commentBelowLA" ); + commentBelowLA = new TQLabel( page, "commentBelowLA" ); commentBelowLA->setText( "" ); topLayout->addWidget( commentBelowLA ); commentBelowLA->hide(); // signals and slots connections - connect( entriesLB, SIGNAL( highlighted( const QString& ) ), - this, SLOT( highlighted( const QString& ) ) ); - connect( entriesLB, SIGNAL( selected(int) ), - SLOT( slotOk() ) ); + connect( entriesLB, TQT_SIGNAL( highlighted( const TQString& ) ), + this, TQT_SLOT( highlighted( const TQString& ) ) ); + connect( entriesLB, TQT_SIGNAL( selected(int) ), + TQT_SLOT( slotOk() ) ); // buddies labelAboveLA->setBuddy( entriesLB ); } @@ -55,7 +55,7 @@ KListBoxDialog::~KListBoxDialog() // no need to delete child widgets, Qt does it all for us } -void KListBoxDialog::setLabelAbove(const QString& label) +void KListBoxDialog::setLabelAbove(const TQString& label) { labelAboveLA->setText( label ); if( label.isEmpty() ) @@ -64,7 +64,7 @@ void KListBoxDialog::setLabelAbove(const QString& label) labelAboveLA->show(); } -void KListBoxDialog::setCommentBelow(const QString& comment) +void KListBoxDialog::setCommentBelow(const TQString& comment) { commentBelowLA->setText( comment ); if( comment.isEmpty() ) @@ -75,7 +75,7 @@ void KListBoxDialog::setCommentBelow(const QString& comment) -void KListBoxDialog::highlighted( const QString& txt ) +void KListBoxDialog::highlighted( const TQString& txt ) { selectedString = txt; } -- cgit v1.2.1