diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-12-07 17:17:09 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-12-07 17:17:09 +0900 |
commit | 831670cd1aa76b314b447cfa2d9c71603cbbf43e (patch) | |
tree | 5616a5ded1d1be90db68f1dbd14091c8a9d57386 /src/gvcore | |
parent | 9e6e0ff97a1c51067ef5144cde7dc30031c2ac3a (diff) | |
download | gwenview-831670cd1aa76b314b447cfa2d9c71603cbbf43e.tar.gz gwenview-831670cd1aa76b314b447cfa2d9c71603cbbf43e.zip |
Replaced various '#define' with actual strings - part 6
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'src/gvcore')
-rw-r--r-- | src/gvcore/cursortracker.cpp | 2 | ||||
-rw-r--r-- | src/gvcore/externaltooldialog.cpp | 2 | ||||
-rw-r--r-- | src/gvcore/fileoperation.cpp | 2 | ||||
-rw-r--r-- | src/gvcore/filethumbnailview.cpp | 12 | ||||
-rw-r--r-- | src/gvcore/fileviewcontroller.cpp | 78 | ||||
-rw-r--r-- | src/gvcore/imageview.cpp | 53 | ||||
-rw-r--r-- | src/gvcore/imageviewcontroller.cpp | 4 |
7 files changed, 76 insertions, 77 deletions
diff --git a/src/gvcore/cursortracker.cpp b/src/gvcore/cursortracker.cpp index 9c3441a..914093c 100644 --- a/src/gvcore/cursortracker.cpp +++ b/src/gvcore/cursortracker.cpp @@ -43,7 +43,7 @@ void CursorTracker::setText(const TQString& txt) { bool CursorTracker::eventFilter(TQObject* object, TQEvent* _event) { - TQWidget* widget=TQT_TQWIDGET(object); + TQWidget* widget=static_cast<TQWidget*>(object); switch (_event->type()) { case TQEvent::MouseMove: { diff --git a/src/gvcore/externaltooldialog.cpp b/src/gvcore/externaltooldialog.cpp index 7e039b9..bd58298 100644 --- a/src/gvcore/externaltooldialog.cpp +++ b/src/gvcore/externaltooldialog.cpp @@ -271,7 +271,7 @@ ExternalToolDialog::ExternalToolDialog(TQWidget* parent) d->fillMimeTypeListView(); d->fillToolListView(); d->mContent->mToolListView->viewport()->installEventFilter( - new ToolListViewFilterObject(TQT_TQOBJECT(this), d)); + new ToolListViewFilterObject(this, d)); connect( d->mContent->mToolListView, TQT_SIGNAL(selectionChanged(TQListViewItem*)), this, TQT_SLOT(slotSelectionChanged(TQListViewItem*)) ); diff --git a/src/gvcore/fileoperation.cpp b/src/gvcore/fileoperation.cpp index 4c693c0..d775113 100644 --- a/src/gvcore/fileoperation.cpp +++ b/src/gvcore/fileoperation.cpp @@ -90,7 +90,7 @@ void rename(const KURL& url,TQWidget* parent,TQObject* receiver,const char* slot void fillDropURLMenu(TQPopupMenu* menu, const KURL::List& urls, const KURL& target, bool* wasMoved) { - DropMenuContext* context=new DropMenuContext(TQT_TQOBJECT(menu), urls, target, wasMoved); + DropMenuContext* context=new DropMenuContext(menu, urls, target, wasMoved); menu->insertItem( SmallIcon("goto"), i18n("&Move Here"), context, TQT_SLOT(move()) ); menu->insertItem( SmallIcon("edit-copy"), i18n("&Copy Here"), diff --git a/src/gvcore/filethumbnailview.cpp b/src/gvcore/filethumbnailview.cpp index ff528a7..8d883f8 100644 --- a/src/gvcore/filethumbnailview.cpp +++ b/src/gvcore/filethumbnailview.cpp @@ -109,7 +109,7 @@ public: } void updatePosition() { - FileThumbnailView* view=static_cast<FileThumbnailView*>(TQT_TQWIDGET(parent())); + FileThumbnailView* view=static_cast<FileThumbnailView*>(parent()); TQSize tmp=view->clipper()->size() - size(); move(tmp.width() - 2, tmp.height() - 2); } @@ -362,7 +362,7 @@ void FileThumbnailView::doStartThumbnailUpdate(const KFileItemList* list) { } if (imageList.empty()) return; - BusyLevelManager::instance()->setBusyLevel( TQT_TQOBJECT(this), BUSY_THUMBNAILS ); + BusyLevelManager::instance()->setBusyLevel( this, BUSY_THUMBNAILS ); Q_ASSERT(!d->mProgressWidget); d->mProgressWidget=new ProgressWidget(this, imageList.count() ); @@ -397,7 +397,7 @@ void FileThumbnailView::slotUpdateEnded() { delete d->mProgressWidget; d->mProgressWidget=0L; - BusyLevelManager::instance()->setBusyLevel( TQT_TQOBJECT(this), BUSY_NONE ); + BusyLevelManager::instance()->setBusyLevel( this, BUSY_NONE ); } @@ -681,7 +681,7 @@ void FileThumbnailView::slotCurrentChanged(TQIconViewItem* item ) { if( pos == item && pos->nextItem() != NULL ) { d->mPrefetch = ImageLoader::loader( static_cast<const FileThumbnailViewItem*>( cur->nextItem() )->fileItem()->url(), - TQT_TQOBJECT(this), BUSY_PRELOADING ); + this, BUSY_PRELOADING ); connect( d->mPrefetch, TQT_SIGNAL( imageLoaded( bool )), TQT_SLOT( prefetchDone())); } } @@ -756,14 +756,14 @@ void FileThumbnailView::keyPressEvent( TQKeyEvent* e ) { if( next != NULL ) { d->mPrefetch = ImageLoader::loader( static_cast<const FileThumbnailViewItem*>( next )->fileItem()->url(), - TQT_TQOBJECT(this), BUSY_PRELOADING ); + this, BUSY_PRELOADING ); connect( d->mPrefetch, TQT_SIGNAL( imageLoaded( bool )), TQT_SLOT( prefetchDone())); } } void FileThumbnailView::prefetchDone() { if( d->mPrefetch != NULL ) { - d->mPrefetch->release( TQT_TQOBJECT(this) ); + d->mPrefetch->release( this ); d->mPrefetch = NULL; } } diff --git a/src/gvcore/fileviewcontroller.cpp b/src/gvcore/fileviewcontroller.cpp index d338d32..b5c073d 100644 --- a/src/gvcore/fileviewcontroller.cpp +++ b/src/gvcore/fileviewcontroller.cpp @@ -275,36 +275,36 @@ FileViewController::FileViewController(TQWidget* parent,TDEActionCollection* act // Actions mSelectFirst=new TDEAction(i18n("&First"), TQApplication::reverseLayout() ? "2rightarrow":"2leftarrow", Key_Home, - TQT_TQOBJECT(this),TQT_SLOT(slotSelectFirst()), actionCollection, "first"); + this,TQT_SLOT(slotSelectFirst()), actionCollection, "first"); mSelectLast=new TDEAction(i18n("&Last"), TQApplication::reverseLayout() ? "2leftarrow":"2rightarrow", Key_End, - TQT_TQOBJECT(this),TQT_SLOT(slotSelectLast()), actionCollection, "last"); + this,TQT_SLOT(slotSelectLast()), actionCollection, "last"); mSelectPrevious=new TDEAction(i18n("&Previous"), TQApplication::reverseLayout() ? "1rightarrow":"1leftarrow", Key_BackSpace, - TQT_TQOBJECT(this),TQT_SLOT(slotSelectPrevious()), actionCollection, "previous"); + this,TQT_SLOT(slotSelectPrevious()), actionCollection, "previous"); mSelectNext=new TDEAction(i18n("&Next"), TQApplication::reverseLayout() ? "1leftarrow":"1rightarrow", Key_Space, - TQT_TQOBJECT(this),TQT_SLOT(slotSelectNext()), actionCollection, "next"); + this,TQT_SLOT(slotSelectNext()), actionCollection, "next"); mSelectPreviousDir=new TDEAction(i18n("&Previous Folder"), TQApplication::reverseLayout() ? "media-seek-forward":"media-seek-backward", ALT + Key_BackSpace, - TQT_TQOBJECT(this),TQT_SLOT(slotSelectPreviousDir()), actionCollection, "previous_folder"); + this,TQT_SLOT(slotSelectPreviousDir()), actionCollection, "previous_folder"); mSelectNextDir=new TDEAction(i18n("&Next Folder"), TQApplication::reverseLayout() ? "media-seek-backward":"media-seek-forward", ALT + Key_Space, - TQT_TQOBJECT(this),TQT_SLOT(slotSelectNextDir()), actionCollection, "next_folder"); + this,TQT_SLOT(slotSelectNextDir()), actionCollection, "next_folder"); mSelectFirstSubDir=new TDEAction(i18n("&First Sub Folder"), "go-down", ALT + Key_Down, - TQT_TQOBJECT(this),TQT_SLOT(slotSelectFirstSubDir()), actionCollection, "first_sub_folder"); + this,TQT_SLOT(slotSelectFirstSubDir()), actionCollection, "first_sub_folder"); - mListMode=new TDERadioAction(i18n("Details"),"view_detailed",0,TQT_TQOBJECT(this),TQT_SLOT(updateViewMode()),actionCollection,"list_mode"); + mListMode=new TDERadioAction(i18n("Details"),"view_detailed",0,this,TQT_SLOT(updateViewMode()),actionCollection,"list_mode"); mListMode->setExclusiveGroup("thumbnails"); - mSideThumbnailMode=new TDERadioAction(i18n("Thumbnails with Info on Side"),"view_multicolumn",0,TQT_TQOBJECT(this),TQT_SLOT(updateViewMode()),actionCollection,"side_thumbnail_mode"); + mSideThumbnailMode=new TDERadioAction(i18n("Thumbnails with Info on Side"),"view_multicolumn",0,this,TQT_SLOT(updateViewMode()),actionCollection,"side_thumbnail_mode"); mSideThumbnailMode->setExclusiveGroup("thumbnails"); - mBottomThumbnailMode=new TDERadioAction(i18n("Thumbnails with Info on Bottom"),"view_icon",0,TQT_TQOBJECT(this),TQT_SLOT(updateViewMode()),actionCollection,"bottom_thumbnail_mode"); + mBottomThumbnailMode=new TDERadioAction(i18n("Thumbnails with Info on Bottom"),"view_icon",0,this,TQT_SLOT(updateViewMode()),actionCollection,"bottom_thumbnail_mode"); mBottomThumbnailMode->setExclusiveGroup("thumbnails"); // Size slider @@ -315,21 +315,21 @@ FileViewController::FileViewController(TQWidget* parent,TDEActionCollection* act ThumbnailSize::LARGE/SLIDER_RESOLUTION); mSizeSlider->setValue(FileViewConfig::thumbnailSize() / SLIDER_RESOLUTION); - connect(mSizeSlider, TQT_SIGNAL(valueChanged(int)), TQT_TQOBJECT(this), TQT_SLOT(updateThumbnailSize(int)) ); + connect(mSizeSlider, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(updateThumbnailSize(int)) ); connect(mListMode, TQT_SIGNAL(toggled(bool)), mSizeSlider, TQT_SLOT(setDisabled(bool)) ); TDEAction* sliderAction=new KWidgetAction(mSizeSlider, i18n("Thumbnail Size"), 0, 0, 0, actionCollection, "size_slider"); d->mSliderTracker=new TipTracker("", mSizeSlider); // /Size slider - mShowDotFiles=new TDEToggleAction(i18n("Show &Hidden Files"),CTRL + Key_H,TQT_TQOBJECT(this),TQT_SLOT(toggleShowDotFiles()),actionCollection,"show_dot_files"); + mShowDotFiles=new TDEToggleAction(i18n("Show &Hidden Files"),CTRL + Key_H,this,TQT_SLOT(toggleShowDotFiles()),actionCollection,"show_dot_files"); - d->mSortAction=new TDESelectAction(i18n("Sort"), 0, TQT_TQOBJECT(this), TQT_SLOT(setSorting()), actionCollection, "view_sort"); + d->mSortAction=new TDESelectAction(i18n("Sort"), 0, this, TQT_SLOT(setSorting()), actionCollection, "view_sort"); TQStringList sortItems; sortItems << i18n("By Name") << i18n("By Date") << i18n("By Size"); d->mSortAction->setItems(sortItems); d->mSortAction->setCurrentItem(0); - d->mRevertSortAction=new TDEToggleAction(i18n("Descending"),0, TQT_TQOBJECT(this), TQT_SLOT(setSorting()), actionCollection, "descending"); + d->mRevertSortAction=new TDEToggleAction(i18n("Descending"),0, this, TQT_SLOT(setSorting()), actionCollection, "descending"); TQPopupMenu* sortMenu=d->mSortAction->popupMenu(); Q_ASSERT(sortMenu); sortMenu->insertSeparator(); @@ -339,25 +339,25 @@ FileViewController::FileViewController(TQWidget* parent,TDEActionCollection* act mDirLister=new DirLister; mDirLister->setMainWindow(topLevelWidget()); connect(mDirLister,TQT_SIGNAL(clear()), - TQT_TQOBJECT(this),TQT_SLOT(dirListerClear()) ); + this,TQT_SLOT(dirListerClear()) ); connect(mDirLister,TQT_SIGNAL(newItems(const KFileItemList&)), - TQT_TQOBJECT(this),TQT_SLOT(dirListerNewItems(const KFileItemList&)) ); + this,TQT_SLOT(dirListerNewItems(const KFileItemList&)) ); connect(mDirLister,TQT_SIGNAL(deleteItem(KFileItem*)), - TQT_TQOBJECT(this),TQT_SLOT(dirListerDeleteItem(KFileItem*)) ); + this,TQT_SLOT(dirListerDeleteItem(KFileItem*)) ); connect(mDirLister,TQT_SIGNAL(refreshItems(const KFileItemList&)), - TQT_TQOBJECT(this),TQT_SLOT(dirListerRefreshItems(const KFileItemList&)) ); + this,TQT_SLOT(dirListerRefreshItems(const KFileItemList&)) ); connect(mDirLister,TQT_SIGNAL(started(const KURL&)), - TQT_TQOBJECT(this),TQT_SLOT(dirListerStarted()) ); + this,TQT_SLOT(dirListerStarted()) ); connect(mDirLister,TQT_SIGNAL(completed()), - TQT_TQOBJECT(this),TQT_SLOT(dirListerCompleted()) ); + this,TQT_SLOT(dirListerCompleted()) ); connect(mDirLister,TQT_SIGNAL(canceled()), - TQT_TQOBJECT(this),TQT_SLOT(dirListerCanceled()) ); + this,TQT_SLOT(dirListerCanceled()) ); // Propagate canceled signals connect(mDirLister,TQT_SIGNAL(canceled()), @@ -369,19 +369,19 @@ FileViewController::FileViewController(TQWidget* parent,TDEActionCollection* act mFileDetailView->viewport()->installEventFilter(this); connect(mFileDetailView,TQT_SIGNAL(executed(TQListViewItem*)), - TQT_TQOBJECT(this),TQT_SLOT(slotViewExecuted()) ); + this,TQT_SLOT(slotViewExecuted()) ); connect(mFileDetailView,TQT_SIGNAL(returnPressed(TQListViewItem*)), - TQT_TQOBJECT(this),TQT_SLOT(slotViewExecuted()) ); + this,TQT_SLOT(slotViewExecuted()) ); connect(mFileDetailView,TQT_SIGNAL(currentChanged(TQListViewItem*)), - TQT_TQOBJECT(this),TQT_SLOT(slotViewClicked()) ); + this,TQT_SLOT(slotViewClicked()) ); connect(mFileDetailView,TQT_SIGNAL(selectionChanged()), - TQT_TQOBJECT(this),TQT_SLOT(slotViewClicked()) ); + this,TQT_SLOT(slotViewClicked()) ); connect(mFileDetailView,TQT_SIGNAL(clicked(TQListViewItem*)), - TQT_TQOBJECT(this),TQT_SLOT(slotViewClicked()) ); + this,TQT_SLOT(slotViewClicked()) ); connect(mFileDetailView,TQT_SIGNAL(contextMenu(TDEListView*, TQListViewItem*, const TQPoint&)), - TQT_TQOBJECT(this),TQT_SLOT(openContextMenu(TDEListView*, TQListViewItem*, const TQPoint&)) ); + this,TQT_SLOT(openContextMenu(TDEListView*, TQListViewItem*, const TQPoint&)) ); connect(mFileDetailView,TQT_SIGNAL(dropped(TQDropEvent*,KFileItem*)), - TQT_TQOBJECT(this),TQT_SLOT(openDropURLMenu(TQDropEvent*, KFileItem*)) ); + this,TQT_SLOT(openDropURLMenu(TQDropEvent*, KFileItem*)) ); connect(mFileDetailView, TQT_SIGNAL(sortingChanged(TQDir::SortSpec)), this, TQT_SLOT(updateSortMenu(TQDir::SortSpec)) ); connect(mFileDetailView, TQT_SIGNAL(doubleClicked(TQListViewItem*)), @@ -395,26 +395,26 @@ FileViewController::FileViewController(TQWidget* parent,TDEActionCollection* act mFileThumbnailView->viewport()->installEventFilter(this); connect(mFileThumbnailView,TQT_SIGNAL(executed(TQIconViewItem*)), - TQT_TQOBJECT(this),TQT_SLOT(slotViewExecuted()) ); + this,TQT_SLOT(slotViewExecuted()) ); connect(mFileThumbnailView,TQT_SIGNAL(returnPressed(TQIconViewItem*)), - TQT_TQOBJECT(this),TQT_SLOT(slotViewExecuted()) ); + this,TQT_SLOT(slotViewExecuted()) ); connect(mFileThumbnailView,TQT_SIGNAL(currentChanged(TQIconViewItem*)), - TQT_TQOBJECT(this),TQT_SLOT(slotViewClicked()) ); + this,TQT_SLOT(slotViewClicked()) ); connect(mFileThumbnailView,TQT_SIGNAL(selectionChanged()), - TQT_TQOBJECT(this),TQT_SLOT(slotViewClicked()) ); + this,TQT_SLOT(slotViewClicked()) ); connect(mFileThumbnailView,TQT_SIGNAL(clicked(TQIconViewItem*)), - TQT_TQOBJECT(this),TQT_SLOT(slotViewClicked()) ); + this,TQT_SLOT(slotViewClicked()) ); connect(mFileThumbnailView,TQT_SIGNAL(contextMenuRequested(TQIconViewItem*,const TQPoint&)), - TQT_TQOBJECT(this),TQT_SLOT(openContextMenu(TQIconViewItem*,const TQPoint&)) ); + this,TQT_SLOT(openContextMenu(TQIconViewItem*,const TQPoint&)) ); connect(mFileThumbnailView,TQT_SIGNAL(dropped(TQDropEvent*,KFileItem*)), - TQT_TQOBJECT(this),TQT_SLOT(openDropURLMenu(TQDropEvent*, KFileItem*)) ); + this,TQT_SLOT(openDropURLMenu(TQDropEvent*, KFileItem*)) ); connect(mFileThumbnailView, TQT_SIGNAL(doubleClicked(TQIconViewItem*)), this, TQT_SLOT(slotViewDoubleClicked()) ); connect(mFileThumbnailView, TQT_SIGNAL(selectionChanged()), this, TQT_SIGNAL(selectionChanged()) ); // Thumbnail details dialog - TDEAction* thumbnailDetailsDialogAction=new TDEAction(i18n("Edit Thumbnail Details..."), "configure", 0, TQT_TQOBJECT(mFileThumbnailView), TQT_SLOT(showThumbnailDetailsDialog()), actionCollection, "thumbnail_details_dialog"); + TDEAction* thumbnailDetailsDialogAction=new TDEAction(i18n("Edit Thumbnail Details..."), "configure", 0, mFileThumbnailView, TQT_SLOT(showThumbnailDetailsDialog()), actionCollection, "thumbnail_details_dialog"); connect(mBottomThumbnailMode, TQT_SIGNAL(toggled(bool)), thumbnailDetailsDialogAction, TQT_SLOT(setEnabled(bool)) ); @@ -542,13 +542,13 @@ void FileViewController::setFileNameToSelect(const TQString& fileName) { void FileViewController::prefetch( KFileItem* item ) { prefetchDone(); if( item == NULL ) return; - mPrefetch = ImageLoader::loader( item->url(), TQT_TQOBJECT(this), BUSY_PRELOADING ); + mPrefetch = ImageLoader::loader( item->url(), this, BUSY_PRELOADING ); connect( mPrefetch, TQT_SIGNAL( imageLoaded( bool )), TQT_SLOT( prefetchDone())); } void FileViewController::prefetchDone() { if( mPrefetch != NULL ) { - mPrefetch->release( TQT_TQOBJECT(this) ); + mPrefetch->release( this ); mPrefetch = NULL; } } @@ -1088,7 +1088,7 @@ void FileViewController::dirListerCompleted() { LOG(""); // Delay the code to be executed when the dir lister has completed its job // to avoid crash in KDirLister (see bug #57991) - TQTimer::singleShot(0,TQT_TQOBJECT(this),TQT_SLOT(delayedDirListerCompleted())); + TQTimer::singleShot(0,this,TQT_SLOT(delayedDirListerCompleted())); } diff --git a/src/gvcore/imageview.cpp b/src/gvcore/imageview.cpp index 3f1db66..2525b7b 100644 --- a/src/gvcore/imageview.cpp +++ b/src/gvcore/imageview.cpp @@ -279,8 +279,7 @@ public: case TQEvent::KeyPress: case TQEvent::KeyRelease: case TQEvent::AccelOverride: - return static_cast< ImageView* >( TQT_TQWIDGET(parent())) - ->viewportKeyEvent(static_cast<TQKeyEvent*>(event)); + return static_cast< ImageView* >(parent())->viewportKeyEvent(static_cast<TQKeyEvent*>(event)); default: break; } @@ -326,31 +325,31 @@ ImageView::ImageView(TQWidget* parent,Document* document, TDEActionCollection* a // Create actions d->mZoomToFit=new TDEToggleAction(i18n("Fit to &Window"),"zoom-fit-best",0,d->mActionCollection,"view_zoom_to_fit"); connect(d->mZoomToFit,TQT_SIGNAL(toggled(bool)), - TQT_TQOBJECT(this), TQT_SLOT(setZoomToFit(bool)) ); + this, TQT_SLOT(setZoomToFit(bool)) ); d->mZoomToWidth=new TDEToggleAction(i18n("Fit to &Width"),0,0,d->mActionCollection,"view_zoom_to_width"); connect(d->mZoomToWidth,TQT_SIGNAL(toggled(bool)), - TQT_TQOBJECT(this), TQT_SLOT(setZoomToWidth(bool)) ); + this, TQT_SLOT(setZoomToWidth(bool)) ); d->mZoomToHeight=new TDEToggleAction(i18n("Fit to &Height"),0,0,d->mActionCollection,"view_zoom_to_height"); connect(d->mZoomToHeight,TQT_SIGNAL(toggled(bool)), - TQT_TQOBJECT(this), TQT_SLOT(setZoomToHeight(bool)) ); + this, TQT_SLOT(setZoomToHeight(bool)) ); - d->mZoomIn=KStdAction::zoomIn(TQT_TQOBJECT(this),TQT_SLOT(slotZoomIn()),d->mActionCollection); + d->mZoomIn=KStdAction::zoomIn(this,TQT_SLOT(slotZoomIn()),d->mActionCollection); - d->mZoomOut=KStdAction::zoomOut(TQT_TQOBJECT(this),TQT_SLOT(slotZoomOut()),d->mActionCollection); + d->mZoomOut=KStdAction::zoomOut(this,TQT_SLOT(slotZoomOut()),d->mActionCollection); - d->mResetZoom=KStdAction::actualSize(TQT_TQOBJECT(this),TQT_SLOT(slotResetZoom()),d->mActionCollection); + d->mResetZoom=KStdAction::actualSize(this,TQT_SLOT(slotResetZoom()),d->mActionCollection); d->mResetZoom->setIcon("zoom-original"); d->mLockZoom=new TDEToggleAction(i18n("&Lock Zoom"),"system-lock-screen",0,d->mActionCollection,"view_zoom_lock"); d->mLockZoom->setChecked(ImageViewConfig::lockZoom()); connect(d->mLockZoom,TQT_SIGNAL(toggled(bool)), - TQT_TQOBJECT(this), TQT_SLOT(setLockZoom(bool)) ); + this, TQT_SLOT(setLockZoom(bool)) ); d->mZoomCombo=new TQComboBox(true); // Avoid stealing focus d->mZoomCombo->setFocusPolicy(TQWidget::ClickFocus); connect(d->mZoomCombo, TQT_SIGNAL(activated(int)), - TQT_TQOBJECT(this), TQT_SLOT(slotSelectZoom()) ); + this, TQT_SLOT(slotSelectZoom()) ); d->mZoomComboAction=new KWidgetAction(d->mZoomCombo, i18n("Zoom"), 0, 0, 0, d->mActionCollection, "view_zoom_to"); @@ -363,41 +362,41 @@ ImageView::ImageView(TQWidget* parent,Document* document, TDEActionCollection* a d->initZoomCombo(); d->mAdjustBCG=new TDEAction(i18n("Adjust Brightness/Contrast/Gamma"), "colorize", 0, - TQT_TQOBJECT(this), TQT_SLOT(showBCGDialog()), d->mActionCollection, "adjust_bcg"); + this, TQT_SLOT(showBCGDialog()), d->mActionCollection, "adjust_bcg"); d->mIncreaseGamma=new TDEAction(i18n("Increase Gamma"),0,CTRL+Key_G, - TQT_TQOBJECT(this), TQT_SLOT(increaseGamma()),d->mActionCollection,"increase_gamma"); + this, TQT_SLOT(increaseGamma()),d->mActionCollection,"increase_gamma"); d->mDecreaseGamma=new TDEAction(i18n("Decrease Gamma"),0,SHIFT+CTRL+Key_G, - TQT_TQOBJECT(this), TQT_SLOT(decreaseGamma()),d->mActionCollection,"decrease_gamma"); + this, TQT_SLOT(decreaseGamma()),d->mActionCollection,"decrease_gamma"); d->mIncreaseBrightness=new TDEAction(i18n("Increase Brightness" ),0,CTRL+Key_B, - TQT_TQOBJECT(this), TQT_SLOT(increaseBrightness()),d->mActionCollection,"increase_brightness"); + this, TQT_SLOT(increaseBrightness()),d->mActionCollection,"increase_brightness"); d->mDecreaseBrightness=new TDEAction(i18n("Decrease Brightness" ),0,SHIFT+CTRL+Key_B, - TQT_TQOBJECT(this), TQT_SLOT(decreaseBrightness()),d->mActionCollection,"decrease_brightness"); + this, TQT_SLOT(decreaseBrightness()),d->mActionCollection,"decrease_brightness"); d->mIncreaseContrast=new TDEAction(i18n("Increase Contrast" ),0,CTRL+Key_C, - TQT_TQOBJECT(this), TQT_SLOT(increaseContrast()),d->mActionCollection,"increase_contrast"); + this, TQT_SLOT(increaseContrast()),d->mActionCollection,"increase_contrast"); d->mDecreaseContrast=new TDEAction(i18n("Decrease Contrast" ),0,SHIFT+CTRL+Key_C, - TQT_TQOBJECT(this), TQT_SLOT(decreaseContrast()),d->mActionCollection,"decrease_contrast"); + this, TQT_SLOT(decreaseContrast()),d->mActionCollection,"decrease_contrast"); // Connect to some interesting signals connect(d->mDocument,TQT_SIGNAL(loaded(const KURL&)), - TQT_TQOBJECT(this), TQT_SLOT(slotLoaded()) ); + this, TQT_SLOT(slotLoaded()) ); connect(d->mDocument,TQT_SIGNAL(loading()), - TQT_TQOBJECT(this), TQT_SLOT( loadingStarted()) ); + this, TQT_SLOT( loadingStarted()) ); connect(d->mDocument,TQT_SIGNAL(modified()), - TQT_TQOBJECT(this), TQT_SLOT(slotModified()) ); + this, TQT_SLOT(slotModified()) ); connect(d->mDocument, TQT_SIGNAL(sizeUpdated()), - TQT_TQOBJECT(this), TQT_SLOT(slotImageSizeUpdated()) ); + this, TQT_SLOT(slotImageSizeUpdated()) ); connect(d->mDocument, TQT_SIGNAL(rectUpdated(const TQRect&)), - TQT_TQOBJECT(this), TQT_SLOT(slotImageRectUpdated(const TQRect&)) ); + this, TQT_SLOT(slotImageRectUpdated(const TQRect&)) ); connect(&d->mPendingPaintTimer,TQT_SIGNAL(timeout()), - TQT_TQOBJECT(this), TQT_SLOT(checkPendingOperations()) ); + this, TQT_SLOT(checkPendingOperations()) ); connect(BusyLevelManager::instance(),TQT_SIGNAL(busyLevelChanged(BusyLevel)), - TQT_TQOBJECT(this), TQT_SLOT(slotBusyLevelChanged(BusyLevel) )); + this, TQT_SLOT(slotBusyLevelChanged(BusyLevel) )); // This event filter is here to make sure the pixmap view is aware of the changes // in the keyboard modifiers, even if it isn't focused. However, making this widget @@ -749,12 +748,12 @@ void ImageView::scheduleOperation( Operation operation ) void ImageView::updateBusyLevels() { if( !d->mPendingPaintTimer.isActive()) { - BusyLevelManager::instance()->setBusyLevel( TQT_TQOBJECT(this), BUSY_NONE ); + BusyLevelManager::instance()->setBusyLevel( this, BUSY_NONE ); } else if( !d->mPendingPaints.isEmpty() && !(*d->mPendingPaints.begin()).smooth ) { - BusyLevelManager::instance()->setBusyLevel( TQT_TQOBJECT(this), BUSY_PAINTING ); + BusyLevelManager::instance()->setBusyLevel( this, BUSY_PAINTING ); } else if(( d->mPendingOperations & SMOOTH_PASS ) || ( !d->mPendingPaints.isEmpty() && (*d->mPendingPaints.begin()).smooth )) { - BusyLevelManager::instance()->setBusyLevel( TQT_TQOBJECT(this), BUSY_SMOOTHING ); + BusyLevelManager::instance()->setBusyLevel( this, BUSY_SMOOTHING ); } else { assert( false ); } diff --git a/src/gvcore/imageviewcontroller.cpp b/src/gvcore/imageviewcontroller.cpp index 008b3d4..03e81dc 100644 --- a/src/gvcore/imageviewcontroller.cpp +++ b/src/gvcore/imageviewcontroller.cpp @@ -153,7 +153,7 @@ struct ImageViewController::Private { TQString library=service->library(); Q_ASSERT(!library.isNull()); LOG("Library:" << library); - mPlayerPart = KParts::ComponentFactory::createPartInstanceFromService<KParts::ReadOnlyPart>(service, TQT_TQWIDGET(mStack), 0, TQT_TQOBJECT(mStack), 0); + mPlayerPart = KParts::ComponentFactory::createPartInstanceFromService<KParts::ReadOnlyPart>(service, mStack, 0, mStack, 0); if (!mPlayerPart) { kdWarning() << "Failed to instantiate KPart from library " << library << endl; return; @@ -394,7 +394,7 @@ void ImageViewController::slotAutoHide() { } // Only hide cursor if we are not over a dialog - TQWidget* widget = TQT_TQWIDGET(TDEApplication::kApplication()->activeWindow()); + TQWidget* widget = TDEApplication::kApplication()->activeWindow(); if (!widget || !widget->inherits("TQDialog")) { TQApplication::setOverrideCursor(blankCursor); d->mCursorHidden=true; |