diff options
Diffstat (limited to 'kpilot/kpilot/dbSelectionDialog.cc')
-rw-r--r-- | kpilot/kpilot/dbSelectionDialog.cc | 52 |
1 files changed, 26 insertions, 26 deletions
diff --git a/kpilot/kpilot/dbSelectionDialog.cc b/kpilot/kpilot/dbSelectionDialog.cc index 7a875515f..683b8a8ca 100644 --- a/kpilot/kpilot/dbSelectionDialog.cc +++ b/kpilot/kpilot/dbSelectionDialog.cc @@ -30,8 +30,8 @@ #include "options.h" -#include <qlistview.h> -#include <qpushbutton.h> +#include <tqlistview.h> +#include <tqpushbutton.h> #include <klistview.h> #include <kmessagebox.h> #include <kpushbutton.h> @@ -41,9 +41,9 @@ #include "dbSelectionDialog.moc" -KPilotDBSelectionDialog::KPilotDBSelectionDialog(QStringList &selectedDBs, QStringList &deviceDBs, - QStringList &addedDBs, QWidget *w, const char *n) : - KDialogBase(w, n, true, QString::null, KDialogBase::Ok | KDialogBase::Cancel, +KPilotDBSelectionDialog::KPilotDBSelectionDialog(TQStringList &selectedDBs, TQStringList &deviceDBs, + TQStringList &addedDBs, TQWidget *w, const char *n) : + KDialogBase(w, n, true, TQString::null, KDialogBase::Ok | KDialogBase::Cancel, KDialogBase::Ok, false), fSelectedDBs(selectedDBs), fAddedDBs(addedDBs), @@ -55,27 +55,27 @@ KPilotDBSelectionDialog::KPilotDBSelectionDialog(QStringList &selectedDBs, QStri setMainWidget(fSelectionWidget); // Fill the encodings list - QStringList items(deviceDBs); - for ( QStringList::Iterator it = fAddedDBs.begin(); it != fAddedDBs.end(); ++it ) { + TQStringList items(deviceDBs); + for ( TQStringList::Iterator it = fAddedDBs.begin(); it != fAddedDBs.end(); ++it ) { if (items.contains(*it)==0) items << (*it); } - for ( QStringList::Iterator it = fSelectedDBs.begin(); it != fSelectedDBs.end(); ++it ) { + for ( TQStringList::Iterator it = fSelectedDBs.begin(); it != fSelectedDBs.end(); ++it ) { if (items.contains(*it)==0) items << (*it); } items.sort(); - for ( QStringList::Iterator it = items.begin(); it != items.end(); ++it ) { - QCheckListItem*checkitem=new QCheckListItem(fSelectionWidget->fDatabaseList, - *it, QCheckListItem::CheckBox); + for ( TQStringList::Iterator it = items.begin(); it != items.end(); ++it ) { + TQCheckListItem*checkitem=new TQCheckListItem(fSelectionWidget->fDatabaseList, + *it, TQCheckListItem::CheckBox); if (fSelectedDBs.contains(*it)) checkitem->setOn(true); } - connect(fSelectionWidget->fNameEdit, SIGNAL(textChanged( const QString & )), - this, SLOT(slotTextChanged( const QString &))); - connect(fSelectionWidget->fAddButton, SIGNAL(clicked()), - this, SLOT(addDB())); - connect(fSelectionWidget->fRemoveButton, SIGNAL(clicked()), - this, SLOT(removeDB())); + connect(fSelectionWidget->fNameEdit, TQT_SIGNAL(textChanged( const TQString & )), + this, TQT_SLOT(slotTextChanged( const TQString &))); + connect(fSelectionWidget->fAddButton, TQT_SIGNAL(clicked()), + this, TQT_SLOT(addDB())); + connect(fSelectionWidget->fRemoveButton, TQT_SIGNAL(clicked()), + this, TQT_SLOT(removeDB())); } KPilotDBSelectionDialog::~KPilotDBSelectionDialog() @@ -86,12 +86,12 @@ KPilotDBSelectionDialog::~KPilotDBSelectionDialog() void KPilotDBSelectionDialog::addDB() { FUNCTIONSETUP; - QString dbname(fSelectionWidget->fNameEdit->text()); + TQString dbname(fSelectionWidget->fNameEdit->text()); if (!dbname.isEmpty()) { fSelectionWidget->fNameEdit->clear(); - new QCheckListItem(fSelectionWidget->fDatabaseList, dbname, - QCheckListItem::CheckBox); + new TQCheckListItem(fSelectionWidget->fDatabaseList, dbname, + TQCheckListItem::CheckBox); fAddedDBs << dbname; } } @@ -99,10 +99,10 @@ void KPilotDBSelectionDialog::addDB() void KPilotDBSelectionDialog::removeDB() { FUNCTIONSETUP; - QListViewItem*item(fSelectionWidget->fDatabaseList->selectedItem()); + TQListViewItem*item(fSelectionWidget->fDatabaseList->selectedItem()); if (item) { - QString dbname=item->text(0); + TQString dbname=item->text(0); if (fDeviceDBs.contains(dbname)) { KMessageBox::error(this, i18n("This is a database that exists on the device. It was not added manually, so it can not removed from the list."), i18n("Database on Device")); @@ -120,14 +120,14 @@ void KPilotDBSelectionDialog::removeDB() } } -QStringList KPilotDBSelectionDialog::getSelectedDBs() +TQStringList KPilotDBSelectionDialog::getSelectedDBs() { fSelectedDBs.clear(); // update the list of selected databases - QListViewItemIterator it( fSelectionWidget->fDatabaseList ); + TQListViewItemIterator it( fSelectionWidget->fDatabaseList ); while ( it.current() ) { - QCheckListItem *item = dynamic_cast<QCheckListItem*>(it.current()); + TQCheckListItem *item = dynamic_cast<TQCheckListItem*>(it.current()); ++it; if ( item && item->isOn() ) @@ -137,7 +137,7 @@ QStringList KPilotDBSelectionDialog::getSelectedDBs() return fSelectedDBs; } -void KPilotDBSelectionDialog::slotTextChanged( const QString& dbname) +void KPilotDBSelectionDialog::slotTextChanged( const TQString& dbname) { FUNCTIONSETUP; fSelectionWidget->fAddButton->setDisabled(dbname.isEmpty()); |