diff options
author | Michele Calgaro <[email protected]> | 2023-11-05 15:23:53 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2023-11-05 15:23:53 +0900 |
commit | 641c965c3c7d88e402efeec3d735a7d608f5951c (patch) | |
tree | 84a6e08e3ede306ade6d382dcb4a596ace62e29f | |
parent | 153e7745023ae695c4319473e27710b70e9fab48 (diff) | |
download | ksystemlog-641c965c3c7d88e402efeec3d735a7d608f5951c.tar.gz ksystemlog-641c965c3c7d88e402efeec3d735a7d608f5951c.zip |
Replace Qt with TQt
Signed-off-by: Michele Calgaro <[email protected]>
-rw-r--r-- | ksystemlog/src/itemFactory.cpp | 20 | ||||
-rw-r--r-- | ksystemlog/src/ksystemlog.cpp | 4 |
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()); |