summaryrefslogtreecommitdiffstats
path: root/kwallet/konfigurator/konfigurator.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-23 01:42:07 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-23 01:42:07 +0000
commita2277b6bc715464e83882b90c2a058139b8a6b54 (patch)
treeab09b14014f59b4d8e2ddd12226aa0b22e4dfc5d /kwallet/konfigurator/konfigurator.cpp
parentd3f79e04b34bd1f70a458b81b28fc8799498c8dc (diff)
downloadtdeutils-a2277b6bc715464e83882b90c2a058139b8a6b54.tar.gz
tdeutils-a2277b6bc715464e83882b90c2a058139b8a6b54.zip
TQt4 port kdeutils
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeutils@1238125 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kwallet/konfigurator/konfigurator.cpp')
-rw-r--r--kwallet/konfigurator/konfigurator.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/kwallet/konfigurator/konfigurator.cpp b/kwallet/konfigurator/konfigurator.cpp
index 25e5239..a9ebb68 100644
--- a/kwallet/konfigurator/konfigurator.cpp
+++ b/kwallet/konfigurator/konfigurator.cpp
@@ -40,8 +40,8 @@
typedef KGenericFactory<KWalletConfig, TQWidget> KWalletFactory;
K_EXPORT_COMPONENT_FACTORY(kcm_kwallet, KWalletFactory("kcmkwallet"))
-KWalletConfig::KWalletConfig(TQWidget *parent, const char *name, const TQStringList&)
-: KCModule(KWalletFactory::instance(), parent, name) {
+KWalletConfig::KWalletConfig(TQWidget *tqparent, const char *name, const TQStringList&)
+: KCModule(KWalletFactory::instance(), tqparent, name) {
KAboutData *about =
new KAboutData(I18N_NOOP("kcmkwallet"),
@@ -101,11 +101,11 @@ void KWalletConfig::updateWalletLists() {
_wcw->_localWallet->insertStringList(wl);
_wcw->_defaultWallet->insertStringList(wl);
- if (wl.contains(p1)) {
+ if (wl.tqcontains(p1)) {
_wcw->_localWallet->setCurrentText(p1);
}
- if (wl.contains(p2)) {
+ if (wl.tqcontains(p2)) {
_wcw->_defaultWallet->setCurrentText(p2);
}
}
@@ -116,17 +116,17 @@ TQString KWalletConfig::newWallet() {
TQString n = KInputDialog::getText(i18n("New Wallet"),
i18n("Please choose a name for the new wallet:"),
- TQString::null,
+ TQString(),
&ok,
this);
if (!ok) {
- return TQString::null;
+ return TQString();
}
KWallet::Wallet *w = KWallet::Wallet::openWallet(n);
if (!w) {
- return TQString::null;
+ return TQString();
}
delete w;
@@ -216,10 +216,10 @@ void KWalletConfig::load(bool useDefaults) {
denykeys.remove(*i);
TQListViewItem *lvi = new TQListViewItem(_wcw->_accessList, *i);
for (TQStringList::Iterator j = apps.begin(); j != apps.end(); ++j) {
- new TQListViewItem(lvi, TQString::null, *j, i18n("Always Allow"));
+ new TQListViewItem(lvi, TQString(), *j, i18n("Always Allow"));
}
for (TQStringList::Iterator j = denyapps.begin(); j != denyapps.end(); ++j) {
- new TQListViewItem(lvi, TQString::null, *j, i18n("Always Deny"));
+ new TQListViewItem(lvi, TQString(), *j, i18n("Always Deny"));
}
}
_cfg->setGroup("Auto Deny");
@@ -227,7 +227,7 @@ void KWalletConfig::load(bool useDefaults) {
TQStringList denyapps = _cfg->readListEntry(*i);
TQListViewItem *lvi = new TQListViewItem(_wcw->_accessList, *i);
for (TQStringList::Iterator j = denyapps.begin(); j != denyapps.end(); ++j) {
- new TQListViewItem(lvi, TQString::null, *j, i18n("Always Deny"));
+ new TQListViewItem(lvi, TQString(), *j, i18n("Always Deny"));
}
}
emit changed(useDefaults);
@@ -302,9 +302,9 @@ TQString KWalletConfig::quickHelp() const {
void KWalletConfig::contextMenuRequested(TQListViewItem *item, const TQPoint& pos, int col) {
Q_UNUSED(col)
- if (item && item->parent()) {
+ if (item && item->tqparent()) {
KPopupMenu *m = new KPopupMenu(this);
- m->insertTitle(item->parent()->text(0));
+ m->insertTitle(item->tqparent()->text(0));
m->insertItem(i18n("&Delete"), this, TQT_SLOT(deleteEntry()), Key_Delete);
m->popup(pos);
}