summaryrefslogtreecommitdiffstats
path: root/src/blacklisteditdialog.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-04-16 23:01:29 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-04-16 23:01:29 +0000
commit4304e8d9dab8e20513e38e71b0debdf6937b630c (patch)
tree76a86f013a811449a5b5bfbbbb962e7db0bbcc6a /src/blacklisteditdialog.cpp
parentba24506b3bb46312d998468ad3c1a7f28058b2bd (diff)
downloadkpowersave-4304e8d9dab8e20513e38e71b0debdf6937b630c.tar.gz
kpowersave-4304e8d9dab8e20513e38e71b0debdf6937b630c.zip
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
Diffstat (limited to 'src/blacklisteditdialog.cpp')
-rw-r--r--src/blacklisteditdialog.cpp54
1 files changed, 27 insertions, 27 deletions
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 <kiconloader.h>
// QT headers:
-#include <qbuttongroup.h>
-#include <qdialog.h>
-#include <qlabel.h>
-#include <qlineedit.h>
-#include <qlistbox.h>
-#include <qpushbutton.h>
-#include <qstring.h>
-#include <qstringlist.h>
-#include <qtooltip.h>
+#include <tqbuttongroup.h>
+#include <tqdialog.h>
+#include <tqlabel.h>
+#include <tqlineedit.h>
+#include <tqlistbox.h>
+#include <tqpushbutton.h>
+#include <tqstring.h>
+#include <tqstringlist.h>
+#include <tqtooltip.h>
/*! 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(){