diff options
| author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-19 11:39:40 -0600 |
|---|---|---|
| committer | Slávek Banko <slavek.banko@axis.cz> | 2012-08-01 04:34:45 +0200 |
| commit | 91ef45e89ef1bb0994d49220556e514d608a664c (patch) | |
| tree | 98e17373a0765a7610021cb90e8668a6eb8ab7fc /src/docmanager.cpp | |
| parent | e72829f3fa8d309ba0c3f64034c14ce5eecd8590 (diff) | |
| download | ktechlab-91ef45e89ef1bb0994d49220556e514d608a664c.tar.gz ktechlab-91ef45e89ef1bb0994d49220556e514d608a664c.zip | |
Remove additional unneeded tq method conversions
(cherry picked from commit 1fc61c6e1d0a2b34f7b1d0de181bb4e6f954a8c2)
Diffstat (limited to 'src/docmanager.cpp')
| -rw-r--r-- | src/docmanager.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/docmanager.cpp b/src/docmanager.cpp index 35b1c5a..7112a6e 100644 --- a/src/docmanager.cpp +++ b/src/docmanager.cpp @@ -99,7 +99,7 @@ Document* DocManager::openURL( const KURL &url, ViewArea *viewArea ) TQFile file(url.path()); if ( file.open(IO_ReadOnly) == false ) { - KMessageBox::sorry( 0l, i18n("Could not open '%1'").tqarg( url.prettyURL() ) ); + KMessageBox::sorry( 0l, i18n("Could not open '%1'").arg( url.prettyURL() ) ); return 0l; } file.close(); @@ -166,7 +166,7 @@ TQString DocManager::untitledName( int type ) case Document::dt_circuit: { if ( m_countCircuit>1 ) - name = i18n("Untitled (Circuit %1)").tqarg(TQString::number(m_countCircuit)); + name = i18n("Untitled (Circuit %1)").arg(TQString::number(m_countCircuit)); else name = i18n("Untitled (Circuit)"); m_countCircuit++; @@ -175,7 +175,7 @@ TQString DocManager::untitledName( int type ) case Document::dt_flowcode: { if ( m_countFlowCode>1 ) - name = i18n("Untitled (FlowCode %1)").tqarg(TQString::number(m_countFlowCode)); + name = i18n("Untitled (FlowCode %1)").arg(TQString::number(m_countFlowCode)); else name = i18n("Untitled (FlowCode)"); m_countFlowCode++; @@ -184,7 +184,7 @@ TQString DocManager::untitledName( int type ) case Document::dt_mechanics: { if ( m_countMechanics>1 ) - name = i18n("Untitled (Mechanics %1)").tqarg(TQString::number(m_countMechanics)); + name = i18n("Untitled (Mechanics %1)").arg(TQString::number(m_countMechanics)); else name = i18n("Untitled (Mechanics)"); m_countMechanics++; @@ -193,7 +193,7 @@ TQString DocManager::untitledName( int type ) default: { if ( m_countOther>1 ) - name = i18n("Untitled (%1)").tqarg(TQString::number(m_countOther)); + name = i18n("Untitled (%1)").arg(TQString::number(m_countOther)); else name = i18n("Untitled"); m_countOther++; @@ -431,7 +431,7 @@ CircuitDocument *DocManager::openCircuitFile( const KURL &url, ViewArea *viewAre if ( !document->openURL(url) ) { - KMessageBox::sorry( 0l, i18n("Could not open Circuit file \"%1\"").tqarg(url.prettyURL()) ); + KMessageBox::sorry( 0l, i18n("Could not open Circuit file \"%1\"").arg(url.prettyURL()) ); document->deleteLater(); return 0l; } @@ -448,7 +448,7 @@ FlowCodeDocument *DocManager::openFlowCodeFile( const KURL &url, ViewArea *viewA if ( !document->openURL(url) ) { - KMessageBox::sorry( 0l, i18n("Could not open FlowCode file \"%1\"").tqarg(url.prettyURL()) ); + KMessageBox::sorry( 0l, i18n("Could not open FlowCode file \"%1\"").arg(url.prettyURL()) ); document->deleteLater(); return 0l; } @@ -465,7 +465,7 @@ MechanicsDocument *DocManager::openMechanicsFile( const KURL &url, ViewArea *vie if ( !document->openURL(url) ) { - KMessageBox::sorry( 0l, i18n("Could not open Mechanics file \"%1\"").tqarg(url.prettyURL()) ); + KMessageBox::sorry( 0l, i18n("Could not open Mechanics file \"%1\"").arg(url.prettyURL()) ); document->deleteLater(); return 0l; } @@ -486,7 +486,7 @@ TextDocument *DocManager::openTextFile( const KURL &url, ViewArea *viewArea ) if ( !document->openURL(url) ) { - KMessageBox::sorry( 0l, i18n("Could not open text file \"%1\"").tqarg(url.prettyURL()) ); + KMessageBox::sorry( 0l, i18n("Could not open text file \"%1\"").arg(url.prettyURL()) ); document->deleteLater(); return 0l; } |
