From c2637a0da6d9a1c8626ca39f8451ab3b7cda487a Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Thu, 15 Dec 2011 15:47:59 -0600 Subject: Rename a number of old tq methods that are no longer tq specific --- kdvi/dviRenderer.cpp | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'kdvi/dviRenderer.cpp') diff --git a/kdvi/dviRenderer.cpp b/kdvi/dviRenderer.cpp index acb3dceb..b42135eb 100644 --- a/kdvi/dviRenderer.cpp +++ b/kdvi/dviRenderer.cpp @@ -15,11 +15,11 @@ #include #include -#include +#include #include #include #include -#include +#include #include #include #include @@ -277,7 +277,7 @@ void dviRenderer::showThatSourceInformationIsPresent() TQLabel *label2 = new TQLabel( i18n("This DVI file contains source file information. You may click into the text with the " "middle mouse button, and an editor will open the TeX-source file immediately."), contents); - label2->setMinimumSize(label2->tqsizeHint()); + label2->setMinimumSize(label2->sizeHint()); lay->add( label2 ); lay->addStretch(1); TQSize extraSize = TQSize(50,30); @@ -437,7 +437,7 @@ bool dviRenderer::setFile(const TQString &fname, const KURL &base) if (!fi.exists() || fi.isDir()) { KMessageBox::error( parentWidget, i18n("File error. The specified file '%1' does not exist. " - "KDVI already tried to add the ending '.dvi'.").tqarg(filename), + "KDVI already tried to add the ending '.dvi'.").arg(filename), i18n("File Error!")); return false; } @@ -451,8 +451,8 @@ bool dviRenderer::setFile(const TQString &fname, const KURL &base) KMessageBox::sorry( parentWidget, i18n( "Could not open file %1 which has " "type %2. KDVI can only load DVI (.dvi) files." ) - .tqarg( fname ) - .tqarg( mimetype ) ); + .arg( fname ) + .arg( mimetype ) ); return false; } @@ -462,7 +462,7 @@ bool dviRenderer::setFile(const TQString &fname, const KURL &base) KMessageBox::sorry( parentWidget, i18n("File corruption! KDVI had trouble interpreting your DVI file. Most " "likely this means that the DVI file is broken.") - .tqarg( fname ) ); + .arg( fname ) ); return false; } @@ -641,7 +641,7 @@ Anchor dviRenderer::parseReference(const TQString &reference) "line %1 in the TeX-file %2. It seems, however, that the DVI file " "does not contain the necessary source file information. " "We refer to the manual of KDVI for a detailed explanation on how to include this " - "information. Press the F1 key to open the manual.").tqarg(refLineNumber).tqarg(refFileName), + "information. Press the F1 key to open the manual.").arg(refLineNumber).arg(refFileName), i18n("Could Not Find Reference")); mutex.unlock(); return Anchor(); @@ -681,7 +681,7 @@ Anchor dviRenderer::parseReference(const TQString &reference) } else if (anchorForRefFileFound == false) KMessageBox::sorry(parentWidget, i18n("KDVI was not able to locate the place in the DVI file which corresponds to " - "line %1 in the TeX-file %2.").tqarg(refLineNumber).tqarg(refFileName), + "line %1 in the TeX-file %2.").arg(refLineNumber).arg(refFileName), i18n( "Could Not Find Reference" )); else { mutex.unlock(); @@ -735,7 +735,7 @@ void dviRenderer::handleSRCLink(const TQString &linkText, TQMouseEvent *e, Docum { KMessageBox::sorry(parentWidget, TQString("") + i18n("The DVI-file refers to the TeX-file " - "%1 which could not be found.").tqarg(KShellProcess::quote(TeXfile)) + + "%1 which could not be found.").arg(KShellProcess::quote(TeXfile)) + TQString(""), i18n( "Could Not Find File" )); return; @@ -786,7 +786,7 @@ void dviRenderer::handleSRCLink(const TQString &linkText, TQMouseEvent *e, Docum "for inverse search, reported an error. You might wish to look at the document info " "dialog which you will find in the File-Menu for a precise error report. The " "manual for KDVI contains a detailed explanation how to set up your editor for use with KDVI, " - "and a list of common problems.").tqarg(command); + "and a list of common problems.").arg(command); info->clear(i18n("Starting the editor...")); -- cgit v1.2.3