summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-11-05 15:23:53 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-11-05 21:41:17 +0900
commit6200356ba9d4d8c970e7807fc061284b1d461690 (patch)
treebacacc0cb34a1079998e900e0cfaef93d3b3e607
parent530cbd9ff239bb2241e7d412d717866e7545412b (diff)
downloadksystemlog-6200356b.tar.gz
ksystemlog-6200356b.zip
Replace Qt with TQt
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit 641c965c3c7d88e402efeec3d735a7d608f5951c)
-rw-r--r--ksystemlog/src/itemFactory.cpp20
-rw-r--r--ksystemlog/src/ksystemlog.cpp4
2 files changed, 12 insertions, 12 deletions
diff --git a/ksystemlog/src/itemFactory.cpp b/ksystemlog/src/itemFactory.cpp
index 4981b59..e4c6043 100644
--- a/ksystemlog/src/itemFactory.cpp
+++ b/ksystemlog/src/itemFactory.cpp
@@ -187,7 +187,7 @@ void ItemFactory::initItem(LogListItem* item) {
void ItemFactory::initDefaultItem(LogListItem* item) {
LogLine* line=item->getLogLine();
- item->setText(0, line->getTime().toString(Qt::LocalDate));
+ item->setText(0, line->getTime().toString(TQt::LocalDate));
int i=1;
TQStringList& labels=line->getItemList();
@@ -302,7 +302,7 @@ TQString ItemFactory::createCronFormattedText(LogLine* line) {
result.append("<table>");
- result.append(labelMessageFormat(i18n("Date:"), line->getTime().toString(Qt::LocalDate)));
+ result.append(labelMessageFormat(i18n("Date:"), line->getTime().toString(TQt::LocalDate)));
result.append(labelMessageFormat(i18n("Hostname:"), items[0]));
result.append(labelMessageFormat(i18n("Process:"), items[1]));
result.append(labelMessageFormat(i18n("User:"), items[2]));
@@ -321,7 +321,7 @@ TQString ItemFactory::createDefaultFormattedText(LogLine* line) {
result.append("<table>");
- result.append(labelMessageFormat(i18n("Date:"), line->getTime().toString(Qt::LocalDate)));
+ result.append(labelMessageFormat(i18n("Date:"), line->getTime().toString(TQt::LocalDate)));
result.append(labelMessageFormat(i18n("Hostname:"), items[0]));
result.append(labelMessageFormat(i18n("Process:"), items[1]));
result.append(labelMessageFormat(i18n("Level:"), line->getLogLevel()->name));
@@ -339,7 +339,7 @@ TQString ItemFactory::createAcpidFormattedText(LogLine* line) {
result.append("<table>");
- result.append(labelMessageFormat(i18n("Date:"), line->getTime().toString(Qt::LocalDate)));
+ result.append(labelMessageFormat(i18n("Date:"), line->getTime().toString(TQt::LocalDate)));
result.append(labelMessageFormat(i18n("Level:"), line->getLogLevel()->name));
result.append(labelMessageFormat(i18n("Type:"), items[0]));
@@ -353,7 +353,7 @@ TQString ItemFactory::createCupsFormattedText(LogLine* line) {
result.append("<table>");
- result.append(labelMessageFormat(i18n("Date:"), line->getTime().toString(Qt::LocalDate)));
+ result.append(labelMessageFormat(i18n("Date:"), line->getTime().toString(TQt::LocalDate)));
result.append(labelMessageFormat(i18n("Level:"), line->getLogLevel()->name));
result.append("</table>");
@@ -368,7 +368,7 @@ TQString ItemFactory::createCupsAccessFormattedText(LogLine* line) {
result.append("<table>");
- result.append(labelMessageFormat(i18n("Date:"), line->getTime().toString(Qt::LocalDate)));
+ result.append(labelMessageFormat(i18n("Date:"), line->getTime().toString(TQt::LocalDate)));
result.append(labelMessageFormat(i18n("Level:"), line->getLogLevel()->name));
result.append(labelMessageFormat(i18n("Hostname:"), items[0]));
result.append(labelMessageFormat(i18n("Identification:"), items[1]));
@@ -389,7 +389,7 @@ TQString ItemFactory::createApacheFormattedText(LogLine* line) {
result.append("<table>");
- result.append(labelMessageFormat(i18n("Date:"), line->getTime().toString(Qt::LocalDate)));
+ result.append(labelMessageFormat(i18n("Date:"), line->getTime().toString(TQt::LocalDate)));
result.append(labelMessageFormat(i18n("Level:"), line->getLogLevel()->name));
result.append(labelMessageFormat(i18n("Client:"), items[0]));
@@ -405,7 +405,7 @@ TQString ItemFactory::createApacheAccessFormattedText(LogLine* line) {
result.append("<table>");
- result.append(labelMessageFormat(i18n("Date:"), line->getTime().toString(Qt::LocalDate)));
+ result.append(labelMessageFormat(i18n("Date:"), line->getTime().toString(TQt::LocalDate)));
result.append(labelMessageFormat(i18n("Level:"), line->getLogLevel()->name));
result.append(labelMessageFormat(i18n("Hostname:"), items[0]));
result.append(labelMessageFormat(i18n("Identification:"), items[1]));
@@ -428,7 +428,7 @@ TQString ItemFactory::createSambaFormattedText(LogLine* line) {
result.append("<table>");
- result.append(labelMessageFormat(i18n("Date:"), line->getTime().toString(Qt::LocalDate)));
+ result.append(labelMessageFormat(i18n("Date:"), line->getTime().toString(TQt::LocalDate)));
result.append(labelMessageFormat(i18n("Level:"), line->getLogLevel()->name));
result.append(labelMessageFormat(i18n("Source File:"), items[0]));
result.append(labelMessageFormat(i18n("Function:"), items[1]));
@@ -450,7 +450,7 @@ TQString ItemFactory::createDefaultToolTipText(LogLine* line) {
result.append("<table>");
- result.append(labelMessageFormat(i18n("Date:"), line->getTime().toString(Qt::LocalDate)));
+ result.append(labelMessageFormat(i18n("Date:"), line->getTime().toString(TQt::LocalDate)));
result.append(labelMessageFormat(i18n("Level:"), line->getLogLevel()->name));
result.append(labelMessageFormat(i18n("Original file:"), line->getOriginalFile()));
diff --git a/ksystemlog/src/ksystemlog.cpp b/ksystemlog/src/ksystemlog.cpp
index d0f2b47..4e5a54d 100644
--- a/ksystemlog/src/ksystemlog.cpp
+++ b/ksystemlog/src/ksystemlog.cpp
@@ -870,7 +870,7 @@ void KSystemLog::updateStatusBar() {
statusBar()->changeItem(lineCount, STATUS_BAR_LINE_COUNT);
- TQString time=i18n("Last updated: %1.").arg(currentManager->getLastUpdate().toString(Qt::LocalDate));
+ TQString time=i18n("Last updated: %1.").arg(currentManager->getLastUpdate().toString(TQt::LocalDate));
statusBar()->changeItem(time, STATUS_BAR_LAST_MODIFICATION);
@@ -949,7 +949,7 @@ void KSystemLog::logActionClicked(const TQObject* sender, TDEAction::ActivationR
//TODO Be sure that the + is the right symbol to combine TQt Constants
//If the user uses the middle button OR left button + shift OR left button + control : = it opens the log in a new tab
- if (state==Qt::MidButton || (state==TQt::ControlButton+Qt::LeftButton) || (state==TQt::ShiftButton+Qt::LeftButton))
+ if (state==TQt::MidButton || (state==TQt::ControlButton+TQt::LeftButton) || (state==TQt::ShiftButton+TQt::LeftButton))
newTab();
this->load(mode, activeLogManager());