summaryrefslogtreecommitdiffstats
path: root/kpf/src/PropertiesDialogPlugin.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-22 00:30:31 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-22 00:30:31 +0000
commit69cac65817d949cda2672ec4f0aa73d5e66a0ba1 (patch)
tree073fde0496ea90eb5bf5cffe66a8da43a9f55fbc /kpf/src/PropertiesDialogPlugin.cpp
parent3467e6464beac3a162839bf7078e22e3a74d73e7 (diff)
downloadtdenetwork-69cac65817d949cda2672ec4f0aa73d5e66a0ba1.tar.gz
tdenetwork-69cac65817d949cda2672ec4f0aa73d5e66a0ba1.zip
TQt4 port kdenetwork
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1237912 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kpf/src/PropertiesDialogPlugin.cpp')
-rw-r--r--kpf/src/PropertiesDialogPlugin.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/kpf/src/PropertiesDialogPlugin.cpp b/kpf/src/PropertiesDialogPlugin.cpp
index b53422ba..57f7c994 100644
--- a/kpf/src/PropertiesDialogPlugin.cpp
+++ b/kpf/src/PropertiesDialogPlugin.cpp
@@ -136,7 +136,7 @@ namespace KPF
TQLabel * l_bandwidthLimit;
// TQLabel * l_connectionLimit;
TQLabel * l_serverName;
- TQLabel * l_kpfStatus;
+ TQLabel * l_kpftqStatus;
TQSpinBox * sb_listenPort;
TQSpinBox * sb_bandwidthLimit;
@@ -273,12 +273,12 @@ namespace KPF
}
TQWidget *
- PropertiesDialogPlugin::createInitWidget(TQWidget * parent)
+ PropertiesDialogPlugin::createInitWidget(TQWidget * tqparent)
{
- TQWidget * w = new TQWidget(parent);
+ TQWidget * w = new TQWidget(tqparent);
TQLabel * about =
- new QLabel
+ new TQLabel
(
i18n
(
@@ -298,10 +298,10 @@ namespace KPF
l->addWidget(about);
- d->l_kpfStatus =
+ d->l_kpftqStatus =
new TQLabel(i18n("Applet status: <strong>not running</strong>"), w);
- l->addWidget(d->l_kpfStatus);
+ l->addWidget(d->l_kpftqStatus);
TQHBoxLayout * l2 = new TQHBoxLayout(l);
@@ -316,9 +316,9 @@ namespace KPF
}
TQWidget *
- PropertiesDialogPlugin::createConfigWidget(TQWidget * parent)
+ PropertiesDialogPlugin::createConfigWidget(TQWidget * tqparent)
{
- TQWidget * w = new TQWidget(parent);
+ TQWidget * w = new TQWidget(tqparent);
d->cb_share =
new TQCheckBox(i18n("Share this directory on the &Web"), w);
@@ -395,7 +395,7 @@ namespace KPF
" (%1)"
"</p>"
)
- .arg(TQDir::homeDirPath());
+ .tqarg(TQDir::homeDirPath());
TQString listenPortHelp =
i18n
@@ -507,11 +507,11 @@ namespace KPF
void
PropertiesDialogPlugin::slotStartKPF()
{
- d->l_kpfStatus
+ d->l_kpftqStatus
->setText(i18n("Applet status: <strong>starting...</strong>"));
kapp->dcopClient()
- ->send("kicker", "default", "addApplet(TQString)", "kpfapplet.desktop");
+ ->send("kicker", "default", "addApplet(TQString)", TQString("kpfapplet.desktop"));
TQTimer::singleShot(4 * 1000, this, TQT_SLOT(slotStartKPFFailed()));
}
@@ -519,7 +519,7 @@ namespace KPF
void
PropertiesDialogPlugin::slotStartKPFFailed()
{
- d->l_kpfStatus
+ d->l_kpftqStatus
->setText(i18n("Applet status: <strong>failed to start</strong>"));
d->pb_startKPF->setEnabled(true);
@@ -532,7 +532,7 @@ namespace KPF
{
d->kpfRunning = true;
- d->l_kpfStatus
+ d->l_kpftqStatus
->setText(i18n("Applet status: <strong>running</strong>"));
d->pb_startKPF->setEnabled(false);
@@ -554,7 +554,7 @@ namespace KPF
d->pb_startKPF->setEnabled(true);
- d->l_kpfStatus
+ d->l_kpftqStatus
->setText(i18n("Applet status: <strong>not running</strong>"));
d->stack->raiseWidget(d->initWidget);