|
|
|
@ -107,7 +107,7 @@ LogListItem* ItemFactory::createParentItem(TQListView* view, ParentLogLine* line
|
|
|
|
|
}
|
|
|
|
|
//Group by Hour
|
|
|
|
|
else if (line->getGroupBy()==GROUP_BY_HOUR) {
|
|
|
|
|
TQString string(i18n("%1, %2h").tqarg(line->getTime().date().toString(), line->getTime().time().toString("h")));
|
|
|
|
|
TQString string(i18n("%1, %2h").arg(line->getTime().date().toString(), line->getTime().time().toString("h")));
|
|
|
|
|
|
|
|
|
|
item->setText(0, string);
|
|
|
|
|
item->setPixmap(0, SmallIcon(GROUP_BY_HOUR_ICON));
|
|
|
|
@ -271,17 +271,17 @@ TQString ItemFactory::createParentFormattedText(LogLine* line) {
|
|
|
|
|
|
|
|
|
|
//All Group By cases are showed here
|
|
|
|
|
if (parent->getGroupBy()==GROUP_BY_LOG_LEVEL) {
|
|
|
|
|
result.append(i18n("<div align='center'><b>Group:</b> %1</div>").tqarg(line->getLogLevel()->name));
|
|
|
|
|
result.append(i18n("<div align='center'><b>Group:</b> %1</div>").arg(line->getLogLevel()->name));
|
|
|
|
|
}
|
|
|
|
|
else if (parent->getGroupBy()==GROUP_BY_DAY) {
|
|
|
|
|
result.append(i18n("<div align='center'><b>Group:</b> %1</div>").tqarg(line->getTime().date().toString()));
|
|
|
|
|
result.append(i18n("<div align='center'><b>Group:</b> %1</div>").arg(line->getTime().date().toString()));
|
|
|
|
|
}
|
|
|
|
|
else if (parent->getGroupBy()==GROUP_BY_HOUR) {
|
|
|
|
|
TQString string(i18n("%1, %2 hour").tqarg(line->getTime().date().toString(), line->getTime().time().toString("h")));
|
|
|
|
|
result.append(i18n("<div align='center'><b>Group:</b> %1</div>").tqarg(string));
|
|
|
|
|
TQString string(i18n("%1, %2 hour").arg(line->getTime().date().toString(), line->getTime().time().toString("h")));
|
|
|
|
|
result.append(i18n("<div align='center'><b>Group:</b> %1</div>").arg(string));
|
|
|
|
|
}
|
|
|
|
|
else if (parent->getGroupBy()==GROUP_BY_LOG_FILE) {
|
|
|
|
|
result.append(i18n("<div align='center'><b>Group:</b> %1</div>").tqarg(line->getOriginalFile()));
|
|
|
|
|
result.append(i18n("<div align='center'><b>Group:</b> %1</div>").arg(line->getOriginalFile()));
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
TQStringList& list=line->getItemList();
|
|
|
|
@ -289,7 +289,7 @@ TQString ItemFactory::createParentFormattedText(LogLine* line) {
|
|
|
|
|
if (index<0 || index>=(int) list.size())
|
|
|
|
|
result.append(i18n("<div align='center'><b>Group:</b> none</div>"));
|
|
|
|
|
else
|
|
|
|
|
result.append(i18n("<div align='center'><b>Group:</b> %1</div>").tqarg(list[index]));
|
|
|
|
|
result.append(i18n("<div align='center'><b>Group:</b> %1</div>").arg(list[index]));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return(result);
|
|
|
|
|