diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-19 11:35:39 -0600 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2012-06-05 01:52:57 +0200 |
commit | 5c427ffae97715577a3bdcfdfb715320f5c6d1cb (patch) | |
tree | de12b75a7fc6ee6d413022824d6431a1f2f83303 /src/gvcore | |
parent | 90ed42be7905e495737a4d7af3b9510ade86ea9b (diff) | |
download | gwenview-5c427ffae97715577a3bdcfdfb715320f5c6d1cb.tar.gz gwenview-5c427ffae97715577a3bdcfdfb715320f5c6d1cb.zip |
Remove additional unneeded tq method conversions
(cherry picked from commit eba1d381626d92b860239417f21d813f02ee6394)
Diffstat (limited to 'src/gvcore')
-rw-r--r-- | src/gvcore/cache.cpp | 2 | ||||
-rw-r--r-- | src/gvcore/cache.h | 2 | ||||
-rw-r--r-- | src/gvcore/captionformatter.cpp | 2 | ||||
-rw-r--r-- | src/gvcore/clicklineedit.cpp | 8 | ||||
-rw-r--r-- | src/gvcore/deletedialogbase.ui | 4 | ||||
-rw-r--r-- | src/gvcore/document.cpp | 24 | ||||
-rw-r--r-- | src/gvcore/documentloadedimpl.cpp | 10 | ||||
-rw-r--r-- | src/gvcore/documentloadingimpl.cpp | 2 | ||||
-rw-r--r-- | src/gvcore/dragpixmapgenerator.h | 2 | ||||
-rw-r--r-- | src/gvcore/externaltooldialog.cpp | 2 | ||||
-rw-r--r-- | src/gvcore/externaltoolmanager.cpp | 6 | ||||
-rw-r--r-- | src/gvcore/filedetailview.cpp | 4 | ||||
-rw-r--r-- | src/gvcore/fileopobject.cpp | 6 | ||||
-rw-r--r-- | src/gvcore/filethumbnailview.cpp | 2 | ||||
-rw-r--r-- | src/gvcore/fileviewcontroller.cpp | 2 | ||||
-rw-r--r-- | src/gvcore/imageloader.cpp | 2 | ||||
-rw-r--r-- | src/gvcore/imagesavedialog.cpp | 2 | ||||
-rw-r--r-- | src/gvcore/imageview.cpp | 30 | ||||
-rw-r--r-- | src/gvcore/imageviewtools.cpp | 2 | ||||
-rw-r--r-- | src/gvcore/printdialog.cpp | 44 | ||||
-rw-r--r-- | src/gvcore/qxcfi.cpp | 2 | ||||
-rw-r--r-- | src/gvcore/xpm.cpp | 8 |
22 files changed, 84 insertions, 84 deletions
diff --git a/src/gvcore/cache.cpp b/src/gvcore/cache.cpp index f7508cb..824c0f5 100644 --- a/src/gvcore/cache.cpp +++ b/src/gvcore/cache.cpp @@ -179,7 +179,7 @@ void Cache::addThumbnail( const KURL& url, const TQPixmap& thumbnail, TQSize ima checkMaxSize(); } -void Cache::tqinvalidate( const KURL& url ) { +void Cache::invalidate( const KURL& url ) { d->mImages.remove( url ); } diff --git a/src/gvcore/cache.h b/src/gvcore/cache.h index 199bc46..68591a5 100644 --- a/src/gvcore/cache.h +++ b/src/gvcore/cache.h @@ -52,7 +52,7 @@ public: void getFrames( const KURL& url, ImageFrames* frames, TQCString* format ) const; TQPixmap thumbnail( const KURL& url, TQSize& imagesize ) const; void setPriorityURL( const KURL& url, bool set ); - void tqinvalidate( const KURL& url ); + void invalidate( const KURL& url ); void checkThumbnailSize( int size ); void readConfig(KConfig*,const TQString& group); void updateAge(); diff --git a/src/gvcore/captionformatter.cpp b/src/gvcore/captionformatter.cpp index 74514f3..4b0a593 100644 --- a/src/gvcore/captionformatter.cpp +++ b/src/gvcore/captionformatter.cpp @@ -35,7 +35,7 @@ TQString CaptionFormatter::format(const TQString& format) { TQString resolution; if (mImageSize.isValid()) { - resolution = TQString( "%1x%2" ).tqarg( mImageSize.width()).tqarg( mImageSize.height()); + resolution = TQString( "%1x%2" ).arg( mImageSize.width()).arg( mImageSize.height()); } TQString str=format; diff --git a/src/gvcore/clicklineedit.cpp b/src/gvcore/clicklineedit.cpp index 3b7db6a..656b499 100644 --- a/src/gvcore/clicklineedit.cpp +++ b/src/gvcore/clicklineedit.cpp @@ -40,14 +40,14 @@ ClickLineEdit::ClickLineEdit(TQWidget *parent, const char* name ) : void ClickLineEdit::setClickMessage( const TQString &msg ) { mClickMessage = msg; - tqrepaint(); + repaint(); } void ClickLineEdit::setText( const TQString &txt ) { mDrawClickMsg = txt.isEmpty(); - tqrepaint(); + repaint(); KLineEdit::setText( txt ); } @@ -86,7 +86,7 @@ void ClickLineEdit::focusInEvent( TQFocusEvent *ev ) { if ( mDrawClickMsg == true ) { mDrawClickMsg = false; - tqrepaint(); + repaint(); } TQLineEdit::focusInEvent( ev ); } @@ -96,7 +96,7 @@ void ClickLineEdit::focusOutEvent( TQFocusEvent *ev ) { if ( text().isEmpty() ) { mDrawClickMsg = true; - tqrepaint(); + repaint(); } TQLineEdit::focusOutEvent( ev ); } diff --git a/src/gvcore/deletedialogbase.ui b/src/gvcore/deletedialogbase.ui index 6abab10..f7d6f90 100644 --- a/src/gvcore/deletedialogbase.ui +++ b/src/gvcore/deletedialogbase.ui @@ -56,7 +56,7 @@ <property name="text"> <string>Deletion method placeholder, not in GUI</string> </property> - <property name="tqalignment"> + <property name="alignment"> <set>WordBreak|AlignCenter</set> </property> </widget> @@ -80,7 +80,7 @@ <property name="text"> <string>Placeholder for number of files, not in GUI</string> </property> - <property name="tqalignment"> + <property name="alignment"> <set>AlignVCenter|AlignRight</set> </property> </widget> 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>"; } diff --git a/src/gvcore/documentloadedimpl.cpp b/src/gvcore/documentloadedimpl.cpp index aacea94..31baec0 100644 --- a/src/gvcore/documentloadedimpl.cpp +++ b/src/gvcore/documentloadedimpl.cpp @@ -134,7 +134,7 @@ TQString DocumentLoadedImpl::save(const KURL& _url, const TQCString& format) con if (!parent.isWritable()) { return i18n("The %1 folder is read-only.") - .tqarg(parent.filePath()); + .arg(parent.filePath()); } } } @@ -152,7 +152,7 @@ TQString DocumentLoadedImpl::save(const KURL& _url, const TQCString& format) con if (tmp.status()!=0) { TQString reason( strerror(tmp.status()) ); return i18n("Could not create a temporary file.\nReason: %1.") - .tqarg(reason); + .arg(reason); } TQFile* file=tmp.file(); msg=localSave(file, format); @@ -162,7 +162,7 @@ TQString DocumentLoadedImpl::save(const KURL& _url, const TQCString& format) con if (tmp.status()!=0) { TQString reason( strerror(tmp.status()) ); return i18n("Saving image to a temporary file failed.\nReason: %1.") - .tqarg(reason); + .arg(reason); } TQString tmpName=tmp.name(); @@ -172,11 +172,11 @@ TQString DocumentLoadedImpl::save(const KURL& _url, const TQCString& format) con // Move the tmp file to the final dest if (url.isLocalFile()) { if( ::rename( TQFile::encodeName(tmpName), TQFile::encodeName( url.path())) < 0 ) { - return i18n("Could not write to %1.").tqarg(url.path()); + return i18n("Could not write to %1.").arg(url.path()); } } else { if (!KIO::NetAccess::upload(tmp.name(), url, KApplication::kApplication()->mainWidget() )) { - return i18n("Could not upload the file to %1.").tqarg(url.prettyURL()); + return i18n("Could not upload the file to %1.").arg(url.prettyURL()); } } diff --git a/src/gvcore/documentloadingimpl.cpp b/src/gvcore/documentloadingimpl.cpp index 072229e..02020ad 100644 --- a/src/gvcore/documentloadingimpl.cpp +++ b/src/gvcore/documentloadingimpl.cpp @@ -99,7 +99,7 @@ void DocumentLoadingImpl::init() { emitImageRectUpdated(); } else { setImage(image); - TQMemArray< TQRect > rects = TQRegion(d->mLoader->loadedRegion()).tqrects(); + TQMemArray< TQRect > rects = TQRegion(d->mLoader->loadedRegion()).rects(); for( unsigned int i = 0; i < rects.count(); ++i ) { emit rectUpdated(rects[i]); } diff --git a/src/gvcore/dragpixmapgenerator.h b/src/gvcore/dragpixmapgenerator.h index efbbd93..308c391 100644 --- a/src/gvcore/dragpixmapgenerator.h +++ b/src/gvcore/dragpixmapgenerator.h @@ -128,7 +128,7 @@ public: if (listCropped) { // If list has been cropped, leave space for item count text height += fm.height(); - bottomText = i18n("%1 items").tqarg(mItemList.count()); + bottomText = i18n("%1 items").arg(mItemList.count()); width = TQMAX(width, fm.width("... " + bottomText)); } diff --git a/src/gvcore/externaltooldialog.cpp b/src/gvcore/externaltooldialog.cpp index e579b99..a71351b 100644 --- a/src/gvcore/externaltooldialog.cpp +++ b/src/gvcore/externaltooldialog.cpp @@ -144,7 +144,7 @@ struct ExternalToolDialogPrivate { for (; item; item=item->nextSibling()) { if (item==mSelectedItem) continue; if (name==item->text(0)) { - KMessageBox::sorry(mContent, i18n("There is already a tool named \"%1\"").tqarg(name)); + KMessageBox::sorry(mContent, i18n("There is already a tool named \"%1\"").arg(name)); return false; } } diff --git a/src/gvcore/externaltoolmanager.cpp b/src/gvcore/externaltoolmanager.cpp index 4fd4e03..3a43d26 100644 --- a/src/gvcore/externaltoolmanager.cpp +++ b/src/gvcore/externaltoolmanager.cpp @@ -222,7 +222,7 @@ TQDict<KDesktopFile>& ExternalToolManager::desktopFiles() const { void ExternalToolManager::hideDesktopFile(KDesktopFile* desktopFile) { TQFileInfo fi(desktopFile->fileName()); - TQString name=TQString("%1.desktop").tqarg( fi.baseName(true) ); + TQString name=TQString("%1.desktop").arg( fi.baseName(true) ); d->mDesktopFiles.take(name); if (desktopFile->isReadOnly()) { @@ -240,7 +240,7 @@ KDesktopFile* ExternalToolManager::editSystemDesktopFile(const KDesktopFile* des TQFileInfo fi(desktopFile->fileName()); TQString name=fi.baseName(true); - d->mDesktopFiles.remove(TQString("%1.desktop").tqarg(name)); + d->mDesktopFiles.remove(TQString("%1.desktop").arg(name)); return createUserDesktopFile(name); } @@ -250,7 +250,7 @@ KDesktopFile* ExternalToolManager::createUserDesktopFile(const TQString& name) { Q_ASSERT(!name.isEmpty()); KDesktopFile* desktopFile=new KDesktopFile( d->mUserToolDir + "/" + name + ".desktop", false); - d->mDesktopFiles.insert(TQString("%1.desktop").tqarg(name), desktopFile); + d->mDesktopFiles.insert(TQString("%1.desktop").arg(name), desktopFile); return desktopFile; } diff --git a/src/gvcore/filedetailview.cpp b/src/gvcore/filedetailview.cpp index a8eba49..a7d9f64 100644 --- a/src/gvcore/filedetailview.cpp +++ b/src/gvcore/filedetailview.cpp @@ -525,8 +525,8 @@ void FileDetailView::setShownFileItem(KFileItem* fileItem) FileDetailViewItem* newShownItem=viewItem(fileItem); FileViewBase::setShownFileItem(fileItem); - if (oldShownItem) oldShownItem->tqrepaint(); - if (newShownItem) newShownItem->tqrepaint(); + if (oldShownItem) oldShownItem->repaint(); + if (newShownItem) newShownItem->repaint(); } diff --git a/src/gvcore/fileopobject.cpp b/src/gvcore/fileopobject.cpp index 3de66d4..69a6624 100644 --- a/src/gvcore/fileopobject.cpp +++ b/src/gvcore/fileopobject.cpp @@ -259,7 +259,7 @@ void FileOpTrashObject::operator()() { } else { TQString filename=TQStyleSheet::escape(mURLList.first().filename()); response=KMessageBox::warningContinueCancel(mParent, - i18n("<p>Do you really want to move <b>%1</b> to the trash?</p>").tqarg(filename),i18n("Trash used as a verb", "Trash File"),KGuiItem(i18n("Trash used as a verb", "&Trash"),"edittrash")); + i18n("<p>Do you really want to move <b>%1</b> to the trash?</p>").arg(filename),i18n("Trash used as a verb", "Trash File"),KGuiItem(i18n("Trash used as a verb", "&Trash"),"edittrash")); } if (response!=KMessageBox::Continue) return; } @@ -287,7 +287,7 @@ void FileOpRealDeleteObject::operator()() { } else { TQString filename=TQStyleSheet::escape(mURLList.first().filename()); response=KMessageBox::warningContinueCancel(mParent, - i18n("<p>Do you really want to delete <b>%1</b>?</p>").tqarg(filename), + i18n("<p>Do you really want to delete <b>%1</b>?</p>").arg(filename), i18n("Delete File"), KStdGuiItem::del() ); @@ -309,7 +309,7 @@ void FileOpRenameObject::operator()() { TQString filename = srcURL.filename(); InputDialog dlg(mParent); dlg.setCaption(i18n("Renaming File")); - dlg.setLabel(i18n("<p>Rename file <b>%1</b> to:</p>").tqarg(TQStyleSheet::escape(filename))); + dlg.setLabel(i18n("<p>Rename file <b>%1</b> to:</p>").arg(TQStyleSheet::escape(filename))); dlg.setButtonOK( KGuiItem(i18n("&Rename"), "edit") ); dlg.lineEdit()->setText(filename); diff --git a/src/gvcore/filethumbnailview.cpp b/src/gvcore/filethumbnailview.cpp index 3910e48..c6760fe 100644 --- a/src/gvcore/filethumbnailview.cpp +++ b/src/gvcore/filethumbnailview.cpp @@ -285,7 +285,7 @@ void FileThumbnailView::setThumbnailPixmap(const KFileItem* fileItem, const TQPi if (size.isValid()) { iconItem->setImageSize(size); } - iconItem->tqrepaint(); + iconItem->repaint(); // Notify progress if (d->mProgressWidget) { diff --git a/src/gvcore/fileviewcontroller.cpp b/src/gvcore/fileviewcontroller.cpp index bb57a07..1cd795e 100644 --- a/src/gvcore/fileviewcontroller.cpp +++ b/src/gvcore/fileviewcontroller.cpp @@ -747,7 +747,7 @@ void FileViewController::updateViewMode() { void FileViewController::updateThumbnailSize(int size) { size*=SLIDER_RESOLUTION; - d->mSliderTracker->setText(i18n("Thumbnail size: %1x%2").tqarg(size).tqarg(size)); + d->mSliderTracker->setText(i18n("Thumbnail size: %1x%2").arg(size).arg(size)); FileViewConfig::setThumbnailSize(size); mFileThumbnailView->setThumbnailSize(size); Cache::instance()->checkThumbnailSize(size); diff --git a/src/gvcore/imageloader.cpp b/src/gvcore/imageloader.cpp index 699d088..c74b7ae 100644 --- a/src/gvcore/imageloader.cpp +++ b/src/gvcore/imageloader.cpp @@ -113,7 +113,7 @@ public: int getch() { if (mThread->testCancel()) { LOG("cancel detected"); - seStatus(IO_ReadError); + setStatus(IO_ReadError); return -1; } return TQBuffer::getch(); diff --git a/src/gvcore/imagesavedialog.cpp b/src/gvcore/imagesavedialog.cpp index db1e325..ecc6639 100644 --- a/src/gvcore/imagesavedialog.cpp +++ b/src/gvcore/imagesavedialog.cpp @@ -70,7 +70,7 @@ ImageSaveDialog::ImageSaveDialog(KURL& url, const TQCString& imageFormat, TQWidg if (!patterns.contains(pattern)) patterns.append(pattern); } if (patterns.isEmpty()) { - patterns.append( TQString("*.%1").tqarg(format.lower()) ); + patterns.append( TQString("*.%1").arg(format.lower()) ); } TQString patternString=patterns.join(" "); diff --git a/src/gvcore/imageview.cpp b/src/gvcore/imageview.cpp index a2b2e96..a63c181 100644 --- a/src/gvcore/imageview.cpp +++ b/src/gvcore/imageview.cpp @@ -113,7 +113,7 @@ as approximate as possible). However when converting from widget to image and ba this can result in the final rectangle being smaller than the original. The widgetToImageBounding() function converts from widget to image coordinates in a way which makes sure the reverse conversion will be at least as large -as the original tqgeometry. +as the original geometry. There are no conversion functions for only width/height, as their conversion depends on the position (because of the rounding etc.). For similar reasons @@ -257,7 +257,7 @@ struct ImageView::Private { const double zoomValues[] = { 0.5, 1, 2 }; int nbValues=sizeof(zoomValues) / sizeof(double); for (int pos=0; pos<nbValues; ++pos) { - TQString txt=TQString("%1%").tqarg( int(zoomValues[pos]*100) ); + TQString txt=TQString("%1%").arg( int(zoomValues[pos]*100) ); mZoomCombo->insertItem(txt); } } @@ -423,7 +423,7 @@ ImageView::~ImageView() { void ImageView::slotLoaded() { if (d->mDocument->isNull()) { resizeContents(0,0); - viewport()->tqrepaint(false); + viewport()->repaint(false); return; } @@ -488,7 +488,7 @@ KToggleAction* ImageView::zoomToFit() const { void ImageView::updateFromSettings() { - // Reset, so that next tqrepaint doesn't possibly take longer because of + // Reset, so that next repaint doesn't possibly take longer because of // smoothing ImageViewConfig::setMaxRepaintSize(DEFAULT_MAX_REPAINT_SIZE); ImageViewConfig::setMaxScaleRepaintSize(DEFAULT_MAX_REPAINT_SIZE); @@ -625,7 +625,7 @@ void ImageView::drawContents(TQPainter* painter,int clipx,int clipy,int clipw,in TQRect widgetRect = TQRect(0, 0, visibleWidth(), visibleHeight()); TQRegion region = TQRegion(widgetRect) - imageRect; - TQMemArray<TQRect> rects = region.tqrects(); + TQMemArray<TQRect> rects = region.rects(); for(unsigned int pos = 0; pos < rects.count(); ++pos ) { painter->eraseRect(rects[pos]); } @@ -701,7 +701,7 @@ void ImageView::limitPaintSize( PendingPaint& paint ) { // don't paint more than max_size pixels at a time int maxHeight = ( maxSize + paint.rect.width() - 1 ) / paint.rect.width(); // round up maxHeight = TQMAX( maxHeight, 5 ); // at least 5 lines together - // can't tqrepaint whole paint at once, adjust height and schedule the rest + // can't repaint whole paint at once, adjust height and schedule the rest if( maxHeight < paint.rect.height()) { TQRect remaining = paint.rect; remaining.setTop( remaining.top() + maxHeight ); @@ -781,12 +781,12 @@ void ImageView::slotBusyLevelChanged( BusyLevel level ) { // How to do painting: // When something needs to be erased: TQPainter on viewport and eraseRect() // When whole picture needs to be repainted: fullRepaint() -// When a part of the picture needs to be updated: viewport()->tqrepaint(area,false) +// When a part of the picture needs to be updated: viewport()->repaint(area,false) // All other paints will be changed to progressive painting. void ImageView::fullRepaint() { if( !viewport()->isUpdatesEnabled()) return; cancelPending(); - viewport()->tqrepaint(false); + viewport()->repaint(false); } void ImageView::cancelPending() { @@ -832,7 +832,7 @@ void ImageView::performPaint( TQPainter* painter, int clipx, int clipy, int clip int extraPixels = ImageUtils::extraScalePixels( smoothAlgo, zoom()); TQRect imageRect = d->widgetToImageBounding( TQRect(clipx,clipy,clipw,cliph), extraPixels ); imageRect = imageRect.intersect( TQRect( 0, 0, d->mDocument->width(), d->mDocument->height())); - TQMemArray< TQRect > rects = TQRegion(d->mValidImageArea.intersect( imageRect )).tqrects(); + TQMemArray< TQRect > rects = TQRegion(d->mValidImageArea.intersect( imageRect )).rects(); for( unsigned int i = 1; i < rects.count(); ++i ) { addPendingPaint( secondPass, d->imageToWidget( rects[ i ] )); } @@ -1024,7 +1024,7 @@ bool ImageView::eventFilter(TQObject* obj, TQEvent* event) { return true; // Getting/loosing focus causes repaints, but repainting here is expensive, - // and there's no need to tqrepaint on focus changes, as the focus is not + // and there's no need to repaint on focus changes, as the focus is not // indicated. case TQEvent::FocusIn: case TQEvent::FocusOut: @@ -1313,7 +1313,7 @@ void ImageView::slotImageSizeUpdated() { void ImageView::slotImageRectUpdated(const TQRect& imageRect) { d->mValidImageArea += imageRect; - viewport()->tqrepaint( d->imageToWidget( imageRect ), false ); + viewport()->repaint( d->imageToWidget( imageRect ), false ); } @@ -1339,7 +1339,7 @@ double ImageView::computeZoomToFit() const { return 1.0; } TQSize size=d->mDocument->image().size(); - size.tqscale(width(),height(),TQSize::ScaleMin); + size.scale(width(),height(),TQSize::ScaleMin); double zoom=double(size.width())/d->mDocument->width(); if (zoom>1.0 && !ImageViewConfig::enlargeSmallImages()) return 1.0; @@ -1350,7 +1350,7 @@ double ImageView::computeZoomToWidth() const { if (d->mDocument->isNull()) { return 1.0; } - int sw = verticalScrollBar()->sizeHint().width(); // tqgeometry is not valid before first show() + int sw = verticalScrollBar()->sizeHint().width(); // geometry is not valid before first show() int w = width(); int dw = d->mDocument->width(); switch( vScrollBarMode()) { @@ -1425,7 +1425,7 @@ void ImageView::updateImageOffset() { int zpixHeight=int(d->mDocument->height() * d->mZoom); if (zpixWidth>viewWidth && hScrollBarMode()!=AlwaysOff) { - // use sizeHint() - tqgeometry is not valid before first show() + // use sizeHint() - geometry is not valid before first show() viewHeight-=horizontalScrollBar()->sizeHint().height(); } if (zpixHeight>viewHeight && vScrollBarMode()!=AlwaysOff) { @@ -1457,7 +1457,7 @@ void ImageView::updateZoomActions() { if (d->mZoomMode==ZOOM_FREE) { d->mZoomIn->setEnabled(d->mZoom<MAX_ZOOM); d->mZoomOut->setEnabled(d->mZoom>1/MAX_ZOOM); - TQString zoomText=TQString("%1%").tqarg(int(d->mZoom*100)); + TQString zoomText=TQString("%1%").arg(int(d->mZoom*100)); d->mZoomCombo->setCurrentText(zoomText); } else { d->mZoomIn->setEnabled(true); diff --git a/src/gvcore/imageviewtools.cpp b/src/gvcore/imageviewtools.cpp index 699868a..da9044a 100644 --- a/src/gvcore/imageviewtools.cpp +++ b/src/gvcore/imageviewtools.cpp @@ -36,7 +36,7 @@ namespace Gwenview { // Helper function static TQCursor loadCursor(const TQString& name) { TQString path; - path=locate("data", TQString("gwenview/cursors/%1.png").tqarg(name)); + path=locate("data", TQString("gwenview/cursors/%1.png").arg(name)); return TQCursor(TQPixmap(path)); } diff --git a/src/gvcore/printdialog.cpp b/src/gvcore/printdialog.cpp index 98524af..003fb3a 100644 --- a/src/gvcore/printdialog.cpp +++ b/src/gvcore/printdialog.cpp @@ -169,57 +169,57 @@ void PrintDialogPage::setScaleHeight( double value ) { } int PrintDialogPage::getPosition(const TQString& align) { - int tqalignment; + int alignment; if (align == i18n("Central-Left")) { - tqalignment = TQt::AlignLeft | TQt::AlignVCenter; + alignment = TQt::AlignLeft | TQt::AlignVCenter; } else if (align == i18n("Central-Right")) { - tqalignment = TQt::AlignRight | TQt::AlignVCenter; + alignment = TQt::AlignRight | TQt::AlignVCenter; } else if (align == i18n("Top-Left")) { - tqalignment = TQt::AlignTop | TQt::AlignLeft; + alignment = TQt::AlignTop | TQt::AlignLeft; } else if (align == i18n("Top-Right")) { - tqalignment = TQt::AlignTop | TQt::AlignRight; + alignment = TQt::AlignTop | TQt::AlignRight; } else if (align == i18n("Bottom-Left")) { - tqalignment = TQt::AlignBottom | TQt::AlignLeft; + alignment = TQt::AlignBottom | TQt::AlignLeft; } else if (align == i18n("Bottom-Right")) { - tqalignment = TQt::AlignBottom | TQt::AlignRight; + alignment = TQt::AlignBottom | TQt::AlignRight; } else if (align == i18n("Top-Central")) { - tqalignment = TQt::AlignTop | TQt::AlignHCenter; + alignment = TQt::AlignTop | TQt::AlignHCenter; } else if (align == i18n("Bottom-Central")) { - tqalignment = TQt::AlignBottom | TQt::AlignHCenter; + alignment = TQt::AlignBottom | TQt::AlignHCenter; } else { // Central - tqalignment = TQt::AlignCenter; // TQt::AlignHCenter || TQt::AlignVCenter + alignment = TQt::AlignCenter; // TQt::AlignHCenter || TQt::AlignVCenter } - return tqalignment; + return alignment; } TQString PrintDialogPage::setPosition(int align) { - TQString tqalignment; + TQString alignment; if (align == (TQt::AlignLeft | TQt::AlignVCenter)) { - tqalignment = i18n("Central-Left"); + alignment = i18n("Central-Left"); } else if (align == (TQt::AlignRight | TQt::AlignVCenter)) { - tqalignment = i18n("Central-Right"); + alignment = i18n("Central-Right"); } else if (align == (TQt::AlignTop | TQt::AlignLeft)) { - tqalignment = i18n("Top-Left"); + alignment = i18n("Top-Left"); } else if (align == (TQt::AlignTop | TQt::AlignRight)) { - tqalignment = i18n("Top-Right"); + alignment = i18n("Top-Right"); } else if (align == (TQt::AlignBottom | TQt::AlignLeft)) { - tqalignment = i18n("Bottom-Left"); + alignment = i18n("Bottom-Left"); } else if (align == (TQt::AlignBottom | TQt::AlignRight)) { - tqalignment = i18n("Bottom-Right"); + alignment = i18n("Bottom-Right"); } else if (align == (TQt::AlignTop | TQt::AlignHCenter)) { - tqalignment = i18n("Top-Central"); + alignment = i18n("Top-Central"); } else if (align == (TQt::AlignBottom | TQt::AlignHCenter)) { - tqalignment = i18n("Bottom-Central"); + alignment = i18n("Bottom-Central"); } else { // Central: TQt::AlignCenter or (TQt::AlignHCenter || TQt::AlignVCenter) - tqalignment = i18n("Central"); + alignment = i18n("Central"); } - return tqalignment; + return alignment; } // SLOTS diff --git a/src/gvcore/qxcfi.cpp b/src/gvcore/qxcfi.cpp index 7c9f812..a8b8317 100644 --- a/src/gvcore/qxcfi.cpp +++ b/src/gvcore/qxcfi.cpp @@ -486,7 +486,7 @@ void XCFImageFormat::readXCF ( TQImageIO* image_io ) } image_io->setImage( xcf_image.image ); - image_io->seStatus( 0 ); + image_io->setStatus( 0 ); } /*! diff --git a/src/gvcore/xpm.cpp b/src/gvcore/xpm.cpp index b56ba59..a021c55 100644 --- a/src/gvcore/xpm.cpp +++ b/src/gvcore/xpm.cpp @@ -161,7 +161,7 @@ static void read_xpm_image_or_array( TQImageIO * iio, const char * const * sourc int i, cpp, ncols, w, h, index = 0; if ( iio ) { - iio->seStatus( 1 ); + iio->setStatus( 1 ); d = iio ? iio->ioDevice() : 0; d->readLine( buf.data(), buf.size() ); // "/* XPM */" TQRegExp r( TQString::fromLatin1("/\\*.XPM.\\*/") ); @@ -291,7 +291,7 @@ static void read_xpm_image_or_array( TQImageIO * iio, const char * const * sourc } if ( iio ) { iio->setImage( image ); - iio->seStatus( 0 ); // image ok + iio->setStatus( 0 ); // image ok } } @@ -340,7 +340,7 @@ static const char* xpm_color_name( int cpp, int index ) static void write_xpm_image( TQImageIO * iio ) { if ( iio ) - iio->seStatus( 1 ); + iio->setStatus( 1 ); else return; @@ -424,7 +424,7 @@ static void write_xpm_image( TQImageIO * iio ) } s << "};" << endl; - iio->seStatus( 0 ); + iio->setStatus( 0 ); } // TQt code end --------------------------- |