summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-19 11:39:35 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-19 11:39:35 -0600
commitb6d3b22ce8f0b50f77a9f9f2cbf91bef3da6c717 (patch)
tree8170614e2a0bb0348cfce1e75d4ead379b69a68c
parente65d401151bf81fa3590435a3eed3edcd995fa89 (diff)
downloadksystemlog-b6d3b22c.tar.gz
ksystemlog-b6d3b22c.zip
Remove additional unneeded tq method conversions
-rw-r--r--ksystemlog/src/defaultReader.cpp8
-rw-r--r--ksystemlog/src/detailDialog.cpp8
-rw-r--r--ksystemlog/src/fileList.cpp6
-rw-r--r--ksystemlog/src/itemFactory.cpp14
-rw-r--r--ksystemlog/src/ksystemlog.cpp2
-rw-r--r--ksystemlog/src/loadingDialog.cpp16
-rw-r--r--ksystemlog/src/logLine.cpp2
-rw-r--r--ksystemlog/src/logLineFilter.cpp6
-rw-r--r--ksystemlog/src/logLineTree.cpp6
-rw-r--r--ksystemlog/src/logListItem.cpp2
-rw-r--r--ksystemlog/src/logManager.cpp6
-rw-r--r--ksystemlog/src/parentLogLine.cpp6
-rw-r--r--ksystemlog/src/parentLogLine.h2
-rw-r--r--ksystemlog/src/parsingHelper.cpp8
-rw-r--r--ksystemlog/src/reader.cpp4
-rw-r--r--ksystemlog/src/readerFactory.cpp6
-rw-r--r--ksystemlog/src/xorg/xorgReader.cpp2
17 files changed, 52 insertions, 52 deletions
diff --git a/ksystemlog/src/defaultReader.cpp b/ksystemlog/src/defaultReader.cpp
index fc3da3a..011422c 100644
--- a/ksystemlog/src/defaultReader.cpp
+++ b/ksystemlog/src/defaultReader.cpp
@@ -90,7 +90,7 @@ void DefaultReader::readLog() {
}
void DefaultReader::readFile(LogFile* logFile) {
- TQString message=i18n("Opening file '%1'...").tqarg(logFile->url.path());
+ TQString message=i18n("Opening file '%1'...").arg(logFile->url.path());
emit statusbarChanged(message);
//Inform connected TQObject that we are now reading the "index" file
@@ -120,7 +120,7 @@ void DefaultReader::readFile(LogFile* logFile) {
//If there is no line
if (rawBuffer->size()==0) {
- TQString message=i18n("No log line in '%1'.").tqarg(logFile->url.path());
+ TQString message=i18n("No log line in '%1'.").arg(logFile->url.path());
emit statusbarChanged(message);
delete rawBuffer;
@@ -174,7 +174,7 @@ void DefaultReader::readFile(LogFile* logFile) {
// Close the file
this->closeFile(file);
- message=i18n("Log file '%1' loaded successfully.").tqarg(logFile->url.path());
+ message=i18n("Log file '%1' loaded successfully.").arg(logFile->url.path());
emit statusbarChanged(message);
}
@@ -268,7 +268,7 @@ void DefaultReader::logChanged(LogFile* logFile) {
this->closeFile(file);
TQString message;
- message=i18n("Log file '%1' has changed.").tqarg(logFile->url.path());
+ message=i18n("Log file '%1' has changed.").arg(logFile->url.path());
emit statusbarChanged(message);
//Emit a signal which informs connected slots that there are new lines
diff --git a/ksystemlog/src/detailDialog.cpp b/ksystemlog/src/detailDialog.cpp
index 5574071..1ba5301 100644
--- a/ksystemlog/src/detailDialog.cpp
+++ b/ksystemlog/src/detailDialog.cpp
@@ -205,10 +205,10 @@ void DetailDialog::previousItem() {
}
currentLine->setSelected(false);
- currentLine->tqrepaint();
+ currentLine->repaint();
currentLine=static_cast<LogListItem*> (currentLine->itemAbove());
currentLine->setSelected(true);
- currentLine->tqrepaint();
+ currentLine->repaint();
updateDetails();
@@ -230,10 +230,10 @@ void DetailDialog::nextItem() {
}
currentLine->setSelected(false);
- currentLine->tqrepaint();
+ currentLine->repaint();
currentLine=static_cast<LogListItem*> (currentLine->itemBelow());
currentLine->setSelected(true);
- currentLine->tqrepaint();
+ currentLine->repaint();
updateDetails();
diff --git a/ksystemlog/src/fileList.cpp b/ksystemlog/src/fileList.cpp
index fedb7c1..78223f4 100644
--- a/ksystemlog/src/fileList.cpp
+++ b/ksystemlog/src/fileList.cpp
@@ -156,21 +156,21 @@ bool FileList::isValidFile(KURL url) {
//If it is not valid
if (!url.isValid()) {
- message=i18n("'%1' is not valid.").tqarg(url.path());
+ message=i18n("'%1' is not valid.").arg(url.path());
KMessageBox::error(this, message, i18n("File selection failed"), KMessageBox::Notify);
return(false);
}
//If it is not a local file
if (!url.isLocalFile()) {
- message=i18n("'%1' is not a local file.").tqarg(url.path());
+ message=i18n("'%1' is not a local file.").arg(url.path());
KMessageBox::error(this, message, i18n("File selection failed"), KMessageBox::Notify);
return(false);
}
//If it's a directory, it's not valid
if (TQDir(url.path()).exists()) {
- message=i18n("'%1' is a folder.").tqarg(url.path());
+ message=i18n("'%1' is a folder.").arg(url.path());
KMessageBox::error(this, message, i18n("File selection failed"), KMessageBox::Notify);
return(false);
}
diff --git a/ksystemlog/src/itemFactory.cpp b/ksystemlog/src/itemFactory.cpp
index aa0e01d..f8f891f 100644
--- a/ksystemlog/src/itemFactory.cpp
+++ b/ksystemlog/src/itemFactory.cpp
@@ -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);
diff --git a/ksystemlog/src/ksystemlog.cpp b/ksystemlog/src/ksystemlog.cpp
index cf6b938..a8cc0a3 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.").tqarg(currentManager->getLastUpdate().toString(Qt::LocalDate));
+ TQString time=i18n("Last updated: %1.").arg(currentManager->getLastUpdate().toString(Qt::LocalDate));
statusBar()->changeItem(time, STATUS_BAR_LAST_MODIFICATION);
diff --git a/ksystemlog/src/loadingDialog.cpp b/ksystemlog/src/loadingDialog.cpp
index 007b8cc..3d4c48b 100644
--- a/ksystemlog/src/loadingDialog.cpp
+++ b/ksystemlog/src/loadingDialog.cpp
@@ -108,16 +108,16 @@ void LoadingDialog::setLoadingLog(const TQString& text) {
//Several tabs to load
if (tabCount>1 && currentTab>=1) {
if (firstLoading)
- setLabel(i18n("<qt>Loading <b>%1</b> [<b>%2</b>/%3 file] (<b>%4</b>/%5)...</qt>").tqarg(text).tqarg(currentFile).tqarg(fileCount).tqarg(currentTab).tqarg(tabCount));
+ setLabel(i18n("<qt>Loading <b>%1</b> [<b>%2</b>/%3 file] (<b>%4</b>/%5)...</qt>").arg(text).arg(currentFile).arg(fileCount).arg(currentTab).arg(tabCount));
else
- setLabel(i18n("<qt>Reloading <b>%1</b> [<b>%2</b>/%3 file] (<b>%4</b>/%5)...</qt>").tqarg(text).tqarg(currentFile).tqarg(fileCount).tqarg(currentTab).tqarg(tabCount));
+ setLabel(i18n("<qt>Reloading <b>%1</b> [<b>%2</b>/%3 file] (<b>%4</b>/%5)...</qt>").arg(text).arg(currentFile).arg(fileCount).arg(currentTab).arg(tabCount));
}
//Only one tab to load
else {
if (firstLoading)
- setLabel(i18n("<qt>Loading <b>%1</b> [<b>%2</b>/%3 file]...</qt>").tqarg(text).tqarg(currentFile).tqarg(fileCount));
+ setLabel(i18n("<qt>Loading <b>%1</b> [<b>%2</b>/%3 file]...</qt>").arg(text).arg(currentFile).arg(fileCount));
else
- setLabel(i18n("<qt>Reloading <b>%1</b> [<b>%2</b>/%3 file]...</qt>").tqarg(text).tqarg(currentFile).tqarg(fileCount));
+ setLabel(i18n("<qt>Reloading <b>%1</b> [<b>%2</b>/%3 file]...</qt>").arg(text).arg(currentFile).arg(fileCount));
}
}
@@ -126,16 +126,16 @@ void LoadingDialog::setLoadingLog(const TQString& text) {
//Several tabs to load
if (tabCount>1 && currentTab>=1) {
if (firstLoading)
- setLabel(i18n("<qt>Loading <b>%1</b> (<b>%2</b>/%3)...</qt>").tqarg(text).tqarg(currentTab).tqarg(tabCount));
+ setLabel(i18n("<qt>Loading <b>%1</b> (<b>%2</b>/%3)...</qt>").arg(text).arg(currentTab).arg(tabCount));
else
- setLabel(i18n("<qt>Reloading <b>%1</b> (<b>%2</b>/%3)...</qt>").tqarg(text).tqarg(currentTab).tqarg(tabCount));
+ setLabel(i18n("<qt>Reloading <b>%1</b> (<b>%2</b>/%3)...</qt>").arg(text).arg(currentTab).arg(tabCount));
}
//Only one tab to load
else {
if (firstLoading)
- setLabel(i18n("<qt>Loading <b>%1</b>...</qt>").tqarg(text));
+ setLabel(i18n("<qt>Loading <b>%1</b>...</qt>").arg(text));
else
- setLabel(i18n("<qt>Reloading <b>%1</b>...</qt>").tqarg(text));
+ setLabel(i18n("<qt>Reloading <b>%1</b>...</qt>").arg(text));
}
}
diff --git a/ksystemlog/src/logLine.cpp b/ksystemlog/src/logLine.cpp
index faaf79d..2074f0b 100644
--- a/ksystemlog/src/logLine.cpp
+++ b/ksystemlog/src/logLine.cpp
@@ -62,7 +62,7 @@ void LogLine::setRecent(bool recent) {
this->recent=recent;
if (item!=NULL) {
//TODO This is certainly the main problem of the unknown crash bug !
- //item->tqrepaint();
+ //item->repaint();
}
}
diff --git a/ksystemlog/src/logLineFilter.cpp b/ksystemlog/src/logLineFilter.cpp
index aac536b..2253493 100644
--- a/ksystemlog/src/logLineFilter.cpp
+++ b/ksystemlog/src/logLineFilter.cpp
@@ -35,7 +35,7 @@ LogLineFilter::LogLineFilter(TQWidget* parent, KListView* listView, const char*
drawFilterMessage = true;
- tqrepaint();
+ repaint();
}
@@ -61,7 +61,7 @@ void LogLineFilter::focusInEvent( TQFocusEvent *ev )
{
if ( drawFilterMessage == true ) {
drawFilterMessage = false;
- tqrepaint();
+ repaint();
}
KListViewSearchLine::focusInEvent( ev );
}
@@ -71,7 +71,7 @@ void LogLineFilter::focusOutEvent( TQFocusEvent *ev )
{
if ( text().isEmpty() ) {
drawFilterMessage = true;
- tqrepaint();
+ repaint();
}
KListViewSearchLine::focusOutEvent( ev );
}
diff --git a/ksystemlog/src/logLineTree.cpp b/ksystemlog/src/logLineTree.cpp
index 5237726..77d32a1 100644
--- a/ksystemlog/src/logLineTree.cpp
+++ b/ksystemlog/src/logLineTree.cpp
@@ -123,7 +123,7 @@ LogLine* LogLineTree::synchronizeAddedLines(View* view) {
bool LogLineTree::remove(LogLine* line) {
/**
* Parent log line actions :
- * - Only remove this line is it does not have any tqchildren left
+ * - Only remove this line is it does not have any children left
*/
if (line->isParentLogLine()==true) {
ParentLogLine* parent=(ParentLogLine*) line;
@@ -145,13 +145,13 @@ bool LogLineTree::remove(LogLine* line) {
ParentLogLine* parent=child->getParent();
parent->removeChild(child);
- //Remove parent if it does not have longer tqchildren
+ //Remove parent if it does not have longer children
if (parent->hasChildren()==false) {
parents.remove(parent);
LogLineList::remove(parent);
}
- //Remove the tqchildren
+ //Remove the children
return(LogLineList::remove(line));
}
diff --git a/ksystemlog/src/logListItem.cpp b/ksystemlog/src/logListItem.cpp
index 85767d6..17ad63d 100644
--- a/ksystemlog/src/logListItem.cpp
+++ b/ksystemlog/src/logListItem.cpp
@@ -375,7 +375,7 @@ if( fmName.width( name ) + text_x + lv->itemMargin()*2 > width ) {
// draw the number of tracks and the total length of the playlist
info += i18n("1 Track", "%n Tracks", m_trackCount);
if( m_length )
- info += TQString(" - [%2]").tqarg( MetaBundle::prettyTime( m_length ) );
+ info += TQString(" - [%2]").arg( MetaBundle::prettyTime( m_length ) );
}
pBuf.drawText( text_x, textHeight, width, fm.lineSpacing(), AlignVCenter, info);
diff --git a/ksystemlog/src/logManager.cpp b/ksystemlog/src/logManager.cpp
index e34e10a..9025f6d 100644
--- a/ksystemlog/src/logManager.cpp
+++ b/ksystemlog/src/logManager.cpp
@@ -241,7 +241,7 @@ void LogManager::slotLogUpdated(int lineCount) {
//If the user is in this log manager, he does have to see that some new log lines have appeared
if (isCurrent()==false) {
- TQString title(i18n("%1 (%2)").tqarg(logMode->name).tqarg(newLinesSinceLastSelection));
+ TQString title(i18n("%1 (%2)").arg(logMode->name).arg(newLinesSinceLastSelection));
//This signal is emitted only if the selected tab is not this one
emit changeTitle(view, title);
@@ -311,10 +311,10 @@ void LogManager::slotFileSave() {
ioDev->close();
- emit changeStatusbar(i18n("1 log line saved to '%1'.", "%n log lines saved to '%1'.", nbCopied).tqarg(filename));
+ emit changeStatusbar(i18n("1 log line saved to '%1'.", "%n log lines saved to '%1'.", nbCopied).arg(filename));
}
else {
- TQString message(i18n("Unable to save file '%1': Permission Denied.").tqarg(filename));
+ TQString message(i18n("Unable to save file '%1': Permission Denied.").arg(filename));
KMessageBox::error(main, message, i18n("Unable to save file."), KMessageBox::Notify);
}
diff --git a/ksystemlog/src/parentLogLine.cpp b/ksystemlog/src/parentLogLine.cpp
index 5976173..735dca3 100644
--- a/ksystemlog/src/parentLogLine.cpp
+++ b/ksystemlog/src/parentLogLine.cpp
@@ -51,7 +51,7 @@ LogViewColumns* ParentLogLine::getColumns() {
}
void ParentLogLine::addChild(LogLine* child) {
- tqchildren.append(child);
+ children.append(child);
}
bool ParentLogLine::isParentLogLine() {
@@ -153,10 +153,10 @@ int ParentLogLine::getGroupedColumnIndex(LogViewColumns* columns, int column) {
}
void ParentLogLine::removeChild(LogLine* child) {
- tqchildren.remove(child);
+ children.remove(child);
}
bool ParentLogLine::hasChildren() {
- return(tqchildren.count()!=0);
+ return(children.count()!=0);
}
diff --git a/ksystemlog/src/parentLogLine.h b/ksystemlog/src/parentLogLine.h
index 76b0536..87682e4 100644
--- a/ksystemlog/src/parentLogLine.h
+++ b/ksystemlog/src/parentLogLine.h
@@ -61,7 +61,7 @@ class ParentLogLine : public LogLine {
static int getGroupedColumnIndex(LogViewColumns* columns, int column);
protected:
- TQPtrList<LogLine> tqchildren;
+ TQPtrList<LogLine> children;
groupByType groupBy;
int groupByColumn;
diff --git a/ksystemlog/src/parsingHelper.cpp b/ksystemlog/src/parsingHelper.cpp
index ed15c49..fbf3103 100644
--- a/ksystemlog/src/parsingHelper.cpp
+++ b/ksystemlog/src/parsingHelper.cpp
@@ -84,18 +84,18 @@ TQString ParsingHelper::parseSize(const TQString& stringSize) {
long size=stringSize.toLong();
if (size<1024)
- return(i18n("Size format", "%1 B").tqarg(size));
+ return(i18n("Size format", "%1 B").arg(size));
else if (size<1024*1024) {
double newSize=size / 1024.;
TQString strNewSize;
strNewSize.sprintf("%0.2f", newSize);
- return(i18n("Size format", "%1 KB").tqarg(strNewSize));
+ return(i18n("Size format", "%1 KB").arg(strNewSize));
}
else {
double newSize=size / (1024.*1024.);
TQString strNewSize;
strNewSize.sprintf("%0.2f", newSize);
- return(i18n("Size format", "%1 MB").tqarg(strNewSize));
+ return(i18n("Size format", "%1 MB").arg(strNewSize));
}
}
@@ -156,7 +156,7 @@ TQString ParsingHelper::parseHTTPResponse(const TQString& response) {
//Search the response string in the map
TQMap<TQString, TQString>::Iterator it=ParsingHelper::mapHTTPResponse.find(response);
if (it!=ParsingHelper::mapHTTPResponse.end())
- return(TQString("%1 %2").tqarg(response).tqarg(*it));
+ return(TQString("%1 %2").arg(response).arg(*it));
else
return(response);
diff --git a/ksystemlog/src/reader.cpp b/ksystemlog/src/reader.cpp
index b4dec8d..58cffee 100644
--- a/ksystemlog/src/reader.cpp
+++ b/ksystemlog/src/reader.cpp
@@ -137,7 +137,7 @@ TQFile* Reader::openFile(TQString name) {
//If the file does not exist
if(! file->exists()) {
- message=i18n("The file '%1' does not exist.").tqarg(name);
+ message=i18n("The file '%1' does not exist.").arg(name);
KMessageBox::error(logManager->getView(), message, i18n("The File Does Not Exist"), KMessageBox::Notify);
emit statusbarChanged(message);
return(NULL);
@@ -146,7 +146,7 @@ TQFile* Reader::openFile(TQString name) {
//If we can open the file
if( !file->open( IO_ReadOnly ) ) {
//It could not be opened
- message=i18n("You do not have sufficient permissions to read '%1'.").tqarg(name);
+ message=i18n("You do not have sufficient permissions to read '%1'.").arg(name);
KMessageBox::error(logManager->getView(), message, i18n("Insufficient Permissions"), KMessageBox::Notify);
emit statusbarChanged(message);
return(NULL);
diff --git a/ksystemlog/src/readerFactory.cpp b/ksystemlog/src/readerFactory.cpp
index 1f6be3b..6f7eb85 100644
--- a/ksystemlog/src/readerFactory.cpp
+++ b/ksystemlog/src/readerFactory.cpp
@@ -335,7 +335,7 @@ LogFile* ReaderFactory::getGenericLogFile(TQString& file) {
KURL url(file);
if (!url.isValid()) {
- kdDebug() << i18n("URL '%1' is not valid, skipping this URL.").tqarg(url.path()) << endl;
+ kdDebug() << i18n("URL '%1' is not valid, skipping this URL.").arg(url.path()) << endl;
return(NULL);
}
@@ -367,7 +367,7 @@ LogFiles* ReaderFactory::getGenericLogFiles(TQStringList& stringList, TQValueLis
KURL url(*itString);
if (!url.isValid()) {
- kdDebug() << i18n("URL '%1' is not valid, skipping this URL.").tqarg(url.path()) << endl;
+ kdDebug() << i18n("URL '%1' is not valid, skipping this URL.").arg(url.path()) << endl;
continue;
itString++;
itInt++;
@@ -398,7 +398,7 @@ LogFiles* ReaderFactory::getNoModeLogFiles(TQStringList& stringList) {
KURL url(*it);
if (!url.isValid()) {
- kdDebug() << i18n("URL '%1' is not valid, skipping this URL.").tqarg(url.path()) << endl;
+ kdDebug() << i18n("URL '%1' is not valid, skipping this URL.").arg(url.path()) << endl;
continue;
}
diff --git a/ksystemlog/src/xorg/xorgReader.cpp b/ksystemlog/src/xorg/xorgReader.cpp
index 7bee34a..2697798 100644
--- a/ksystemlog/src/xorg/xorgReader.cpp
+++ b/ksystemlog/src/xorg/xorgReader.cpp
@@ -76,7 +76,7 @@ LogLine* XorgReader::parseMessage(TQString& string, LogFile* originalFile) {
}
TQStringList list;
- //list.append(i18n("# %1").tqarg(lineCount));
+ //list.append(i18n("# %1").arg(lineCount));
list.append(logLineType->name);
list.append(string);