From 4304e8d9dab8e20513e38e71b0debdf6937b630c Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 16 Apr 2011 23:01:29 +0000 Subject: Finish TQt4 port of kpowersave This enables both Qt3 and Qt4 builds git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kpowersave@1228282 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- src/blacklisteditdialog.cpp | 54 ++++++++++++++++++++++----------------------- 1 file changed, 27 insertions(+), 27 deletions(-) (limited to 'src/blacklisteditdialog.cpp') diff --git a/src/blacklisteditdialog.cpp b/src/blacklisteditdialog.cpp index fb2ce80..02eda50 100644 --- a/src/blacklisteditdialog.cpp +++ b/src/blacklisteditdialog.cpp @@ -32,20 +32,20 @@ #include // QT headers: -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include /*! This is the default constructor of class blacklistEditDialog . */ -blacklistEditDialog::blacklistEditDialog( QStringList blacklisted, QString captionName, - bool initImport, QWidget *parent, const char *name) - :blacklistedit_Dialog(parent, name, false, WDestructiveClose ) +blacklistEditDialog::blacklistEditDialog( TQStringList blacklisted, TQString captionName, + bool initImport, TQWidget *tqparent, const char *name) + :blacklistedit_Dialog(tqparent, name, false, WDestructiveClose ) { blacklist = blacklisted; @@ -61,22 +61,22 @@ blacklistEditDialog::blacklistEditDialog( QStringList blacklisted, QString capti this->bG_scheme->setTitle(captionName); else this->bG_scheme->setTitle( i18n("Scheme: ") + captionName); - this->setIcon(SmallIcon("configure", QIconSet::Automatic)); - buttonCancel->setIconSet(SmallIconSet("cancel", QIconSet::Automatic)); - buttonOk->setIconSet(SmallIconSet("ok", QIconSet::Automatic)); - pB_add->setIconSet(SmallIconSet("forward", QIconSet::Automatic)); - pB_remove->setIconSet(SmallIconSet("back", QIconSet::Automatic)); + this->setIcon(SmallIcon("configure", TQIconSet::Automatic)); + buttonCancel->setIconSet(SmallIconSet("cancel", TQIconSet::Automatic)); + buttonOk->setIconSet(SmallIconSet("ok", TQIconSet::Automatic)); + pB_add->setIconSet(SmallIconSet("forward", TQIconSet::Automatic)); + pB_remove->setIconSet(SmallIconSet("back", TQIconSet::Automatic)); } /*! This is the default destructor of class blacklistEditDialog . */ blacklistEditDialog::~blacklistEditDialog() { - // no need to delete child widgets, Qt does it all for us + // no need to delete child widgets, TQt does it all for us } /*! - * SLOT: called if the 'ok' button clicked. This SLOT emit + * SLOT: called if the 'ok' button clicked. This TQT_SLOT emit * \ref config_finished() and close the dialog. */ void blacklistEditDialog::buttonOk_released() { @@ -90,7 +90,7 @@ void blacklistEditDialog::buttonOk_released() { /*! - * SLOT: called if the 'cancel' button clicked. This SLOT close + * SLOT: called if the 'cancel' button clicked. This TQT_SLOT close * the dialog. */ void blacklistEditDialog::buttonCancel_released(){ @@ -100,8 +100,8 @@ void blacklistEditDialog::buttonCancel_released(){ /*! - * SLOT: called if the 'remove' button clicked. The SLOT try to remove - * the selected item from the QListBox and the QStringList \ref blacklist . + * SLOT: called if the 'remove' button clicked. The TQT_SLOT try to remove + * the selected item from the TQListBox and the TQStringList \ref blacklist . */ void blacklistEditDialog::pB_remove_released(){ @@ -120,16 +120,16 @@ void blacklistEditDialog::pB_remove_released(){ /*! - * SLOT: called if the 'add' button clicked. The SLOT try to add the string from - * the QLineEdit lE_blacklist to the QListBox and the QStringList \ref blacklist . + * SLOT: called if the 'add' button clicked. The TQT_SLOT try to add the string from + * the TQLineEdit lE_blacklist to the TQListBox and the TQStringList \ref blacklist . */ void blacklistEditDialog::pB_add_released(){ - QString text = lE_blacklist->text(); + TQString text = lE_blacklist->text(); // remove the whitespaces and check if text is empty if(text.stripWhiteSpace() != "") { // check if the entry is already present - if(!lB_blacklist->findItem(text, Qt::ExactMatch)) { + if(!lB_blacklist->tqfindItem(text, TQt::ExactMatch)) { lB_blacklist->insertItem(text); lB_blacklist->sort(); blacklist.append(text); @@ -151,7 +151,7 @@ void blacklistEditDialog::pB_add_released(){ /*! - * SLOT: called if a item in the QListBox lB_blacklist is selected. + * SLOT: called if a item in the TQListBox lB_blacklist is selected. * Here we enable the remove button pB_remove . */ void blacklistEditDialog::lB_blacklist_currentChanged(){ -- cgit v1.2.3