diff options
Diffstat (limited to 'kpf/src/ErrorMessageConfigDialog.cpp')
-rw-r--r-- | kpf/src/ErrorMessageConfigDialog.cpp | 38 |
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() ); } |