diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:48:06 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:48:06 +0000 |
commit | 47c8a359c5276062c4bc17f0e82410f29081b502 (patch) | |
tree | 2d54a5f60a5b74067632f9ef6df58c2bc38155e6 /kpf/src/ConfigDialogPage.cpp | |
parent | 6f82532777a35e0e60bbd2b290b2e93e646f349b (diff) | |
download | tdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.tar.gz tdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1157648 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kpf/src/ConfigDialogPage.cpp')
-rw-r--r-- | kpf/src/ConfigDialogPage.cpp | 100 |
1 files changed, 50 insertions, 50 deletions
diff --git a/kpf/src/ConfigDialogPage.cpp b/kpf/src/ConfigDialogPage.cpp index 395bb681..657e96f0 100644 --- a/kpf/src/ConfigDialogPage.cpp +++ b/kpf/src/ConfigDialogPage.cpp @@ -21,12 +21,12 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#include <qwhatsthis.h> -#include <qlayout.h> -#include <qspinbox.h> -#include <qlabel.h> -#include <qcheckbox.h> -#include <qlineedit.h> +#include <tqwhatsthis.h> +#include <tqlayout.h> +#include <tqspinbox.h> +#include <tqlabel.h> +#include <tqcheckbox.h> +#include <tqlineedit.h> #include <klocale.h> #include <kseparator.h> @@ -43,32 +43,32 @@ namespace KPF { - ConfigDialogPage::ConfigDialogPage(WebServer * server, QWidget * parent) - : QWidget (parent, "KPF::ConfigDialogPage"), + ConfigDialogPage::ConfigDialogPage(WebServer * server, TQWidget * parent) + : TQWidget (parent, "KPF::ConfigDialogPage"), server_ (server), errorMessageConfigDialog_ (0L) { - l_listenPort_ = new QLabel(i18n("&Listen port:"), this); - l_bandwidthLimit_ = new QLabel(i18n("&Bandwidth limit:"), this); -// l_connectionLimit_ = new QLabel(i18n("Connection &limit"), this); + l_listenPort_ = new TQLabel(i18n("&Listen port:"), this); + l_bandwidthLimit_ = new TQLabel(i18n("&Bandwidth limit:"), this); +// l_connectionLimit_ = new TQLabel(i18n("Connection &limit"), this); - sb_listenPort_ = new QSpinBox(1, 65535, 1, this); - sb_bandwidthLimit_ = new QSpinBox(1, 999999, 1, this); -// sb_connectionLimit_ = new QSpinBox(1, 9999, 1, this); + sb_listenPort_ = new TQSpinBox(1, 65535, 1, this); + sb_bandwidthLimit_ = new TQSpinBox(1, 999999, 1, this); +// sb_connectionLimit_ = new TQSpinBox(1, 9999, 1, this); - l_serverName_ = new QLabel(i18n("&Server name:"), this); - le_serverName_ = new QLineEdit(this); + l_serverName_ = new TQLabel(i18n("&Server name:"), this); + le_serverName_ = new TQLineEdit(this); bool canPublish = DNSSD::ServiceBrowser::isAvailable() == DNSSD::ServiceBrowser::Working; l_serverName_->setEnabled(canPublish); le_serverName_->setEnabled(canPublish); - cb_followSymlinks_ = new QCheckBox(i18n("&Follow symbolic links"), this); + cb_followSymlinks_ = new TQCheckBox(i18n("&Follow symbolic links"), this); // cb_customErrorMessages_ = -// new QCheckBox(i18n("Use custom error messages"), this); +// new TQCheckBox(i18n("Use custom error messages"), this); -// pb_errorMessages_ = new QPushButton(i18n("&Configure..."), this); +// pb_errorMessages_ = new TQPushButton(i18n("&Configure..."), this); // pb_errorMessages_->setEnabled(false); @@ -85,9 +85,9 @@ namespace KPF // sb_connectionLimit_ ->setValue(Config::DefaultConnectionLimit); cb_followSymlinks_ ->setChecked(Config::DefaultFollowSymlinks); - QVBoxLayout * l0 = new QVBoxLayout(this, 0, KDialog::spacingHint()); + TQVBoxLayout * l0 = new TQVBoxLayout(this, 0, KDialog::spacingHint()); - QGridLayout * l2 = new QGridLayout(l0); + TQGridLayout * l2 = new TQGridLayout(l0); l2->addWidget(l_listenPort_, 0, 0); l2->addWidget(sb_listenPort_, 0, 1); @@ -101,7 +101,7 @@ namespace KPF l0->addWidget(cb_followSymlinks_); #if 0 - QHBoxLayout * l3 = new QHBoxLayout(l0); + TQHBoxLayout * l3 = new TQHBoxLayout(l0); l3->addWidget(cb_customErrorMessages_); l3->addWidget(pb_errorMessages_); @@ -113,8 +113,8 @@ namespace KPF connect ( cb_customErrorMessages_, - SIGNAL(toggled(bool)), - SLOT(slotCustomErrorMessagesToggled(bool)) + TQT_SIGNAL(toggled(bool)), + TQT_SLOT(slotCustomErrorMessagesToggled(bool)) ); #endif @@ -122,12 +122,12 @@ namespace KPF connect ( pb_errorMessages_, - SIGNAL(clicked()), - SLOT(slotConfigureErrorMessages()) + TQT_SIGNAL(clicked()), + TQT_SLOT(slotConfigureErrorMessages()) ); #endif - QString listenPortHelp = + TQString listenPortHelp = i18n ( "<p>" @@ -136,7 +136,7 @@ namespace KPF "</p>" ); - QString bandwidthLimitHelp = + TQString bandwidthLimitHelp = i18n ( "<p>" @@ -149,7 +149,7 @@ namespace KPF "</p>" ); - QString connectionLimitHelp = + TQString connectionLimitHelp = i18n ( "<p>" @@ -158,7 +158,7 @@ namespace KPF "</p>" ); - QString followSymlinksHelp = + TQString followSymlinksHelp = i18n ( "<p>" @@ -172,7 +172,7 @@ namespace KPF "</p>" ); - QString errorMessagesHelp = + TQString errorMessagesHelp = i18n ( "<p>" @@ -182,37 +182,37 @@ namespace KPF "</p>" ); - QString serverNameHelp = KPF::HelpText::getServerNameHelp(); - QWhatsThis::add(l_listenPort_, listenPortHelp); - QWhatsThis::add(sb_listenPort_, listenPortHelp); - QWhatsThis::add(l_bandwidthLimit_, bandwidthLimitHelp); - QWhatsThis::add(sb_bandwidthLimit_, bandwidthLimitHelp); -// QWhatsThis::add(l_connectionLimit_, connectionLimitHelp); -// QWhatsThis::add(sb_connectionLimit_, connectionLimitHelp); - QWhatsThis::add(cb_followSymlinks_, followSymlinksHelp); - QWhatsThis::add(l_serverName_, serverNameHelp); - QWhatsThis::add(le_serverName_, serverNameHelp); -// QWhatsThis::add(pb_errorMessages_, errorMessagesHelp); + TQString serverNameHelp = KPF::HelpText::getServerNameHelp(); + TQWhatsThis::add(l_listenPort_, listenPortHelp); + TQWhatsThis::add(sb_listenPort_, listenPortHelp); + TQWhatsThis::add(l_bandwidthLimit_, bandwidthLimitHelp); + TQWhatsThis::add(sb_bandwidthLimit_, bandwidthLimitHelp); +// TQWhatsThis::add(l_connectionLimit_, connectionLimitHelp); +// TQWhatsThis::add(sb_connectionLimit_, connectionLimitHelp); + TQWhatsThis::add(cb_followSymlinks_, followSymlinksHelp); + TQWhatsThis::add(l_serverName_, serverNameHelp); + TQWhatsThis::add(le_serverName_, serverNameHelp); +// TQWhatsThis::add(pb_errorMessages_, errorMessagesHelp); connect ( sb_listenPort_, - SIGNAL(valueChanged(int)), - SLOT(slotListenPortChanged(int)) + TQT_SIGNAL(valueChanged(int)), + TQT_SLOT(slotListenPortChanged(int)) ); connect ( sb_bandwidthLimit_, - SIGNAL(valueChanged(int)), - SLOT(slotBandwidthLimitChanged(int)) + TQT_SIGNAL(valueChanged(int)), + TQT_SLOT(slotBandwidthLimitChanged(int)) ); connect ( cb_followSymlinks_, - SIGNAL(toggled(bool)), - SLOT(slotFollowSymlinksToggled(bool)) + TQT_SIGNAL(toggled(bool)), + TQT_SLOT(slotFollowSymlinksToggled(bool)) ); @@ -296,10 +296,10 @@ namespace KPF return; } - QPtrList<WebServer> + TQPtrList<WebServer> serverList(WebServerManager::instance()->serverListLocal()); - for (QPtrListIterator<WebServer> it(serverList); it.current(); ++it) + for (TQPtrListIterator<WebServer> it(serverList); it.current(); ++it) { if (it.current() == server_) continue; |