From 69cac65817d949cda2672ec4f0aa73d5e66a0ba1 Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 22 Jun 2011 00:30:31 +0000 Subject: 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 --- kpf/src/PropertiesDialogPlugin.cpp | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'kpf/src/PropertiesDialogPlugin.cpp') 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: not running"), 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)" "

" ) - .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: starting...")); 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: failed to start")); d->pb_startKPF->setEnabled(true); @@ -532,7 +532,7 @@ namespace KPF { d->kpfRunning = true; - d->l_kpfStatus + d->l_kpftqStatus ->setText(i18n("Applet status: running")); 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: not running")); d->stack->raiseWidget(d->initWidget); -- cgit v1.2.1