diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-12-30 16:28:59 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-12-30 16:28:59 +0900 |
commit | 97ea83f8b23cc80320874b97b671c736a83c378a (patch) | |
tree | 8da6950abf3ecb5696ffd969bac30d6e05ce9620 /src/gvcore | |
parent | 831670cd1aa76b314b447cfa2d9c71603cbbf43e (diff) | |
download | gwenview-97ea83f8b23cc80320874b97b671c736a83c378a.tar.gz gwenview-97ea83f8b23cc80320874b97b671c736a83c378a.zip |
Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'src/gvcore')
25 files changed, 275 insertions, 275 deletions
diff --git a/src/gvcore/bcgdialog.cpp b/src/gvcore/bcgdialog.cpp index c05869b..ccecdfb 100644 --- a/src/gvcore/bcgdialog.cpp +++ b/src/gvcore/bcgdialog.cpp @@ -48,15 +48,15 @@ BCGDialog::BCGDialog(ImageView* view) d->mView=view; d->mContent=new BCGDialogBase(this); setMainWidget(d->mContent); - connect(d->mContent->mBSlider, TQT_SIGNAL(valueChanged(int)), - view, TQT_SLOT(setBrightness(int)) ); - connect(d->mContent->mCSlider, TQT_SIGNAL(valueChanged(int)), - view, TQT_SLOT(setContrast(int)) ); - connect(d->mContent->mGSlider, TQT_SIGNAL(valueChanged(int)), - view, TQT_SLOT(setGamma(int)) ); + connect(d->mContent->mBSlider, TQ_SIGNAL(valueChanged(int)), + view, TQ_SLOT(setBrightness(int)) ); + connect(d->mContent->mCSlider, TQ_SIGNAL(valueChanged(int)), + view, TQ_SLOT(setContrast(int)) ); + connect(d->mContent->mGSlider, TQ_SIGNAL(valueChanged(int)), + view, TQ_SLOT(setGamma(int)) ); - connect(view, TQT_SIGNAL(bcgChanged()), - this, TQT_SLOT(updateFromImageView()) ); + connect(view, TQ_SIGNAL(bcgChanged()), + this, TQ_SLOT(updateFromImageView()) ); } diff --git a/src/gvcore/busylevelmanager.cpp b/src/gvcore/busylevelmanager.cpp index 319c863..09716f4 100644 --- a/src/gvcore/busylevelmanager.cpp +++ b/src/gvcore/busylevelmanager.cpp @@ -40,8 +40,8 @@ namespace Gwenview { BusyLevelManager::BusyLevelManager() : mCurrentBusyLevel( BUSY_NONE ) { - connect( &mDelayedBusyLevelTimer, TQT_SIGNAL( timeout()), - this, TQT_SLOT( delayedBusyLevelChanged())); + connect( &mDelayedBusyLevelTimer, TQ_SIGNAL( timeout()), + this, TQ_SLOT( delayedBusyLevelChanged())); } BusyLevelManager* BusyLevelManager::instance() { @@ -68,12 +68,12 @@ void BusyLevelManager::setBusyLevel( TQObject* obj, BusyLevel level ) { if( level > BUSY_NONE ) { if( mBusyLevels.contains( obj ) && mBusyLevels[ obj ] == level ) return; if( !mBusyLevels.contains( obj )) { - connect( obj, TQT_SIGNAL( destroyed( TQObject* )), this, TQT_SLOT( objectDestroyed( TQObject* ))); + connect( obj, TQ_SIGNAL( destroyed( TQObject* )), this, TQ_SLOT( objectDestroyed( TQObject* ))); } mBusyLevels[ obj ] = level; } else { mBusyLevels.remove( obj ); - disconnect( obj, TQT_SIGNAL( destroyed( TQObject* )), this, TQT_SLOT( objectDestroyed( TQObject* ))); + disconnect( obj, TQ_SIGNAL( destroyed( TQObject* )), this, TQ_SLOT( objectDestroyed( TQObject* ))); } mDelayedBusyLevelTimer.start( 0, true ); } diff --git a/src/gvcore/deletedialog.cpp b/src/gvcore/deletedialog.cpp index 3bedf12..7cf30e5 100644 --- a/src/gvcore/deletedialog.cpp +++ b/src/gvcore/deletedialog.cpp @@ -55,7 +55,7 @@ DeleteDialog::DeleteDialog(TQWidget *parent, const char *name) : bool deleteInstead = ! FileOperationConfig::deleteToTrash(); m_widget->ddShouldDelete->setChecked(deleteInstead); - connect(m_widget->ddShouldDelete, TQT_SIGNAL(toggled(bool)), TQT_SLOT(updateUI())); + connect(m_widget->ddShouldDelete, TQ_SIGNAL(toggled(bool)), TQ_SLOT(updateUI())); } void DeleteDialog::setURLList(const KURL::List &files) diff --git a/src/gvcore/document.cpp b/src/gvcore/document.cpp index c718e1d..9174a0f 100644 --- a/src/gvcore/document.cpp +++ b/src/gvcore/document.cpp @@ -124,10 +124,10 @@ Document::Document(TQObject* parent) static Gwenview::XCursorFormatType sXCursorFormatType; } - connect( this, TQT_SIGNAL( loading()), - this, TQT_SLOT( slotLoading())); - connect( this, TQT_SIGNAL( loaded(const KURL&)), - this, TQT_SLOT( slotLoaded())); + connect( this, TQ_SIGNAL( loading()), + this, TQ_SLOT( slotLoading())); + connect( this, TQ_SIGNAL( loaded(const KURL&)), + this, TQ_SLOT( slotLoaded())); } @@ -196,8 +196,8 @@ void Document::setURL(const KURL& paramURL) { d->mURL = localURL; // this may be fixed after stat() is complete, but set at least something d->mStatJob = TDEIO::stat( localURL, !localURL.isLocalFile() ); d->mStatJob->setWindow(TDEApplication::kApplication()->mainWidget()); - connect( d->mStatJob, TQT_SIGNAL( result (TDEIO::Job *) ), - this, TQT_SLOT( slotStatResult (TDEIO::Job *) ) ); + connect( d->mStatJob, TQ_SIGNAL( result (TDEIO::Job *) ), + this, TQ_SLOT( slotStatResult (TDEIO::Job *) ) ); } @@ -560,12 +560,12 @@ void Document::switchToImpl(DocumentImpl* impl) { delete d->mImpl; d->mImpl=impl; - connect(d->mImpl, TQT_SIGNAL(finished(bool)), - this, TQT_SLOT(slotFinished(bool)) ); - connect(d->mImpl, TQT_SIGNAL(sizeUpdated()), - this, TQT_SIGNAL(sizeUpdated()) ); - connect(d->mImpl, TQT_SIGNAL(rectUpdated(const TQRect&)), - this, TQT_SIGNAL(rectUpdated(const TQRect&)) ); + connect(d->mImpl, TQ_SIGNAL(finished(bool)), + this, TQ_SLOT(slotFinished(bool)) ); + connect(d->mImpl, TQ_SIGNAL(sizeUpdated()), + this, TQ_SIGNAL(sizeUpdated()) ); + connect(d->mImpl, TQ_SIGNAL(rectUpdated(const TQRect&)), + this, TQ_SIGNAL(rectUpdated(const TQRect&)) ); d->mImpl->init(); } diff --git a/src/gvcore/documentanimatedloadedimpl.cpp b/src/gvcore/documentanimatedloadedimpl.cpp index cff373c..e8f625c 100644 --- a/src/gvcore/documentanimatedloadedimpl.cpp +++ b/src/gvcore/documentanimatedloadedimpl.cpp @@ -54,7 +54,7 @@ DocumentAnimatedLoadedImpl::DocumentAnimatedLoadedImpl(Document* document, const d=new DocumentAnimatedLoadedImplPrivate; d->mFrames = frames; d->mCurrentFrame = -1; - connect( &d->mFrameTimer, TQT_SIGNAL( timeout()), TQT_SLOT( nextFrame())); + connect( &d->mFrameTimer, TQ_SIGNAL( timeout()), TQ_SLOT( nextFrame())); } void DocumentAnimatedLoadedImpl::init() { diff --git a/src/gvcore/documentloadingimpl.cpp b/src/gvcore/documentloadingimpl.cpp index 1b29fe1..091982a 100644 --- a/src/gvcore/documentloadingimpl.cpp +++ b/src/gvcore/documentloadingimpl.cpp @@ -85,10 +85,10 @@ void DocumentLoadingImpl::init() { switchToImpl(new DocumentOtherLoadedImpl(mDocument)); return; } - connect( d->mLoader, TQT_SIGNAL( urlKindDetermined()), TQT_SLOT( slotURLKindDetermined() )); - connect( d->mLoader, TQT_SIGNAL( sizeLoaded( int, int )), TQT_SLOT( sizeLoaded( int, int ))); - connect( d->mLoader, TQT_SIGNAL( imageChanged( const TQRect& )), TQT_SLOT( imageChanged( const TQRect& ))); - connect( d->mLoader, TQT_SIGNAL( imageLoaded( bool )), TQT_SLOT( imageLoaded( bool ))); + connect( d->mLoader, TQ_SIGNAL( urlKindDetermined()), TQ_SLOT( slotURLKindDetermined() )); + connect( d->mLoader, TQ_SIGNAL( sizeLoaded( int, int )), TQ_SLOT( sizeLoaded( int, int ))); + connect( d->mLoader, TQ_SIGNAL( imageChanged( const TQRect& )), TQ_SLOT( imageChanged( const TQRect& ))); + connect( d->mLoader, TQ_SIGNAL( imageLoaded( bool )), TQ_SLOT( imageLoaded( bool ))); // it's possible the loader already has the whole or at least part of the image loaded TQImage image = d->mLoader->processedImage(); diff --git a/src/gvcore/externaltoolaction.cpp b/src/gvcore/externaltoolaction.cpp index f123516..27be02b 100644 --- a/src/gvcore/externaltoolaction.cpp +++ b/src/gvcore/externaltoolaction.cpp @@ -38,8 +38,8 @@ ExternalToolAction::ExternalToolAction( { setText(service->name()); setIcon(service->icon()); - connect(this, TQT_SIGNAL(activated()), - this, TQT_SLOT(openExternalTool()) ); + connect(this, TQ_SIGNAL(activated()), + this, TQ_SLOT(openExternalTool()) ); } diff --git a/src/gvcore/externaltoolcontext.cpp b/src/gvcore/externaltoolcontext.cpp index 8b68726..1ccc2aa 100644 --- a/src/gvcore/externaltoolcontext.cpp +++ b/src/gvcore/externaltoolcontext.cpp @@ -67,11 +67,11 @@ TQPopupMenu* ExternalToolContext::popupMenu() { menu->insertSeparator(); menu->insertItem(i18n("Other..."), - this, TQT_SLOT(showOpenWithDialog()) ); + this, TQ_SLOT(showOpenWithDialog()) ); menu->insertItem( SmallIcon("configure"), i18n("Configure External Tools..."), - this, TQT_SLOT(showExternalToolDialog()) ); + this, TQ_SLOT(showExternalToolDialog()) ); return menu; } diff --git a/src/gvcore/externaltooldialog.cpp b/src/gvcore/externaltooldialog.cpp index bd58298..5ccc277 100644 --- a/src/gvcore/externaltooldialog.cpp +++ b/src/gvcore/externaltooldialog.cpp @@ -273,16 +273,16 @@ ExternalToolDialog::ExternalToolDialog(TQWidget* parent) d->mContent->mToolListView->viewport()->installEventFilter( new ToolListViewFilterObject(this, d)); - connect( d->mContent->mToolListView, TQT_SIGNAL(selectionChanged(TQListViewItem*)), - this, TQT_SLOT(slotSelectionChanged(TQListViewItem*)) ); - connect( d->mContent->mAddButton, TQT_SIGNAL(clicked()), - this, TQT_SLOT(addTool()) ); - connect( d->mContent->mDeleteButton, TQT_SIGNAL(clicked()), - this, TQT_SLOT(deleteTool()) ); - connect( d->mContent->mHelp, TQT_SIGNAL(leftClickedURL()), - this, TQT_SLOT(showCommandHelp()) ); - connect( d->mContent->mMoreTools, TQT_SIGNAL(leftClickedURL(const TQString&)), - this, TQT_SLOT(openURL(const TQString&)) ); + connect( d->mContent->mToolListView, TQ_SIGNAL(selectionChanged(TQListViewItem*)), + this, TQ_SLOT(slotSelectionChanged(TQListViewItem*)) ); + connect( d->mContent->mAddButton, TQ_SIGNAL(clicked()), + this, TQ_SLOT(addTool()) ); + connect( d->mContent->mDeleteButton, TQ_SIGNAL(clicked()), + this, TQ_SLOT(deleteTool()) ); + connect( d->mContent->mHelp, TQ_SIGNAL(leftClickedURL()), + this, TQ_SLOT(showCommandHelp()) ); + connect( d->mContent->mMoreTools, TQ_SIGNAL(leftClickedURL(const TQString&)), + this, TQ_SLOT(openURL(const TQString&)) ); TDEListView* view=d->mContent->mToolListView; if (view->firstChild()) { diff --git a/src/gvcore/filedetailview.cpp b/src/gvcore/filedetailview.cpp index b965ee3..50d2b3f 100644 --- a/src/gvcore/filedetailview.cpp +++ b/src/gvcore/filedetailview.cpp @@ -87,29 +87,29 @@ FileDetailView::FileDetailView(TQWidget *parent, const char *name) setShowSortIndicator( TRUE ); setAllColumnsShowFocus( TRUE ); - connect( header(), TQT_SIGNAL( sectionClicked(int)), - TQT_SLOT(slotSortingChanged(int) )); + connect( header(), TQ_SIGNAL( sectionClicked(int)), + TQ_SLOT(slotSortingChanged(int) )); - connect( this, TQT_SIGNAL( returnPressed(TQListViewItem *) ), - TQT_SLOT( slotActivate( TQListViewItem *) ) ); + connect( this, TQ_SIGNAL( returnPressed(TQListViewItem *) ), + TQ_SLOT( slotActivate( TQListViewItem *) ) ); - connect( this, TQT_SIGNAL( clicked(TQListViewItem *, const TQPoint&, int)), - TQT_SLOT( selected( TQListViewItem *) ) ); - connect( this, TQT_SIGNAL( doubleClicked(TQListViewItem *, const TQPoint&, int)), - TQT_SLOT( slotActivate( TQListViewItem *) ) ); + connect( this, TQ_SIGNAL( clicked(TQListViewItem *, const TQPoint&, int)), + TQ_SLOT( selected( TQListViewItem *) ) ); + connect( this, TQ_SIGNAL( doubleClicked(TQListViewItem *, const TQPoint&, int)), + TQ_SLOT( slotActivate( TQListViewItem *) ) ); - connect( this, TQT_SIGNAL(contextMenuRequested( TQListViewItem *, + connect( this, TQ_SIGNAL(contextMenuRequested( TQListViewItem *, const TQPoint &, int )), - this, TQT_SLOT( slotActivateMenu( TQListViewItem *, const TQPoint& ))); + this, TQ_SLOT( slotActivateMenu( TQListViewItem *, const TQPoint& ))); TQListView::setSelectionMode( TQListView::Extended ); - connect( this, TQT_SIGNAL( selectionChanged() ), - TQT_SLOT( slotSelectionChanged() )); + connect( this, TQ_SIGNAL( selectionChanged() ), + TQ_SLOT( slotSelectionChanged() )); // FileViewStack need to be aware of sort changes, to update the sort menu - connect( sig, TQT_SIGNAL(sortingChanged(TQDir::SortSpec)), - this, TQT_SIGNAL(sortingChanged(TQDir::SortSpec)) ); + connect( sig, TQ_SIGNAL(sortingChanged(TQDir::SortSpec)), + this, TQ_SIGNAL(sortingChanged(TQDir::SortSpec)) ); setSorting( sorting() ); diff --git a/src/gvcore/fileoperation.cpp b/src/gvcore/fileoperation.cpp index d775113..cd26ade 100644 --- a/src/gvcore/fileoperation.cpp +++ b/src/gvcore/fileoperation.cpp @@ -51,40 +51,40 @@ void linkTo(const KURL::List& srcURL,TQWidget* parent) { void moveTo(const KURL::List& srcURL,TQWidget* parent,TQObject* receiver,const char* slot) { FileOpObject* op=new FileOpMoveToObject(srcURL,parent); - if (receiver && slot) TQObject::connect(op,TQT_SIGNAL(success()),receiver,slot); + if (receiver && slot) TQObject::connect(op,TQ_SIGNAL(success()),receiver,slot); (*op)(); } void makeDir(const KURL& parentURL, TQWidget* parent, TQObject* receiver, const char* slot) { FileOpObject* op=new FileOpMakeDirObject(parentURL, parent); - if (receiver && slot) TQObject::connect(op,TQT_SIGNAL(success()),receiver,slot); + if (receiver && slot) TQObject::connect(op,TQ_SIGNAL(success()),receiver,slot); (*op)(); } void del(const KURL::List& url,TQWidget* parent,TQObject* receiver,const char* slot) { FileOpObject* op = new FileOpDelObject(url,parent); - if (receiver && slot) TQObject::connect(op,TQT_SIGNAL(success()),receiver,slot); + if (receiver && slot) TQObject::connect(op,TQ_SIGNAL(success()),receiver,slot); (*op)(); } void trash(const KURL::List& url, TQWidget* parent, TQObject* receiver, const char* slot) { FileOpObject* op = new FileOpTrashObject(url,parent); - if (receiver && slot) TQObject::connect(op,TQT_SIGNAL(success()),receiver,slot); + if (receiver && slot) TQObject::connect(op,TQ_SIGNAL(success()),receiver,slot); (*op)(); } void realDelete(const KURL::List& url, TQWidget* parent, TQObject* receiver, const char* slot) { FileOpObject* op = new FileOpRealDeleteObject(url,parent); - if (receiver && slot) TQObject::connect(op,TQT_SIGNAL(success()),receiver,slot); + if (receiver && slot) TQObject::connect(op,TQ_SIGNAL(success()),receiver,slot); (*op)(); } void rename(const KURL& url,TQWidget* parent,TQObject* receiver,const char* slot) { FileOpObject* op=new FileOpRenameObject(url,parent); - if (receiver && slot) TQObject::connect(op,TQT_SIGNAL(renamed(const TQString&)),receiver,slot); + if (receiver && slot) TQObject::connect(op,TQ_SIGNAL(renamed(const TQString&)),receiver,slot); (*op)(); } @@ -92,11 +92,11 @@ 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(menu, urls, target, wasMoved); menu->insertItem( SmallIcon("goto"), i18n("&Move Here"), - context, TQT_SLOT(move()) ); + context, TQ_SLOT(move()) ); menu->insertItem( SmallIcon("edit-copy"), i18n("&Copy Here"), - context, TQT_SLOT(copy()) ); + context, TQ_SLOT(copy()) ); menu->insertItem( SmallIcon("www"), i18n("&Link Here"), - context, TQT_SLOT(link()) ); + context, TQ_SLOT(link()) ); } diff --git a/src/gvcore/fileopobject.cpp b/src/gvcore/fileopobject.cpp index 9257af9..6e567d3 100644 --- a/src/gvcore/fileopobject.cpp +++ b/src/gvcore/fileopobject.cpp @@ -89,8 +89,8 @@ void FileOpObject::slotResult(TDEIO::Job* job) { void FileOpObject::polishJob(TDEIO::Job* job) { job->setWindow(mParent->topLevelWidget()); - connect( job, TQT_SIGNAL( result(TDEIO::Job*) ), - this, TQT_SLOT( slotResult(TDEIO::Job*) ) ); + connect( job, TQ_SIGNAL( result(TDEIO::Job*) ), + this, TQ_SLOT( slotResult(TDEIO::Job*) ) ); } diff --git a/src/gvcore/filethumbnailview.cpp b/src/gvcore/filethumbnailview.cpp index 8d883f8..b0c47b2 100644 --- a/src/gvcore/filethumbnailview.cpp +++ b/src/gvcore/filethumbnailview.cpp @@ -186,25 +186,25 @@ FileThumbnailView::FileThumbnailView(TQWidget* parent) // item is unselected after being clicked, so we use TDEIconView::Select mode // and emit the execute() signal with slotClicked() ourself. setMode(TDEIconView::Select); - connect(this, TQT_SIGNAL(clicked(TQIconViewItem*)), - this, TQT_SLOT(slotClicked(TQIconViewItem*)) ); - connect(this, TQT_SIGNAL(doubleClicked(TQIconViewItem*)), - this, TQT_SLOT(slotDoubleClicked(TQIconViewItem*)) ); - - connect(this, TQT_SIGNAL(dropped(TQDropEvent*,const TQValueList<TQIconDragItem>&)), - this, TQT_SLOT(slotDropped(TQDropEvent*)) ); - connect(this, TQT_SIGNAL( contentsMoving( int, int )), - this, TQT_SLOT( slotContentsMoving( int, int ))); - connect(this, TQT_SIGNAL(currentChanged(TQIconViewItem*)), - this, TQT_SLOT(slotCurrentChanged(TQIconViewItem*)) ); + connect(this, TQ_SIGNAL(clicked(TQIconViewItem*)), + this, TQ_SLOT(slotClicked(TQIconViewItem*)) ); + connect(this, TQ_SIGNAL(doubleClicked(TQIconViewItem*)), + this, TQ_SLOT(slotDoubleClicked(TQIconViewItem*)) ); + + connect(this, TQ_SIGNAL(dropped(TQDropEvent*,const TQValueList<TQIconDragItem>&)), + this, TQ_SLOT(slotDropped(TQDropEvent*)) ); + connect(this, TQ_SIGNAL( contentsMoving( int, int )), + this, TQ_SLOT( slotContentsMoving( int, int ))); + connect(this, TQ_SIGNAL(currentChanged(TQIconViewItem*)), + this, TQ_SLOT(slotCurrentChanged(TQIconViewItem*)) ); TQIconView::setSelectionMode(Extended); - connect(BusyLevelManager::instance(), TQT_SIGNAL(busyLevelChanged(BusyLevel)), - this, TQT_SLOT( slotBusyLevelChanged(BusyLevel))); + connect(BusyLevelManager::instance(), TQ_SIGNAL(busyLevelChanged(BusyLevel)), + this, TQ_SLOT( slotBusyLevelChanged(BusyLevel))); - connect(d->mThumbnailUpdateTimer, TQT_SIGNAL(timeout()), - this, TQT_SLOT( startThumbnailUpdate()) ); + connect(d->mThumbnailUpdateTimer, TQ_SIGNAL(timeout()), + this, TQ_SLOT( startThumbnailUpdate()) ); } @@ -367,16 +367,16 @@ void FileThumbnailView::doStartThumbnailUpdate(const KFileItemList* list) { Q_ASSERT(!d->mProgressWidget); d->mProgressWidget=new ProgressWidget(this, imageList.count() ); - connect(d->mProgressWidget->stopButton(), TQT_SIGNAL(clicked()), - this, TQT_SLOT(stopThumbnailUpdate()) ); + connect(d->mProgressWidget->stopButton(), TQ_SIGNAL(clicked()), + this, TQ_SLOT(stopThumbnailUpdate()) ); d->mProgressWidget->show(); d->mThumbnailLoadJob = new ThumbnailLoadJob(&imageList, d->mThumbnailSize); - connect(d->mThumbnailLoadJob, TQT_SIGNAL(thumbnailLoaded(const KFileItem*, const TQPixmap&, const TQSize&)), - this, TQT_SLOT(setThumbnailPixmap(const KFileItem*,const TQPixmap&, const TQSize&)) ); - connect(d->mThumbnailLoadJob, TQT_SIGNAL(result(TDEIO::Job*)), - this, TQT_SLOT(slotUpdateEnded()) ); + connect(d->mThumbnailLoadJob, TQ_SIGNAL(thumbnailLoaded(const KFileItem*, const TQPixmap&, const TQSize&)), + this, TQ_SLOT(setThumbnailPixmap(const KFileItem*,const TQPixmap&, const TQSize&)) ); + connect(d->mThumbnailLoadJob, TQ_SIGNAL(result(TDEIO::Job*)), + this, TQ_SLOT(slotUpdateEnded()) ); slotBusyLevelChanged( BusyLevelManager::instance()->busyLevel()); // start updating at visible position @@ -587,7 +587,7 @@ void FileThumbnailView::showEvent(TQShowEvent* event) { if (!d->mUpdateThumbnailsOnNextShow) return; d->mUpdateThumbnailsOnNextShow=false; - TQTimer::singleShot(0, this, TQT_SLOT(startThumbnailUpdate())); + TQTimer::singleShot(0, this, TQ_SLOT(startThumbnailUpdate())); } @@ -682,7 +682,7 @@ void FileThumbnailView::slotCurrentChanged(TQIconViewItem* item ) { d->mPrefetch = ImageLoader::loader( static_cast<const FileThumbnailViewItem*>( cur->nextItem() )->fileItem()->url(), this, BUSY_PRELOADING ); - connect( d->mPrefetch, TQT_SIGNAL( imageLoaded( bool )), TQT_SLOT( prefetchDone())); + connect( d->mPrefetch, TQ_SIGNAL( imageLoaded( bool )), TQ_SLOT( prefetchDone())); } } } @@ -757,7 +757,7 @@ void FileThumbnailView::keyPressEvent( TQKeyEvent* e ) { d->mPrefetch = ImageLoader::loader( static_cast<const FileThumbnailViewItem*>( next )->fileItem()->url(), this, BUSY_PRELOADING ); - connect( d->mPrefetch, TQT_SIGNAL( imageLoaded( bool )), TQT_SLOT( prefetchDone())); + connect( d->mPrefetch, TQ_SIGNAL( imageLoaded( bool )), TQ_SLOT( prefetchDone())); } } diff --git a/src/gvcore/fileviewcontroller.cpp b/src/gvcore/fileviewcontroller.cpp index b5c073d..4426658 100644 --- a/src/gvcore/fileviewcontroller.cpp +++ b/src/gvcore/fileviewcontroller.cpp @@ -199,18 +199,18 @@ public: mFilterBar->mResetTo->setIconSet(resetIS); TQObject::connect( - mFilterBar->mResetNameCombo, TQT_SIGNAL(clicked()), - that, TQT_SLOT(resetNameFilter()) ); + mFilterBar->mResetNameCombo, TQ_SIGNAL(clicked()), + that, TQ_SLOT(resetNameFilter()) ); TQObject::connect( - mFilterBar->mResetFrom, TQT_SIGNAL(clicked()), - that, TQT_SLOT(resetFromFilter()) ); + mFilterBar->mResetFrom, TQ_SIGNAL(clicked()), + that, TQ_SLOT(resetFromFilter()) ); TQObject::connect( - mFilterBar->mResetTo, TQT_SIGNAL(clicked()), - that, TQT_SLOT(resetToFilter()) ); + mFilterBar->mResetTo, TQ_SIGNAL(clicked()), + that, TQ_SLOT(resetToFilter()) ); TQObject::connect( - mFilterBar->mFilterButton, TQT_SIGNAL(clicked()), - that, TQT_SLOT(applyFilter()) ); + mFilterBar->mFilterButton, TQ_SIGNAL(clicked()), + that, TQ_SLOT(applyFilter()) ); } void initFilterCombo() { @@ -223,16 +223,16 @@ public: mFilterComboBox->insertItem(i18n("Videos only"), VIDEOS_ONLY); TQObject::connect( - mFilterComboBox, TQT_SIGNAL(activated(int)), - that, TQT_SLOT(applyFilter()) ); + mFilterComboBox, TQ_SIGNAL(activated(int)), + that, TQ_SLOT(applyFilter()) ); mShowFilterBarCheckBox = new TQCheckBox(i18n("More"), mFilterHBox); TQObject::connect( - mShowFilterBarCheckBox, TQT_SIGNAL(toggled(bool)), - mFilterBar, TQT_SLOT(setShown(bool)) ); + mShowFilterBarCheckBox, TQ_SIGNAL(toggled(bool)), + mFilterBar, TQ_SLOT(setShown(bool)) ); TQObject::connect( - mShowFilterBarCheckBox, TQT_SIGNAL(toggled(bool)), - that, TQT_SLOT(applyFilter()) ); + mShowFilterBarCheckBox, TQ_SIGNAL(toggled(bool)), + that, TQ_SLOT(applyFilter()) ); } @@ -275,36 +275,36 @@ FileViewController::FileViewController(TQWidget* parent,TDEActionCollection* act // Actions mSelectFirst=new TDEAction(i18n("&First"), TQApplication::reverseLayout() ? "2rightarrow":"2leftarrow", Key_Home, - this,TQT_SLOT(slotSelectFirst()), actionCollection, "first"); + this,TQ_SLOT(slotSelectFirst()), actionCollection, "first"); mSelectLast=new TDEAction(i18n("&Last"), TQApplication::reverseLayout() ? "2leftarrow":"2rightarrow", Key_End, - this,TQT_SLOT(slotSelectLast()), actionCollection, "last"); + this,TQ_SLOT(slotSelectLast()), actionCollection, "last"); mSelectPrevious=new TDEAction(i18n("&Previous"), TQApplication::reverseLayout() ? "1rightarrow":"1leftarrow", Key_BackSpace, - this,TQT_SLOT(slotSelectPrevious()), actionCollection, "previous"); + this,TQ_SLOT(slotSelectPrevious()), actionCollection, "previous"); mSelectNext=new TDEAction(i18n("&Next"), TQApplication::reverseLayout() ? "1leftarrow":"1rightarrow", Key_Space, - this,TQT_SLOT(slotSelectNext()), actionCollection, "next"); + this,TQ_SLOT(slotSelectNext()), actionCollection, "next"); mSelectPreviousDir=new TDEAction(i18n("&Previous Folder"), TQApplication::reverseLayout() ? "media-seek-forward":"media-seek-backward", ALT + Key_BackSpace, - this,TQT_SLOT(slotSelectPreviousDir()), actionCollection, "previous_folder"); + this,TQ_SLOT(slotSelectPreviousDir()), actionCollection, "previous_folder"); mSelectNextDir=new TDEAction(i18n("&Next Folder"), TQApplication::reverseLayout() ? "media-seek-backward":"media-seek-forward", ALT + Key_Space, - this,TQT_SLOT(slotSelectNextDir()), actionCollection, "next_folder"); + this,TQ_SLOT(slotSelectNextDir()), actionCollection, "next_folder"); mSelectFirstSubDir=new TDEAction(i18n("&First Sub Folder"), "go-down", ALT + Key_Down, - this,TQT_SLOT(slotSelectFirstSubDir()), actionCollection, "first_sub_folder"); + this,TQ_SLOT(slotSelectFirstSubDir()), actionCollection, "first_sub_folder"); - mListMode=new TDERadioAction(i18n("Details"),"view_detailed",0,this,TQT_SLOT(updateViewMode()),actionCollection,"list_mode"); + mListMode=new TDERadioAction(i18n("Details"),"view_detailed",0,this,TQ_SLOT(updateViewMode()),actionCollection,"list_mode"); mListMode->setExclusiveGroup("thumbnails"); - mSideThumbnailMode=new TDERadioAction(i18n("Thumbnails with Info on Side"),"view_multicolumn",0,this,TQT_SLOT(updateViewMode()),actionCollection,"side_thumbnail_mode"); + mSideThumbnailMode=new TDERadioAction(i18n("Thumbnails with Info on Side"),"view_multicolumn",0,this,TQ_SLOT(updateViewMode()),actionCollection,"side_thumbnail_mode"); mSideThumbnailMode->setExclusiveGroup("thumbnails"); - mBottomThumbnailMode=new TDERadioAction(i18n("Thumbnails with Info on Bottom"),"view_icon",0,this,TQT_SLOT(updateViewMode()),actionCollection,"bottom_thumbnail_mode"); + mBottomThumbnailMode=new TDERadioAction(i18n("Thumbnails with Info on Bottom"),"view_icon",0,this,TQ_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)), this, TQT_SLOT(updateThumbnailSize(int)) ); - connect(mListMode, TQT_SIGNAL(toggled(bool)), mSizeSlider, TQT_SLOT(setDisabled(bool)) ); + connect(mSizeSlider, TQ_SIGNAL(valueChanged(int)), this, TQ_SLOT(updateThumbnailSize(int)) ); + connect(mListMode, TQ_SIGNAL(toggled(bool)), mSizeSlider, TQ_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,this,TQT_SLOT(toggleShowDotFiles()),actionCollection,"show_dot_files"); + mShowDotFiles=new TDEToggleAction(i18n("Show &Hidden Files"),CTRL + Key_H,this,TQ_SLOT(toggleShowDotFiles()),actionCollection,"show_dot_files"); - d->mSortAction=new TDESelectAction(i18n("Sort"), 0, this, TQT_SLOT(setSorting()), actionCollection, "view_sort"); + d->mSortAction=new TDESelectAction(i18n("Sort"), 0, this, TQ_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, this, TQT_SLOT(setSorting()), actionCollection, "descending"); + d->mRevertSortAction=new TDEToggleAction(i18n("Descending"),0, this, TQ_SLOT(setSorting()), actionCollection, "descending"); TQPopupMenu* sortMenu=d->mSortAction->popupMenu(); Q_ASSERT(sortMenu); sortMenu->insertSeparator(); @@ -338,85 +338,85 @@ FileViewController::FileViewController(TQWidget* parent,TDEActionCollection* act // Dir lister mDirLister=new DirLister; mDirLister->setMainWindow(topLevelWidget()); - connect(mDirLister,TQT_SIGNAL(clear()), - this,TQT_SLOT(dirListerClear()) ); + connect(mDirLister,TQ_SIGNAL(clear()), + this,TQ_SLOT(dirListerClear()) ); - connect(mDirLister,TQT_SIGNAL(newItems(const KFileItemList&)), - this,TQT_SLOT(dirListerNewItems(const KFileItemList&)) ); + connect(mDirLister,TQ_SIGNAL(newItems(const KFileItemList&)), + this,TQ_SLOT(dirListerNewItems(const KFileItemList&)) ); - connect(mDirLister,TQT_SIGNAL(deleteItem(KFileItem*)), - this,TQT_SLOT(dirListerDeleteItem(KFileItem*)) ); + connect(mDirLister,TQ_SIGNAL(deleteItem(KFileItem*)), + this,TQ_SLOT(dirListerDeleteItem(KFileItem*)) ); - connect(mDirLister,TQT_SIGNAL(refreshItems(const KFileItemList&)), - this,TQT_SLOT(dirListerRefreshItems(const KFileItemList&)) ); + connect(mDirLister,TQ_SIGNAL(refreshItems(const KFileItemList&)), + this,TQ_SLOT(dirListerRefreshItems(const KFileItemList&)) ); - connect(mDirLister,TQT_SIGNAL(started(const KURL&)), - this,TQT_SLOT(dirListerStarted()) ); + connect(mDirLister,TQ_SIGNAL(started(const KURL&)), + this,TQ_SLOT(dirListerStarted()) ); - connect(mDirLister,TQT_SIGNAL(completed()), - this,TQT_SLOT(dirListerCompleted()) ); + connect(mDirLister,TQ_SIGNAL(completed()), + this,TQ_SLOT(dirListerCompleted()) ); - connect(mDirLister,TQT_SIGNAL(canceled()), - this,TQT_SLOT(dirListerCanceled()) ); + connect(mDirLister,TQ_SIGNAL(canceled()), + this,TQ_SLOT(dirListerCanceled()) ); // Propagate canceled signals - connect(mDirLister,TQT_SIGNAL(canceled()), - this,TQT_SIGNAL(canceled()) ); + connect(mDirLister,TQ_SIGNAL(canceled()), + this,TQ_SIGNAL(canceled()) ); // File detail widget mFileDetailView=new FileDetailView(d->mStack, "filedetailview"); d->mStack->addWidget(mFileDetailView,0); mFileDetailView->viewport()->installEventFilter(this); - connect(mFileDetailView,TQT_SIGNAL(executed(TQListViewItem*)), - this,TQT_SLOT(slotViewExecuted()) ); - connect(mFileDetailView,TQT_SIGNAL(returnPressed(TQListViewItem*)), - this,TQT_SLOT(slotViewExecuted()) ); - connect(mFileDetailView,TQT_SIGNAL(currentChanged(TQListViewItem*)), - this,TQT_SLOT(slotViewClicked()) ); - connect(mFileDetailView,TQT_SIGNAL(selectionChanged()), - this,TQT_SLOT(slotViewClicked()) ); - connect(mFileDetailView,TQT_SIGNAL(clicked(TQListViewItem*)), - this,TQT_SLOT(slotViewClicked()) ); - connect(mFileDetailView,TQT_SIGNAL(contextMenu(TDEListView*, TQListViewItem*, const TQPoint&)), - this,TQT_SLOT(openContextMenu(TDEListView*, TQListViewItem*, const TQPoint&)) ); - connect(mFileDetailView,TQT_SIGNAL(dropped(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*)), - this, TQT_SLOT(slotViewDoubleClicked()) ); - connect(mFileDetailView, TQT_SIGNAL(selectionChanged()), - this, TQT_SIGNAL(selectionChanged()) ); + connect(mFileDetailView,TQ_SIGNAL(executed(TQListViewItem*)), + this,TQ_SLOT(slotViewExecuted()) ); + connect(mFileDetailView,TQ_SIGNAL(returnPressed(TQListViewItem*)), + this,TQ_SLOT(slotViewExecuted()) ); + connect(mFileDetailView,TQ_SIGNAL(currentChanged(TQListViewItem*)), + this,TQ_SLOT(slotViewClicked()) ); + connect(mFileDetailView,TQ_SIGNAL(selectionChanged()), + this,TQ_SLOT(slotViewClicked()) ); + connect(mFileDetailView,TQ_SIGNAL(clicked(TQListViewItem*)), + this,TQ_SLOT(slotViewClicked()) ); + connect(mFileDetailView,TQ_SIGNAL(contextMenu(TDEListView*, TQListViewItem*, const TQPoint&)), + this,TQ_SLOT(openContextMenu(TDEListView*, TQListViewItem*, const TQPoint&)) ); + connect(mFileDetailView,TQ_SIGNAL(dropped(TQDropEvent*,KFileItem*)), + this,TQ_SLOT(openDropURLMenu(TQDropEvent*, KFileItem*)) ); + connect(mFileDetailView, TQ_SIGNAL(sortingChanged(TQDir::SortSpec)), + this, TQ_SLOT(updateSortMenu(TQDir::SortSpec)) ); + connect(mFileDetailView, TQ_SIGNAL(doubleClicked(TQListViewItem*)), + this, TQ_SLOT(slotViewDoubleClicked()) ); + connect(mFileDetailView, TQ_SIGNAL(selectionChanged()), + this, TQ_SIGNAL(selectionChanged()) ); // Thumbnail widget mFileThumbnailView=new FileThumbnailView(d->mStack); d->mStack->addWidget(mFileThumbnailView,1); mFileThumbnailView->viewport()->installEventFilter(this); - connect(mFileThumbnailView,TQT_SIGNAL(executed(TQIconViewItem*)), - this,TQT_SLOT(slotViewExecuted()) ); - connect(mFileThumbnailView,TQT_SIGNAL(returnPressed(TQIconViewItem*)), - this,TQT_SLOT(slotViewExecuted()) ); - connect(mFileThumbnailView,TQT_SIGNAL(currentChanged(TQIconViewItem*)), - this,TQT_SLOT(slotViewClicked()) ); - connect(mFileThumbnailView,TQT_SIGNAL(selectionChanged()), - this,TQT_SLOT(slotViewClicked()) ); - connect(mFileThumbnailView,TQT_SIGNAL(clicked(TQIconViewItem*)), - this,TQT_SLOT(slotViewClicked()) ); - connect(mFileThumbnailView,TQT_SIGNAL(contextMenuRequested(TQIconViewItem*,const TQPoint&)), - this,TQT_SLOT(openContextMenu(TQIconViewItem*,const TQPoint&)) ); - connect(mFileThumbnailView,TQT_SIGNAL(dropped(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()) ); + connect(mFileThumbnailView,TQ_SIGNAL(executed(TQIconViewItem*)), + this,TQ_SLOT(slotViewExecuted()) ); + connect(mFileThumbnailView,TQ_SIGNAL(returnPressed(TQIconViewItem*)), + this,TQ_SLOT(slotViewExecuted()) ); + connect(mFileThumbnailView,TQ_SIGNAL(currentChanged(TQIconViewItem*)), + this,TQ_SLOT(slotViewClicked()) ); + connect(mFileThumbnailView,TQ_SIGNAL(selectionChanged()), + this,TQ_SLOT(slotViewClicked()) ); + connect(mFileThumbnailView,TQ_SIGNAL(clicked(TQIconViewItem*)), + this,TQ_SLOT(slotViewClicked()) ); + connect(mFileThumbnailView,TQ_SIGNAL(contextMenuRequested(TQIconViewItem*,const TQPoint&)), + this,TQ_SLOT(openContextMenu(TQIconViewItem*,const TQPoint&)) ); + connect(mFileThumbnailView,TQ_SIGNAL(dropped(TQDropEvent*,KFileItem*)), + this,TQ_SLOT(openDropURLMenu(TQDropEvent*, KFileItem*)) ); + connect(mFileThumbnailView, TQ_SIGNAL(doubleClicked(TQIconViewItem*)), + this, TQ_SLOT(slotViewDoubleClicked()) ); + connect(mFileThumbnailView, TQ_SIGNAL(selectionChanged()), + this, TQ_SIGNAL(selectionChanged()) ); // 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)) ); + TDEAction* thumbnailDetailsDialogAction=new TDEAction(i18n("Edit Thumbnail Details..."), "configure", 0, mFileThumbnailView, TQ_SLOT(showThumbnailDetailsDialog()), actionCollection, "thumbnail_details_dialog"); + connect(mBottomThumbnailMode, TQ_SIGNAL(toggled(bool)), + thumbnailDetailsDialogAction, TQ_SLOT(setEnabled(bool)) ); // Fill toolbar mListMode->plug(d->mToolBar); @@ -543,7 +543,7 @@ void FileViewController::prefetch( KFileItem* item ) { prefetchDone(); if( item == NULL ) return; mPrefetch = ImageLoader::loader( item->url(), this, BUSY_PRELOADING ); - connect( mPrefetch, TQT_SIGNAL( imageLoaded( bool )), TQT_SLOT( prefetchDone())); + connect( mPrefetch, TQ_SIGNAL( imageLoaded( bool )), TQ_SLOT( prefetchDone())); } void FileViewController::prefetchDone() { @@ -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,this,TQT_SLOT(delayedDirListerCompleted())); + TQTimer::singleShot(0,this,TQ_SLOT(delayedDirListerCompleted())); } diff --git a/src/gvcore/fullscreenbar.cpp b/src/gvcore/fullscreenbar.cpp index 159ce90..493dfd0 100644 --- a/src/gvcore/fullscreenbar.cpp +++ b/src/gvcore/fullscreenbar.cpp @@ -92,7 +92,7 @@ FullScreenBar::FullScreenBar(TQWidget* parent) setPalette(pal); // Timer - connect(&d->mTimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(slotUpdateSlide()) ); + connect(&d->mTimer, TQ_SIGNAL(timeout()), this, TQ_SLOT(slotUpdateSlide()) ); } diff --git a/src/gvcore/imageloader.cpp b/src/gvcore/imageloader.cpp index a17a7a8..406a378 100644 --- a/src/gvcore/imageloader.cpp +++ b/src/gvcore/imageloader.cpp @@ -148,7 +148,7 @@ void DecoderThread::run() { if (!ok) { LOG("failed"); - postSignal( this, TQT_SIGNAL(failed()) ); + postSignal( this, TQ_SIGNAL(failed()) ); return; } @@ -157,7 +157,7 @@ void DecoderThread::run() { } LOG("succeeded, emitting signal"); - postSignal( this, TQT_SIGNAL(succeeded()) ); + postSignal( this, TQ_SIGNAL(succeeded()) ); } @@ -288,8 +288,8 @@ public: ImageLoader::ImageLoader() { LOG(""); d = new ImageLoaderPrivate(this); - connect( BusyLevelManager::instance(), TQT_SIGNAL( busyLevelChanged(BusyLevel)), - this, TQT_SLOT( slotBusyLevelChanged(BusyLevel))); + connect( BusyLevelManager::instance(), TQ_SIGNAL( busyLevelChanged(BusyLevel)), + this, TQ_SLOT( slotBusyLevelChanged(BusyLevel))); } @@ -312,12 +312,12 @@ void ImageLoader::startLoading() { d->mTimestamp = Cache::instance()->timestamp( d->mURL ); slotBusyLevelChanged( BusyLevelManager::instance()->busyLevel()); - connect(&d->mDecoderTimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(decodeChunk()) ); + connect(&d->mDecoderTimer, TQ_SIGNAL(timeout()), this, TQ_SLOT(decodeChunk()) ); - connect(&d->mDecoderThread, TQT_SIGNAL(succeeded()), - this, TQT_SLOT(slotDecoderThreadSucceeded()) ); - connect(&d->mDecoderThread, TQT_SIGNAL(failed()), - this, TQT_SLOT(slotDecoderThreadFailed()) ); + connect(&d->mDecoderThread, TQ_SIGNAL(succeeded()), + this, TQ_SLOT(slotDecoderThreadSucceeded()) ); + connect(&d->mDecoderThread, TQ_SIGNAL(failed()), + this, TQ_SLOT(slotDecoderThreadFailed()) ); checkPendingStat(); } @@ -327,8 +327,8 @@ void ImageLoader::checkPendingStat() { TDEIO::Job* job=TDEIO::stat( d->mURL, false ); job->setWindow(TDEApplication::kApplication()->mainWidget()); - connect(job, TQT_SIGNAL(result(TDEIO::Job*)), - this, TQT_SLOT(slotStatResult(TDEIO::Job*)) ); + connect(job, TQ_SIGNAL(result(TDEIO::Job*)), + this, TQ_SLOT(slotStatResult(TDEIO::Job*)) ); d->mGetState = GET_STATING; } @@ -394,11 +394,11 @@ void ImageLoader::checkPendingGet() { TDEIO::Job* getJob=TDEIO::get( d->mURL, false, false); getJob->setWindow(TDEApplication::kApplication()->mainWidget()); - connect(getJob, TQT_SIGNAL(data(TDEIO::Job*, const TQByteArray&)), - this, TQT_SLOT(slotDataReceived(TDEIO::Job*, const TQByteArray&)) ); + connect(getJob, TQ_SIGNAL(data(TDEIO::Job*, const TQByteArray&)), + this, TQ_SLOT(slotDataReceived(TDEIO::Job*, const TQByteArray&)) ); - connect(getJob, TQT_SIGNAL(result(TDEIO::Job*)), - this, TQT_SLOT(slotGetResult(TDEIO::Job*)) ); + connect(getJob, TQ_SIGNAL(result(TDEIO::Job*)), + this, TQ_SLOT(slotGetResult(TDEIO::Job*)) ); d->mTimeSinceLastUpdate.start(); d->mGetState = GET_GETTING; @@ -655,7 +655,7 @@ void ImageLoader::end() { // when we return from this function we will be in decodeChunk(), after the // call to decode(), so we don't want to switch to a new impl yet, since // this means deleting "this". - TQTimer::singleShot(0, this, TQT_SLOT(callFinish()) ); + TQTimer::singleShot(0, this, TQ_SLOT(callFinish()) ); } @@ -858,7 +858,7 @@ void ImageLoader::ref( const TQObject* owner, BusyLevel priority ) { data.owner = owner; data.priority = priority; d->mOwners.append( data ); - connect( owner, TQT_SIGNAL( destroyed()), TQT_SLOT( ownerDestroyed())); + connect( owner, TQ_SIGNAL( destroyed()), TQ_SLOT( ownerDestroyed())); } void ImageLoader::deref( const TQObject* owner ) { @@ -909,7 +909,7 @@ ImageLoader* ImageLoader::loader( const KURL& url, const TQObject* owner, BusyLe // This also helps with preloading jobs, since BUSY_LOADING busy level is not entered immediately // when a new picture is selected, so preloading jobs without this delay could start working // immediately. - TQTimer::singleShot( priority >= BUSY_LOADING ? 0 : 10, loader, TQT_SLOT( startLoading())); + TQTimer::singleShot( priority >= BUSY_LOADING ? 0 : 10, loader, TQ_SLOT( startLoading())); return loader; } diff --git a/src/gvcore/imagesavedialog.cpp b/src/gvcore/imagesavedialog.cpp index 20d532d..8d524f1 100644 --- a/src/gvcore/imagesavedialog.cpp +++ b/src/gvcore/imagesavedialog.cpp @@ -97,12 +97,12 @@ ImageSaveDialog::ImageSaveDialog(KURL& url, const TQCString& imageFormat, TQWidg // Tweak the filter widget filterWidget->setEditable(false); - connect(filterWidget,TQT_SIGNAL(activated(const TQString&)), - this,TQT_SLOT(updateImageFormat(const TQString&)) ); + connect(filterWidget,TQ_SIGNAL(activated(const TQString&)), + this,TQ_SLOT(updateImageFormat(const TQString&)) ); // Call slotFilterChanged() to get the list filtered by the filter we // selected. If we don't use a single shot, it leads to a crash :-/ - TQTimer::singleShot(0,this,TQT_SLOT(slotFilterChanged())); + TQTimer::singleShot(0,this,TQ_SLOT(slotFilterChanged())); } diff --git a/src/gvcore/imageview.cpp b/src/gvcore/imageview.cpp index 2525b7b..371eff4 100644 --- a/src/gvcore/imageview.cpp +++ b/src/gvcore/imageview.cpp @@ -324,32 +324,32 @@ 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)), - this, TQT_SLOT(setZoomToFit(bool)) ); + connect(d->mZoomToFit,TQ_SIGNAL(toggled(bool)), + this, TQ_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)), - this, TQT_SLOT(setZoomToWidth(bool)) ); + connect(d->mZoomToWidth,TQ_SIGNAL(toggled(bool)), + this, TQ_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)), - this, TQT_SLOT(setZoomToHeight(bool)) ); + connect(d->mZoomToHeight,TQ_SIGNAL(toggled(bool)), + this, TQ_SLOT(setZoomToHeight(bool)) ); - d->mZoomIn=KStdAction::zoomIn(this,TQT_SLOT(slotZoomIn()),d->mActionCollection); + d->mZoomIn=KStdAction::zoomIn(this,TQ_SLOT(slotZoomIn()),d->mActionCollection); - d->mZoomOut=KStdAction::zoomOut(this,TQT_SLOT(slotZoomOut()),d->mActionCollection); + d->mZoomOut=KStdAction::zoomOut(this,TQ_SLOT(slotZoomOut()),d->mActionCollection); - d->mResetZoom=KStdAction::actualSize(this,TQT_SLOT(slotResetZoom()),d->mActionCollection); + d->mResetZoom=KStdAction::actualSize(this,TQ_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)), - this, TQT_SLOT(setLockZoom(bool)) ); + connect(d->mLockZoom,TQ_SIGNAL(toggled(bool)), + this, TQ_SLOT(setLockZoom(bool)) ); d->mZoomCombo=new TQComboBox(true); // Avoid stealing focus d->mZoomCombo->setFocusPolicy(TQWidget::ClickFocus); - connect(d->mZoomCombo, TQT_SIGNAL(activated(int)), - this, TQT_SLOT(slotSelectZoom()) ); + connect(d->mZoomCombo, TQ_SIGNAL(activated(int)), + this, TQ_SLOT(slotSelectZoom()) ); d->mZoomComboAction=new KWidgetAction(d->mZoomCombo, i18n("Zoom"), 0, 0, 0, d->mActionCollection, "view_zoom_to"); @@ -362,41 +362,41 @@ ImageView::ImageView(TQWidget* parent,Document* document, TDEActionCollection* a d->initZoomCombo(); d->mAdjustBCG=new TDEAction(i18n("Adjust Brightness/Contrast/Gamma"), "colorize", 0, - this, TQT_SLOT(showBCGDialog()), d->mActionCollection, "adjust_bcg"); + this, TQ_SLOT(showBCGDialog()), d->mActionCollection, "adjust_bcg"); d->mIncreaseGamma=new TDEAction(i18n("Increase Gamma"),0,CTRL+Key_G, - this, TQT_SLOT(increaseGamma()),d->mActionCollection,"increase_gamma"); + this, TQ_SLOT(increaseGamma()),d->mActionCollection,"increase_gamma"); d->mDecreaseGamma=new TDEAction(i18n("Decrease Gamma"),0,SHIFT+CTRL+Key_G, - this, TQT_SLOT(decreaseGamma()),d->mActionCollection,"decrease_gamma"); + this, TQ_SLOT(decreaseGamma()),d->mActionCollection,"decrease_gamma"); d->mIncreaseBrightness=new TDEAction(i18n("Increase Brightness" ),0,CTRL+Key_B, - this, TQT_SLOT(increaseBrightness()),d->mActionCollection,"increase_brightness"); + this, TQ_SLOT(increaseBrightness()),d->mActionCollection,"increase_brightness"); d->mDecreaseBrightness=new TDEAction(i18n("Decrease Brightness" ),0,SHIFT+CTRL+Key_B, - this, TQT_SLOT(decreaseBrightness()),d->mActionCollection,"decrease_brightness"); + this, TQ_SLOT(decreaseBrightness()),d->mActionCollection,"decrease_brightness"); d->mIncreaseContrast=new TDEAction(i18n("Increase Contrast" ),0,CTRL+Key_C, - this, TQT_SLOT(increaseContrast()),d->mActionCollection,"increase_contrast"); + this, TQ_SLOT(increaseContrast()),d->mActionCollection,"increase_contrast"); d->mDecreaseContrast=new TDEAction(i18n("Decrease Contrast" ),0,SHIFT+CTRL+Key_C, - this, TQT_SLOT(decreaseContrast()),d->mActionCollection,"decrease_contrast"); + this, TQ_SLOT(decreaseContrast()),d->mActionCollection,"decrease_contrast"); // Connect to some interesting signals - connect(d->mDocument,TQT_SIGNAL(loaded(const KURL&)), - this, TQT_SLOT(slotLoaded()) ); + connect(d->mDocument,TQ_SIGNAL(loaded(const KURL&)), + this, TQ_SLOT(slotLoaded()) ); - connect(d->mDocument,TQT_SIGNAL(loading()), - this, TQT_SLOT( loadingStarted()) ); + connect(d->mDocument,TQ_SIGNAL(loading()), + this, TQ_SLOT( loadingStarted()) ); - connect(d->mDocument,TQT_SIGNAL(modified()), - this, TQT_SLOT(slotModified()) ); + connect(d->mDocument,TQ_SIGNAL(modified()), + this, TQ_SLOT(slotModified()) ); - connect(d->mDocument, TQT_SIGNAL(sizeUpdated()), - this, TQT_SLOT(slotImageSizeUpdated()) ); + connect(d->mDocument, TQ_SIGNAL(sizeUpdated()), + this, TQ_SLOT(slotImageSizeUpdated()) ); - connect(d->mDocument, TQT_SIGNAL(rectUpdated(const TQRect&)), - this, TQT_SLOT(slotImageRectUpdated(const TQRect&)) ); + connect(d->mDocument, TQ_SIGNAL(rectUpdated(const TQRect&)), + this, TQ_SLOT(slotImageRectUpdated(const TQRect&)) ); - connect(&d->mPendingPaintTimer,TQT_SIGNAL(timeout()), - this, TQT_SLOT(checkPendingOperations()) ); + connect(&d->mPendingPaintTimer,TQ_SIGNAL(timeout()), + this, TQ_SLOT(checkPendingOperations()) ); - connect(BusyLevelManager::instance(),TQT_SIGNAL(busyLevelChanged(BusyLevel)), - this, TQT_SLOT(slotBusyLevelChanged(BusyLevel) )); + connect(BusyLevelManager::instance(),TQ_SIGNAL(busyLevelChanged(BusyLevel)), + this, TQ_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 diff --git a/src/gvcore/imageviewcontroller.cpp b/src/gvcore/imageviewcontroller.cpp index 03e81dc..b2e9c31 100644 --- a/src/gvcore/imageviewcontroller.cpp +++ b/src/gvcore/imageviewcontroller.cpp @@ -293,22 +293,22 @@ ImageViewController::ImageViewController(TQWidget* parent, Document* document, T d->mFullScreen=false; d->mFullScreenBar=0; - connect(d->mDocument,TQT_SIGNAL(loaded(const KURL&)), - this,TQT_SLOT(slotLoaded()) ); + connect(d->mDocument,TQ_SIGNAL(loaded(const KURL&)), + this,TQ_SLOT(slotLoaded()) ); - connect(d->mImageView, TQT_SIGNAL(requestContextMenu(const TQPoint&)), - this, TQT_SLOT(openImageViewContextMenu(const TQPoint&)) ); + connect(d->mImageView, TQ_SIGNAL(requestContextMenu(const TQPoint&)), + this, TQ_SLOT(openImageViewContextMenu(const TQPoint&)) ); - connect(d->mImageView, TQT_SIGNAL(requestHintDisplay(const TQString&)), - this, TQT_SIGNAL(requestHintDisplay(const TQString&)) ); + connect(d->mImageView, TQ_SIGNAL(requestHintDisplay(const TQString&)), + this, TQ_SIGNAL(requestHintDisplay(const TQString&)) ); - connect(d->mAutoHideTimer,TQT_SIGNAL(timeout()), - this,TQT_SLOT(slotAutoHide()) ); + connect(d->mAutoHideTimer,TQ_SIGNAL(timeout()), + this,TQ_SLOT(slotAutoHide()) ); // Forward Image view signals - connect(d->mImageView, TQT_SIGNAL(selectPrevious()), TQT_SIGNAL(selectPrevious()) ); - connect(d->mImageView, TQT_SIGNAL(selectNext()), TQT_SIGNAL(selectNext()) ); - connect(d->mImageView, TQT_SIGNAL(doubleClicked()), TQT_SIGNAL(doubleClicked()) ); + connect(d->mImageView, TQ_SIGNAL(selectPrevious()), TQ_SIGNAL(selectPrevious()) ); + connect(d->mImageView, TQ_SIGNAL(selectNext()), TQ_SIGNAL(selectNext()) ); + connect(d->mImageView, TQ_SIGNAL(doubleClicked()), TQ_SIGNAL(doubleClicked()) ); } diff --git a/src/gvcore/inputdialog.cpp b/src/gvcore/inputdialog.cpp index 3a08d5c..b2a64f6 100644 --- a/src/gvcore/inputdialog.cpp +++ b/src/gvcore/inputdialog.cpp @@ -48,8 +48,8 @@ InputDialog::InputDialog(TQWidget* parent) setMinimumWidth(350); - connect(d->mLineEdit, TQT_SIGNAL(textChanged(const TQString&)), - this, TQT_SLOT(updateButtons()) ); + connect(d->mLineEdit, TQ_SIGNAL(textChanged(const TQString&)), + this, TQ_SLOT(updateButtons()) ); } diff --git a/src/gvcore/printdialog.cpp b/src/gvcore/printdialog.cpp index bf3f05f..0a75b4f 100644 --- a/src/gvcore/printdialog.cpp +++ b/src/gvcore/printdialog.cpp @@ -84,10 +84,10 @@ PrintDialogPage::PrintDialogPage( Document* document, TQWidget *parent, const ch TQVBoxLayout *layout = new TQVBoxLayout( this ); layout->addWidget( mContent ); - connect(mContent->mWidth, TQT_SIGNAL( valueChanged( double )), TQT_SLOT( slotWidthChanged( double ))); - connect(mContent->mHeight, TQT_SIGNAL( valueChanged( double )), TQT_SLOT( slotHeightChanged( double ))); - connect(mContent->mKeepRatio, TQT_SIGNAL( toggled( bool )), TQT_SLOT( toggleRatio( bool ))); - connect(mContent->mUnit, TQT_SIGNAL(activated(const TQString &)), TQT_SLOT(slotUnitChanged(const TQString& ))); + connect(mContent->mWidth, TQ_SIGNAL( valueChanged( double )), TQ_SLOT( slotWidthChanged( double ))); + connect(mContent->mHeight, TQ_SIGNAL( valueChanged( double )), TQ_SLOT( slotHeightChanged( double ))); + connect(mContent->mKeepRatio, TQ_SIGNAL( toggled( bool )), TQ_SLOT( toggleRatio( bool ))); + connect(mContent->mUnit, TQ_SIGNAL(activated(const TQString &)), TQ_SLOT(slotUnitChanged(const TQString& ))); mPreviousUnit = GV_MILLIMETERS; } diff --git a/src/gvcore/slideshow.cpp b/src/gvcore/slideshow.cpp index 6e3db94..e8867ad 100644 --- a/src/gvcore/slideshow.cpp +++ b/src/gvcore/slideshow.cpp @@ -50,10 +50,10 @@ namespace Gwenview { SlideShow::SlideShow(Document* document) : mDocument(document), mStarted(false), mPrefetch( NULL ) { mTimer=new TQTimer(this); - connect(mTimer, TQT_SIGNAL(timeout()), - this, TQT_SLOT(slotTimeout()) ); - connect(mDocument, TQT_SIGNAL(loaded(const KURL&)), - this, TQT_SLOT(slotLoaded()) ); + connect(mTimer, TQ_SIGNAL(timeout()), + this, TQ_SLOT(slotTimeout()) ); + connect(mDocument, TQ_SIGNAL(loaded(const KURL&)), + this, TQ_SLOT(slotLoaded()) ); } SlideShow::~SlideShow() { @@ -173,8 +173,8 @@ void SlideShow::prefetch() { if( !mPriorityURL.isEmpty()) Cache::instance()->setPriorityURL( mPriorityURL, false ); mPriorityURL = *it; Cache::instance()->setPriorityURL( mPriorityURL, true ); // make sure it will stay in the cache - connect( mPrefetch, TQT_SIGNAL( urlKindDetermined()), TQT_SLOT( slotUrlKindDetermined())); - connect( mPrefetch, TQT_SIGNAL( imageLoaded( bool )), TQT_SLOT( prefetchDone())); + connect( mPrefetch, TQ_SIGNAL( urlKindDetermined()), TQ_SLOT( slotUrlKindDetermined())); + connect( mPrefetch, TQ_SIGNAL( imageLoaded( bool )), TQ_SLOT( prefetchDone())); if (mPrefetch->urlKind()==MimeTypeUtils::KIND_FILE) { // Prefetch is already done, and this is not a raster image diff --git a/src/gvcore/threadgate.cpp b/src/gvcore/threadgate.cpp index d5907ec..098e183 100644 --- a/src/gvcore/threadgate.cpp +++ b/src/gvcore/threadgate.cpp @@ -32,8 +32,8 @@ namespace Gwenview { // there's even no need to do any locking. ThreadGate::ThreadGate() { - connect( this, TQT_SIGNAL( signalColor( TQColor&, const char* )), - this, TQT_SLOT( slotColor( TQColor&, const char* ))); + connect( this, TQ_SIGNAL( signalColor( TQColor&, const char* )), + this, TQ_SLOT( slotColor( TQColor&, const char* ))); } ThreadGate* ThreadGate::instance() { @@ -48,7 +48,7 @@ TQColor ThreadGate::color( const char* name ) { if( TSThread::currentThread() == TSThread::mainThread()) return TQColor( name ); TQColor col; - TSThread::currentThread()->emitCancellableSignal( this, TQT_SIGNAL( signalColor( TQColor&, const char* )), col, name ); + TSThread::currentThread()->emitCancellableSignal( this, TQ_SIGNAL( signalColor( TQColor&, const char* )), col, name ); return col; } diff --git a/src/gvcore/thumbnaildetailsdialog.cpp b/src/gvcore/thumbnaildetailsdialog.cpp index 87acbe5..9fa3276 100644 --- a/src/gvcore/thumbnaildetailsdialog.cpp +++ b/src/gvcore/thumbnaildetailsdialog.cpp @@ -52,10 +52,10 @@ ThumbnailDetailsDialog::ThumbnailDetailsDialog(FileThumbnailView* view) d->mContent->mShowFileSize->setChecked(details & FileThumbnailView::FILESIZE); d->mContent->mShowImageSize->setChecked(details & FileThumbnailView::IMAGESIZE); - connect(d->mContent->mShowFileName, TQT_SIGNAL(toggled(bool)), TQT_SLOT(applyChanges()) ); - connect(d->mContent->mShowFileDate, TQT_SIGNAL(toggled(bool)), TQT_SLOT(applyChanges()) ); - connect(d->mContent->mShowFileSize, TQT_SIGNAL(toggled(bool)), TQT_SLOT(applyChanges()) ); - connect(d->mContent->mShowImageSize, TQT_SIGNAL(toggled(bool)), TQT_SLOT(applyChanges()) ); + connect(d->mContent->mShowFileName, TQ_SIGNAL(toggled(bool)), TQ_SLOT(applyChanges()) ); + connect(d->mContent->mShowFileDate, TQ_SIGNAL(toggled(bool)), TQ_SLOT(applyChanges()) ); + connect(d->mContent->mShowFileSize, TQ_SIGNAL(toggled(bool)), TQ_SLOT(applyChanges()) ); + connect(d->mContent->mShowImageSize, TQ_SIGNAL(toggled(bool)), TQ_SLOT(applyChanges()) ); } ThumbnailDetailsDialog::~ThumbnailDetailsDialog() { diff --git a/src/gvcore/thumbnailloadjob.cpp b/src/gvcore/thumbnailloadjob.cpp index 7969855..826d641 100644 --- a/src/gvcore/thumbnailloadjob.cpp +++ b/src/gvcore/thumbnailloadjob.cpp @@ -123,7 +123,7 @@ void ThumbnailThread::run() { loadThumbnail(); mPixPath = TQString(); // done, ready for next TQSize size(mOriginalWidth, mOriginalHeight); - emitCancellableSignal( this, TQT_SIGNAL( done( const TQImage&, const TQSize&)), mImage, size); + emitCancellableSignal( this, TQ_SIGNAL( done( const TQImage&, const TQSize&)), mImage, size); } } @@ -387,8 +387,8 @@ ThumbnailLoadJob::ThumbnailLoadJob(const TQValueVector<const KFileItem*>* items, tqFill( mProcessedState.begin(), mProcessedState.end(), false ); mCurrentItem = NULL; - connect(&mThumbnailThread, TQT_SIGNAL(done(const TQImage&, const TQSize&)), - TQT_SLOT(thumbnailReady(const TQImage&, const TQSize&)) ); + connect(&mThumbnailThread, TQ_SIGNAL(done(const TQImage&, const TQSize&)), + TQ_SLOT(thumbnailReady(const TQImage&, const TQSize&)) ); Cache::instance()->updateAge(); // see addThumbnail in Cache } @@ -548,7 +548,7 @@ void ThumbnailLoadJob::determineNextIcon() { KDE_struct_stat buff; if ( KDE_stat( TQFile::encodeName(mCurrentURL.path()), &buff ) == 0 ) { mOriginalTime = buff.st_mtime; - TQTimer::singleShot( 0, this, TQT_SLOT( checkThumbnail())); + TQTimer::singleShot( 0, this, TQ_SLOT( checkThumbnail())); } } if( mOriginalTime == 0 ) { // TDEIO must be used @@ -711,10 +711,10 @@ void ThumbnailLoadJob::checkThumbnail() { list.append(mCurrentItem); TDEIO::Job* job=TDEIO::filePreview(list, mThumbnailSize); job->setWindow(TDEApplication::kApplication()->mainWidget()); - connect(job, TQT_SIGNAL(gotPreview(const KFileItem*, const TQPixmap&)), - this, TQT_SLOT(slotGotPreview(const KFileItem*, const TQPixmap&)) ); - connect(job, TQT_SIGNAL(failed(const KFileItem*)), - this, TQT_SLOT(emitThumbnailLoadingFailed()) ); + connect(job, TQ_SIGNAL(gotPreview(const KFileItem*, const TQPixmap&)), + this, TQ_SLOT(slotGotPreview(const KFileItem*, const TQPixmap&)) ); + connect(job, TQ_SIGNAL(failed(const KFileItem*)), + this, TQ_SLOT(emitThumbnailLoadingFailed()) ); addSubjob(job); return; } |