diff options
Diffstat (limited to 'src/gvcore/document.cpp')
-rw-r--r-- | src/gvcore/document.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/gvcore/document.cpp b/src/gvcore/document.cpp index caa93f5..b81a229 100644 --- a/src/gvcore/document.cpp +++ b/src/gvcore/document.cpp @@ -343,7 +343,7 @@ void Document::slotLoaded() { // //--------------------------------------------------------------------- void Document::reload() { - Cache::instance()->tqinvalidate( url()); + Cache::instance()->invalidate( url()); load(); emit reloaded(url()); } @@ -378,7 +378,7 @@ void Document::doPaint(KPrinter *printer, TQPainter *painter) { TQString t = "true"; TQString f = "false"; - int tqalignment = (printer->option("app-gwenview-position").isEmpty() ? + int alignment = (printer->option("app-gwenview-position").isEmpty() ? TQt::AlignCenter : printer->option("app-gwenview-position").toInt()); // Compute filename offset @@ -407,7 +407,7 @@ void Document::doPaint(KPrinter *printer, TQPainter *painter) { if (scaling==GV_FITTOPAGE /* Fit to page */) { bool enlargeToFit = printer->option( "app-gwenview-enlargeToFit" ) != f; if ((image.width() > pdWidth || image.height() > pdHeight) || enlargeToFit) { - size.tqscale( pdWidth, pdHeight, TQSize::ScaleMin ); + size.scale( pdWidth, pdHeight, TQSize::ScaleMin ); } } else { if (scaling==GV_SCALE /* Scale To */) { @@ -452,24 +452,24 @@ void Document::doPaint(KPrinter *printer, TQPainter *painter) { printer->abort(); return; } else if (resp == KMessageBox::No) { // Shrink - size.tqscale(pdWidth, pdHeight, TQSize::ScaleMin); + size.scale(pdWidth, pdHeight, TQSize::ScaleMin); } } } // Compute x and y - if ( tqalignment & TQt::AlignHCenter ) + if ( alignment & TQt::AlignHCenter ) x = (pdWidth - size.width())/2; - else if ( tqalignment & TQt::AlignLeft ) + else if ( alignment & TQt::AlignLeft ) x = 0; - else if ( tqalignment & TQt::AlignRight ) + else if ( alignment & TQt::AlignRight ) x = pdWidth - size.width(); - if ( tqalignment & TQt::AlignVCenter ) + if ( alignment & TQt::AlignVCenter ) y = (pdHeight - size.height())/2; - else if ( tqalignment & TQt::AlignTop ) + else if ( alignment & TQt::AlignTop ) y = 0; - else if ( tqalignment & TQt::AlignBottom ) + else if ( alignment & TQt::AlignBottom ) y = pdHeight - size.height(); // Draw, the image will be scaled to fit the given area if necessary @@ -532,7 +532,7 @@ void Document::saveBeforeClosing() { if (!d->mModified) return; TQString msg=i18n("<qt>The image <b>%1</b> has been modified, do you want to save the changes?</qt>") - .tqarg(url().prettyURL()); + .arg(url().prettyURL()); int result=KMessageBox::questionYesNo(dialogParentWidget(), msg, TQString(), KStdGuiItem::save(), KStdGuiItem::discard(), CONFIG_SAVE_AUTOMATICALLY); @@ -605,7 +605,7 @@ TQString Document::saveInternal(const KURL& url, const TQCString& format) { LOG("Save failed: " << msg); return TQString("<qt><b>%1</b><br/>") - .tqarg(i18n("Could not save the image to %1.").tqarg(url.prettyURL())) + .arg(i18n("Could not save the image to %1.").arg(url.prettyURL())) + msg + "</qt>"; } |