Replace Qt with TQt

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/8/head
Michele Calgaro 7 months ago
parent 153e774502
commit 641c965c3c
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -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()));

@ -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());

Loading…
Cancel
Save