summaryrefslogtreecommitdiffstats
path: root/kppp/logview/export.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kppp/logview/export.cpp')
-rw-r--r--kppp/logview/export.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/kppp/logview/export.cpp b/kppp/logview/export.cpp
index b646acdc..ae665ec5 100644
--- a/kppp/logview/export.cpp
+++ b/kppp/logview/export.cpp
@@ -23,7 +23,7 @@
#include "export.h"
#include <tqpushbutton.h>
-#include <tqtextcodec.h>
+#include <textcodec.h>
class Export;
@@ -73,7 +73,7 @@ ExportWizard::ExportWizard(TQWidget *parent, const TQString &_date)
formatLayout->addSpacing(10);
typeInfo = new TQLabel(formatPage);
- typeInfo->tqsetAlignment(TQt::AlignTop | TQt::WordBreak);
+ typeInfo->setAlignment(TQt::AlignTop | TQt::WordBreak);
typeInfo->setText(i18n("<qt><b>Please choose the output format on the left side.</b></qt>"));
typeInfo->setMinimumSize(350, 200);
formatLayout->addWidget(typeInfo);
@@ -219,12 +219,12 @@ void CSVExport::setFinishCode() {
/***** HTMLExport *****/
HTMLExport::HTMLExport(const TQString &filename, const TQString &date)
: Export(filename) {
- TQString title = i18n("Connection log for %1").tqarg(date);
+ TQString title = i18n("Connection log for %1").arg(date);
buffer = "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n";
buffer.append("<html>\n<head>\n <title>"+title+"</title>\n");
- buffer.append(TQString::tqfromLatin1(" <meta http-equiv=\"Content-Type\" content=\"text/html; charset=")
+ buffer.append(TQString::fromLatin1(" <meta http-equiv=\"Content-Type\" content=\"text/html; charset=")
+ TQTextCodec::codecForLocale()->mimeName() +
- TQString::tqfromLatin1("\">"));
+ TQString::fromLatin1("\">"));
buffer.append("\n</head>\n<body>\n<h1>"+title+"</h1>\n\n");
buffer.append("<table width=\"100%\" border=\"1\">\n");