diff options
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 ); } |