summaryrefslogtreecommitdiffstats
path: root/kpf/src/ErrorMessageConfigDialog.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:48:06 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:48:06 +0000
commit47c8a359c5276062c4bc17f0e82410f29081b502 (patch)
tree2d54a5f60a5b74067632f9ef6df58c2bc38155e6 /kpf/src/ErrorMessageConfigDialog.cpp
parent6f82532777a35e0e60bbd2b290b2e93e646f349b (diff)
downloadtdenetwork-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/ErrorMessageConfigDialog.cpp')
-rw-r--r--kpf/src/ErrorMessageConfigDialog.cpp38
1 files changed, 19 insertions, 19 deletions
diff --git a/kpf/src/ErrorMessageConfigDialog.cpp b/kpf/src/ErrorMessageConfigDialog.cpp
index 2f7cb43a..0a2833c6 100644
--- a/kpf/src/ErrorMessageConfigDialog.cpp
+++ b/kpf/src/ErrorMessageConfigDialog.cpp
@@ -24,9 +24,9 @@
#include "ErrorMessageConfigDialog.h"
#include "ErrorMessageConfigDialog.moc"
-#include <qlabel.h>
-#include <qframe.h>
-#include <qlayout.h>
+#include <tqlabel.h>
+#include <tqframe.h>
+#include <tqlayout.h>
#include <kurlrequester.h>
#include <kconfig.h>
@@ -42,7 +42,7 @@ namespace KPF
ErrorMessageConfigDialog::ErrorMessageConfigDialog
(
WebServer * webServer,
- QWidget * parent
+ TQWidget * parent
)
: KDialogBase
(
@@ -56,16 +56,16 @@ namespace KPF
),
server_(webServer)
{
- QValueList<uint> codeList;
+ TQValueList<uint> codeList;
codeList << 400 << 403 << 404 << 412 << 416 << 500 << 501;
- QFrame * w = makeMainWidget();
+ TQFrame * w = makeMainWidget();
- QVBoxLayout * layout =
- new QVBoxLayout(w, KDialog::marginHint(), KDialog::spacingHint());
+ TQVBoxLayout * layout =
+ new TQVBoxLayout(w, KDialog::marginHint(), KDialog::spacingHint());
- QLabel * info =
+ TQLabel * info =
new QLabel
(
i18n
@@ -86,28 +86,28 @@ namespace KPF
layout->addWidget(info);
- QGridLayout * grid = new QGridLayout(layout, codeList.count(), 2);
+ TQGridLayout * grid = new TQGridLayout(layout, codeList.count(), 2);
- QString pattern(i18n("%1 %2"));
+ TQString pattern(i18n("%1 %2"));
KConfig config(Config::name());
config.setGroup("ErrorMessageOverrideFiles");
- QValueList<uint>::ConstIterator it;
+ TQValueList<uint>::ConstIterator it;
for (it = codeList.begin(); it != codeList.end(); ++it)
{
- QString originalPath =
- config.readPathEntry(QString::number(*it));
+ TQString originalPath =
+ config.readPathEntry(TQString::number(*it));
- QString responseName(translatedResponseName(*it));
+ TQString responseName(translatedResponseName(*it));
KURLRequester * requester = new KURLRequester(originalPath, w);
itemList_.append(new Item(*it, requester, responseName, originalPath));
- QLabel * l = new QLabel(pattern.arg(*it).arg(responseName), w);
+ TQLabel * l = new TQLabel(pattern.arg(*it).arg(responseName), w);
l->setBuddy(requester);
@@ -123,7 +123,7 @@ namespace KPF
}
void
- ErrorMessageConfigDialog::slotURLRequesterTextChanged(const QString &)
+ ErrorMessageConfigDialog::slotURLRequesterTextChanged(const TQString &)
{
}
@@ -134,13 +134,13 @@ namespace KPF
config.setGroup("ErrorMessageOverrideFiles");
- QPtrListIterator<Item> it(itemList_);
+ TQPtrListIterator<Item> it(itemList_);
for (; it.current(); ++it)
{
config.writePathEntry
(
- QString::number(it.current()->code),
+ TQString::number(it.current()->code),
it.current()->urlRequester->url()
);
}