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 /korganizer/publishdialog.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 'korganizer/publishdialog.cpp')
-rw-r--r-- | korganizer/publishdialog.cpp | 52 |
1 files changed, 26 insertions, 26 deletions
diff --git a/korganizer/publishdialog.cpp b/korganizer/publishdialog.cpp index a6d0881eb..ac684069f 100644 --- a/korganizer/publishdialog.cpp +++ b/korganizer/publishdialog.cpp @@ -21,10 +21,10 @@ without including the source code for Qt in the source distribution. */ -#include <qlineedit.h> -#include <qpushbutton.h> +#include <tqlineedit.h> +#include <tqpushbutton.h> #include <kdebug.h> -#include <qlistview.h> +#include <tqlistview.h> #include <kglobal.h> #include <klocale.h> @@ -37,7 +37,7 @@ #include "publishdialog.h" #include "publishdialog_base.h" -PublishDialog::PublishDialog( QWidget* parent, const char* name, +PublishDialog::PublishDialog( TQWidget* parent, const char* name, bool modal ) : KDialogBase( parent, name, modal, i18n("Select Addresses"), Ok|Cancel|Help, Ok, true ) @@ -46,18 +46,18 @@ PublishDialog::PublishDialog( QWidget* parent, const char* name, setMainWidget( mWidget ); mWidget->mNameLineEdit->setEnabled( false ); mWidget->mEmailLineEdit->setEnabled( false ); - connect( mWidget->mAddressListView, SIGNAL( selectionChanged(QListViewItem *) ), - SLOT(updateInput())); - connect( mWidget->mNew, SIGNAL( clicked() ), - SLOT( addItem() ) ); - connect( mWidget->mRemove, SIGNAL( clicked() ), - SLOT( removeItem() ) ); - connect( mWidget->mSelectAddressee, SIGNAL( clicked() ), - SLOT( openAddressbook() ) ); - connect( mWidget->mNameLineEdit, SIGNAL( textChanged(const QString&) ), - SLOT( updateItem() ) ); - connect( mWidget->mEmailLineEdit, SIGNAL( textChanged(const QString&) ), - SLOT( updateItem() ) ); + connect( mWidget->mAddressListView, TQT_SIGNAL( selectionChanged(TQListViewItem *) ), + TQT_SLOT(updateInput())); + connect( mWidget->mNew, TQT_SIGNAL( clicked() ), + TQT_SLOT( addItem() ) ); + connect( mWidget->mRemove, TQT_SIGNAL( clicked() ), + TQT_SLOT( removeItem() ) ); + connect( mWidget->mSelectAddressee, TQT_SIGNAL( clicked() ), + TQT_SLOT( openAddressbook() ) ); + connect( mWidget->mNameLineEdit, TQT_SIGNAL( textChanged(const TQString&) ), + TQT_SLOT( updateItem() ) ); + connect( mWidget->mEmailLineEdit, TQT_SIGNAL( textChanged(const TQString&) ), + TQT_SLOT( updateItem() ) ); } PublishDialog::~PublishDialog() @@ -68,16 +68,16 @@ void PublishDialog::addAttendee( Attendee *attendee ) { mWidget->mNameLineEdit->setEnabled( true ); mWidget->mEmailLineEdit->setEnabled( true ); - QListViewItem *item = new QListViewItem( mWidget->mAddressListView ); + TQListViewItem *item = new TQListViewItem( mWidget->mAddressListView ); item->setText( 0, attendee->name() ); item->setText( 1, attendee->email() ); mWidget->mAddressListView->insertItem( item ); } -QString PublishDialog::addresses() +TQString PublishDialog::addresses() { - QString to = ""; - QListViewItem *item; + TQString to = ""; + TQListViewItem *item; int i, count; count = mWidget->mAddressListView->childCount(); for ( i=0; i<count; i++ ) { @@ -95,7 +95,7 @@ void PublishDialog::addItem() { mWidget->mNameLineEdit->setEnabled( true ); mWidget->mEmailLineEdit->setEnabled( true ); - QListViewItem *item = new QListViewItem( mWidget->mAddressListView ); + TQListViewItem *item = new TQListViewItem( mWidget->mAddressListView ); mWidget->mAddressListView->insertItem( item ); mWidget->mAddressListView->setSelected( item, true ); mWidget->mNameLineEdit->setText( i18n("(EmptyName)") ); @@ -104,7 +104,7 @@ void PublishDialog::addItem() void PublishDialog::removeItem() { - QListViewItem *item; + TQListViewItem *item; item = mWidget->mAddressListView->selectedItem(); if (!item) return; mWidget->mAddressListView->takeItem( item ); @@ -134,7 +134,7 @@ void PublishDialog::openAddressbook() a = addressList[i]; mWidget->mNameLineEdit->setEnabled( true ); mWidget->mEmailLineEdit->setEnabled( true ); - QListViewItem *item = new QListViewItem( mWidget->mAddressListView ); + TQListViewItem *item = new TQListViewItem( mWidget->mAddressListView ); mWidget->mAddressListView->setSelected( item, true ); mWidget->mNameLineEdit->setText( a.realName() ); mWidget->mEmailLineEdit->setText( a.preferredEmail() ); @@ -146,7 +146,7 @@ void PublishDialog::openAddressbook() void PublishDialog::updateItem() { - QListViewItem *item; + TQListViewItem *item; item = mWidget->mAddressListView->selectedItem(); if (!item) return; item->setText( 0, mWidget->mNameLineEdit->text() ); @@ -155,12 +155,12 @@ void PublishDialog::updateItem() void PublishDialog::updateInput() { - QListViewItem *item; + TQListViewItem *item; item = mWidget->mAddressListView->selectedItem(); if (!item) return; mWidget->mNameLineEdit->setEnabled( true ); mWidget->mEmailLineEdit->setEnabled( true ); - QString mail = item->text( 1 ); + TQString mail = item->text( 1 ); mWidget->mNameLineEdit->setText( item->text( 0 ) ); mWidget->mEmailLineEdit->setText( mail ); } |