diff options
Diffstat (limited to 'src/itemdocument.cpp')
-rw-r--r-- | src/itemdocument.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/itemdocument.cpp b/src/itemdocument.cpp index 7aded9b..ec20d43 100644 --- a/src/itemdocument.cpp +++ b/src/itemdocument.cpp @@ -820,7 +820,7 @@ void ItemDocument::exportToImage() if ( TQFile::exists( url.path() ) ) { - int query = KMessageBox::warningYesNo( p_ktechlab, i18n( "A file named \"%1\" already exists. " "Are you sure you want to overwrite it?" ).tqarg( url.fileName() ), i18n( "Overwrite File?" ), i18n( "Overwrite" ), KStdGuiItem::cancel() ); + int query = KMessageBox::warningYesNo( p_ktechlab, i18n( "A file named \"%1\" already exists. " "Are you sure you want to overwrite it?" ).arg( url.fileName() ), i18n( "Overwrite File?" ), i18n( "Overwrite" ), KStdGuiItem::cancel() ); if ( query == KMessageBox::No ) return; } @@ -924,7 +924,7 @@ void ItemDocument::exportToImage() saveResult = dynamic_cast<TQPixmap*>(outputImage)->save( url.path(), type ); } - //if(saveResult == true) KMessageBox::information( this, i18n("Sucessfully exported to \"%1\"").tqarg( url.filename() ), i18n("Image Export") ); + //if(saveResult == true) KMessageBox::information( this, i18n("Sucessfully exported to \"%1\"").arg( url.filename() ), i18n("Image Export") ); //else KMessageBox::information( this, i18n("Export failed"), i18n("Image Export") ); if ( type == "SVG" ) @@ -1170,7 +1170,7 @@ void CanvasTip::display( const TQPoint &pos ) { TQString text; for ( unsigned i = 0; i < num; i++ ) - text += TQString(" %1: %2\n").tqarg( TQString::number(i) ).tqarg( displayText(i) ); + text += TQString(" %1: %2\n").arg( TQString::number(i) ).arg( displayText(i) ); setText(text); } } @@ -1182,10 +1182,10 @@ TQString CanvasTip::displayText( unsigned num ) const return TQString(); return TQString(" %1%2V %3%4A ") - .tqarg( TQString::number( m_v[num] / CNItem::getMultiplier(m_v[num]), 'g', 3 ) ) - .tqarg( CNItem::getNumberMag( m_v[num] ) ) - .tqarg( TQString::number( m_i[num] / CNItem::getMultiplier(m_i[num]), 'g', 3 ) ) - .tqarg( CNItem::getNumberMag( m_i[num] ) ); + .arg( TQString::number( m_v[num] / CNItem::getMultiplier(m_v[num]), 'g', 3 ) ) + .arg( CNItem::getNumberMag( m_v[num] ) ) + .arg( TQString::number( m_i[num] / CNItem::getMultiplier(m_i[num]), 'g', 3 ) ) + .arg( CNItem::getNumberMag( m_i[num] ) ); } |