From 2b0e1de2ffcca7bb93f1fd8ddd32f74041d0d076 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Thu, 15 Dec 2011 15:51:43 -0600 Subject: Rename a number of old tq methods that are no longer tq specific --- quanta/messages/annotationoutput.cpp | 8 ++++---- quanta/messages/messageoutput.cpp | 10 +++++----- 2 files changed, 9 insertions(+), 9 deletions(-) (limited to 'quanta/messages') diff --git a/quanta/messages/annotationoutput.cpp b/quanta/messages/annotationoutput.cpp index 543fe734..1d97652e 100644 --- a/quanta/messages/annotationoutput.cpp +++ b/quanta/messages/annotationoutput.cpp @@ -17,7 +17,7 @@ #include #include #include -#include +#include #include #include @@ -84,7 +84,7 @@ void AnnotationOutput::tabChanged(TQWidget *w) void AnnotationOutput::insertAnnotation(uint line, const TQString& fileName, const TQPair& annotation) { line++; - TQString s = i18n("Line %1: %2").tqarg(line).tqarg(annotation.first); + TQString s = i18n("Line %1: %2").arg(line).arg(annotation.first); s.replace('\n', ' '); m_currentFileAnnotations->showMessage(line, 1, fileName, s); } @@ -155,7 +155,7 @@ void AnnotationOutput::readAnnotations() TQString text = el.attribute("text"); TQString receiver = el.attribute("receiver"); text.replace('\n',' '); - TQString lineText = TQString("%1").tqarg(line); + TQString lineText = TQString("%1").arg(line); if (lineText.length() < 20) { TQString s; @@ -198,7 +198,7 @@ void AnnotationOutput::readAnnotations() } if (m_yourAnnotationsNum > 0) { - setTabLabel(m_yourAnnotations, i18n("For You: %1").tqarg(m_yourAnnotationsNum)); + setTabLabel(m_yourAnnotations, i18n("For You: %1").arg(m_yourAnnotationsNum)); } else { setTabLabel(m_yourAnnotations, i18n("For You")); diff --git a/quanta/messages/messageoutput.cpp b/quanta/messages/messageoutput.cpp index 94bfecfb..ef9e2058 100644 --- a/quanta/messages/messageoutput.cpp +++ b/quanta/messages/messageoutput.cpp @@ -25,9 +25,9 @@ #include // TQt includes -#include +#include #include -#include +#include #include "messageoutput.h" #include "messageitem.h" @@ -146,7 +146,7 @@ TQString MessageOutput::content() void MessageOutput::copyContent() { - kapp->tqclipboard()->setText(content(), TQClipboard::Clipboard); + kapp->clipboard()->setText(content(), TQClipboard::Clipboard); } void MessageOutput::saveContent() @@ -159,13 +159,13 @@ void MessageOutput::saveContent() TQFileInfo fileinfo(url.path()); if (fileinfo.exists() && KMessageBox::warningContinueCancel(0, i18n("File
%1
already exists. Overwrite it?
") - .tqarg(url.path()), TQString(), i18n("Overwrite")) == KMessageBox::Cancel) + .arg(url.path()), TQString(), i18n("Overwrite")) == KMessageBox::Cancel) return; TQFile file(url.path()); if (!file.open(IO_WriteOnly)) { KMessageBox::error(0, i18n("Cannot save log file
%1
") - .tqarg(url.url())); + .arg(url.url())); return; } -- cgit v1.2.1