diff options
author | Michele Calgaro <[email protected]> | 2024-01-12 11:17:33 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2024-01-15 11:09:32 +0900 |
commit | 7f03918f8df7479b0e1a88288066201a301e87bf (patch) | |
tree | ef42e0c7ecbd6d292ca5aa7f3aeca141dd65cdb1 /tdeio/tdefile/tdefileiconview.cpp | |
parent | ccaaecf59c0e607be633c45ad3b7bb1ef29e981f (diff) | |
download | tdelibs-7f03918f8df7479b0e1a88288066201a301e87bf.tar.gz tdelibs-7f03918f8df7479b0e1a88288066201a301e87bf.zip |
Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines
Signed-off-by: Michele Calgaro <[email protected]>
(cherry picked from commit ba3b5b77e1a430dc7197df20872ba46ce2fb6fa7)
Diffstat (limited to 'tdeio/tdefile/tdefileiconview.cpp')
-rw-r--r-- | tdeio/tdefile/tdefileiconview.cpp | 78 |
1 files changed, 39 insertions, 39 deletions
diff --git a/tdeio/tdefile/tdefileiconview.cpp b/tdeio/tdefile/tdefileiconview.cpp index 01e14b014..65d33912b 100644 --- a/tdeio/tdefile/tdefileiconview.cpp +++ b/tdeio/tdefile/tdefileiconview.cpp @@ -60,12 +60,12 @@ public: noArrangement = false; ignoreMaximumSize = false; smallColumns = new TDERadioAction( i18n("Small Icons"), 0, parent, - TQT_SLOT( slotSmallColumns() ), + TQ_SLOT( slotSmallColumns() ), parent->actionCollection(), "small columns" ); largeRows = new TDERadioAction( i18n("Large Icons"), 0, parent, - TQT_SLOT( slotLargeRows() ), + TQ_SLOT( slotLargeRows() ), parent->actionCollection(), "large rows" ); @@ -75,22 +75,22 @@ public: previews = new TDEToggleAction( i18n("Thumbnail Previews"), 0, parent->actionCollection(), "show previews" ); - zoomIn = KStdAction::zoomIn( parent, TQT_SLOT( zoomIn() ), + zoomIn = KStdAction::zoomIn( parent, TQ_SLOT( zoomIn() ), parent->actionCollection(), "zoomIn" ); - zoomOut = KStdAction::zoomOut( parent, TQT_SLOT( zoomOut() ), + zoomOut = KStdAction::zoomOut( parent, TQ_SLOT( zoomOut() ), parent->actionCollection(), "zoomOut" ); previews->setGroup("previews"); zoomIn->setGroup("previews"); zoomOut->setGroup("previews"); - connect( previews, TQT_SIGNAL( toggled( bool )), - parent, TQT_SLOT( slotPreviewsToggled( bool ))); + connect( previews, TQ_SIGNAL( toggled( bool )), + parent, TQ_SLOT( slotPreviewsToggled( bool ))); - connect( &previewTimer, TQT_SIGNAL( timeout() ), - parent, TQT_SLOT( showPreviews() )); - connect( &autoOpenTimer, TQT_SIGNAL( timeout() ), - parent, TQT_SLOT( slotAutoOpen() )); + connect( &previewTimer, TQ_SIGNAL( timeout() ), + parent, TQ_SLOT( showPreviews() )); + connect( &autoOpenTimer, TQ_SIGNAL( timeout() ), + parent, TQ_SLOT( slotAutoOpen() )); } ~KFileIconViewPrivate() { @@ -133,21 +133,21 @@ KFileIconView::KFileIconView(TQWidget *parent, const char *name) slotSmallColumns(); d->smallColumns->setChecked( true ); - connect( this, TQT_SIGNAL( returnPressed(TQIconViewItem *) ), - TQT_SLOT( slotActivate( TQIconViewItem *) ) ); + connect( this, TQ_SIGNAL( returnPressed(TQIconViewItem *) ), + TQ_SLOT( slotActivate( TQIconViewItem *) ) ); // we want single click _and_ double click (as convenience) - connect( this, TQT_SIGNAL( clicked(TQIconViewItem *, const TQPoint&) ), - TQT_SLOT( selected( TQIconViewItem *) ) ); - connect( this, TQT_SIGNAL( doubleClicked(TQIconViewItem *, const TQPoint&) ), - TQT_SLOT( slotActivate( TQIconViewItem *) ) ); - - connect( this, TQT_SIGNAL( onItem( TQIconViewItem * ) ), - TQT_SLOT( showToolTip( TQIconViewItem * ) ) ); - connect( this, TQT_SIGNAL( onViewport() ), - TQT_SLOT( removeToolTip() ) ); - connect( this, TQT_SIGNAL( contextMenuRequested(TQIconViewItem*,const TQPoint&)), - TQT_SLOT( slotActivateMenu( TQIconViewItem*, const TQPoint& ) ) ); + connect( this, TQ_SIGNAL( clicked(TQIconViewItem *, const TQPoint&) ), + TQ_SLOT( selected( TQIconViewItem *) ) ); + connect( this, TQ_SIGNAL( doubleClicked(TQIconViewItem *, const TQPoint&) ), + TQ_SLOT( slotActivate( TQIconViewItem *) ) ); + + connect( this, TQ_SIGNAL( onItem( TQIconViewItem * ) ), + TQ_SLOT( showToolTip( TQIconViewItem * ) ) ); + connect( this, TQ_SIGNAL( onViewport() ), + TQ_SLOT( removeToolTip() ) ); + connect( this, TQ_SIGNAL( contextMenuRequested(TQIconViewItem*,const TQPoint&)), + TQ_SLOT( slotActivateMenu( TQIconViewItem*, const TQPoint& ) ) ); KFile::SelectionMode sm = KFileView::selectionMode(); switch ( sm ) { @@ -167,11 +167,11 @@ KFileIconView::KFileIconView(TQWidget *parent, const char *name) } if ( sm == KFile::Multi || sm == KFile::Extended ) - connect( this, TQT_SIGNAL( selectionChanged() ), - TQT_SLOT( slotSelectionChanged() )); + connect( this, TQ_SIGNAL( selectionChanged() ), + TQ_SLOT( slotSelectionChanged() )); else - connect( this, TQT_SIGNAL( selectionChanged( TQIconViewItem * )), - TQT_SLOT( highlighted( TQIconViewItem * ))); + connect( this, TQ_SIGNAL( selectionChanged( TQIconViewItem * )), + TQ_SLOT( highlighted( TQIconViewItem * ))); viewport()->installEventFilter( this ); @@ -398,8 +398,8 @@ void KFileIconView::highlighted( TQIconViewItem *item ) void KFileIconView::setSelectionMode( KFile::SelectionMode sm ) { - disconnect( TQT_SIGNAL( selectionChanged() ), this ); - disconnect( TQT_SIGNAL( selectionChanged( TQIconViewItem * )), this ); + disconnect( TQ_SIGNAL( selectionChanged() ), this ); + disconnect( TQ_SIGNAL( selectionChanged( TQIconViewItem * )), this ); KFileView::setSelectionMode( sm ); switch ( KFileView::selectionMode() ) { @@ -419,11 +419,11 @@ void KFileIconView::setSelectionMode( KFile::SelectionMode sm ) } if ( sm == KFile::Multi || sm == KFile::Extended ) - connect( this, TQT_SIGNAL( selectionChanged() ), - TQT_SLOT( slotSelectionChanged() )); + connect( this, TQ_SIGNAL( selectionChanged() ), + TQ_SLOT( slotSelectionChanged() )); else - connect( this, TQT_SIGNAL( selectionChanged( TQIconViewItem * )), - TQT_SLOT( highlighted( TQIconViewItem * ))); + connect( this, TQ_SIGNAL( selectionChanged( TQIconViewItem * )), + TQ_SLOT( highlighted( TQIconViewItem * ))); } bool KFileIconView::isSelected( const KFileItem *i ) const @@ -593,12 +593,12 @@ void KFileIconView::showPreviews() d->job = TDEIO::filePreview(*items(), d->previewIconSize,d->previewIconSize); d->job->setIgnoreMaximumSize(d->ignoreMaximumSize); - connect( d->job, TQT_SIGNAL( result( TDEIO::Job * )), - this, TQT_SLOT( slotPreviewResult( TDEIO::Job * ))); - connect( d->job, TQT_SIGNAL( gotPreview( const KFileItem*, const TQPixmap& )), - TQT_SLOT( gotPreview( const KFileItem*, const TQPixmap& ) )); -// connect( d->job, TQT_SIGNAL( failed( const KFileItem* )), -// this, TQT_SLOT( slotFailed( const KFileItem* ) )); + connect( d->job, TQ_SIGNAL( result( TDEIO::Job * )), + this, TQ_SLOT( slotPreviewResult( TDEIO::Job * ))); + connect( d->job, TQ_SIGNAL( gotPreview( const KFileItem*, const TQPixmap& )), + TQ_SLOT( gotPreview( const KFileItem*, const TQPixmap& ) )); +// connect( d->job, TQ_SIGNAL( failed( const KFileItem* )), +// this, TQ_SLOT( slotFailed( const KFileItem* ) )); } void KFileIconView::slotPreviewResult( TDEIO::Job *job ) |