diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-12-27 19:25:43 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-12-27 19:25:43 +0900 |
commit | fb401a891f1b426e9419c0cb16403df407138611 (patch) | |
tree | 045b51949b3140039e37d898d8b0513016a86bea /src/dialogs/qfiledialog.cpp | |
parent | a9d178f1000475ba1727ffe123a2c54585488c01 (diff) | |
download | tqt3-fb401a891f1b426e9419c0cb16403df407138611.tar.gz tqt3-fb401a891f1b426e9419c0cb16403df407138611.zip |
Rename METHOD, SIGNAL, SLOT to TQ_METHOD, TQ_SIGNAL, TQ_SLOT
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'src/dialogs/qfiledialog.cpp')
-rw-r--r-- | src/dialogs/qfiledialog.cpp | 204 |
1 files changed, 102 insertions, 102 deletions
diff --git a/src/dialogs/qfiledialog.cpp b/src/dialogs/qfiledialog.cpp index 835742d2a..e323f1110 100644 --- a/src/dialogs/qfiledialog.cpp +++ b/src/dialogs/qfiledialog.cpp @@ -634,7 +634,7 @@ public: TQRenameEdit( TQWidget *parent ) : TQLineEdit( parent, "qt_rename_edit" ), doRenameAlreadyEmitted(FALSE) { - connect( this, SIGNAL(returnPressed()), SLOT(slotReturnPressed()) ); + connect( this, TQ_SIGNAL(returnPressed()), TQ_SLOT(slotReturnPressed()) ); } protected: @@ -792,8 +792,8 @@ TQFDProgressAnimation::TQFDProgressAnimation( TQWidget *parent ) step = -1; next(); timer = new TQTimer( this ); - connect( timer, SIGNAL( timeout() ), - this, SLOT( next() ) ); + connect( timer, TQ_SIGNAL( timeout() ), + this, TQ_SLOT( next() ) ); } void TQFDProgressAnimation::start() @@ -892,8 +892,8 @@ TQFDProgressDialog::TQFDProgressDialog( TQWidget *parent, const TQString &fn, in "qt_cancel_btn" ); b->setFixedSize( b->sizeHint() ); layout->addWidget( b ); - connect( b, SIGNAL( clicked() ), - this, SIGNAL( cancelled() ) ); + connect( b, TQ_SIGNAL( clicked() ), + this, TQ_SIGNAL( cancelled() ) ); animation->start(); } @@ -1182,16 +1182,16 @@ TQFileListBox::TQFileListBox( TQWidget *parent, TQFileDialog *dlg ) box->hide(); box->setBackgroundMode( PaletteBase ); renameTimer = new TQTimer( this ); - connect( lined, SIGNAL( doRename() ), - this, SLOT (rename() ) ); - connect( lined, SIGNAL( cancelRename() ), - this, SLOT( cancelRename() ) ); - connect( renameTimer, SIGNAL( timeout() ), - this, SLOT( doubleClickTimeout() ) ); - connect( changeDirTimer, SIGNAL( timeout() ), - this, SLOT( changeDirDuringDrag() ) ); - connect( this, SIGNAL( contentsMoving(int,int) ), - this, SLOT( contentsMoved(int,int) ) ); + connect( lined, TQ_SIGNAL( doRename() ), + this, TQ_SLOT (rename() ) ); + connect( lined, TQ_SIGNAL( cancelRename() ), + this, TQ_SLOT( cancelRename() ) ); + connect( renameTimer, TQ_SIGNAL( timeout() ), + this, TQ_SLOT( doubleClickTimeout() ) ); + connect( changeDirTimer, TQ_SIGNAL( timeout() ), + this, TQ_SLOT( changeDirDuringDrag() ) ); + connect( this, TQ_SIGNAL( contentsMoving(int,int) ), + this, TQ_SLOT( contentsMoved(int,int) ) ); viewport()->setAcceptDrops( TRUE ); dragItem = 0; } @@ -1322,8 +1322,8 @@ void TQFileListBox::viewportMouseMoveEvent( TQMouseEvent *e ) if ( lined->parentWidget()->isVisible() ) cancelRename(); - connect( drag, SIGNAL( destroyed() ), - this, SLOT( dragObjDestroyed() ) ); + connect( drag, TQ_SIGNAL( destroyed() ), + this, TQ_SLOT( dragObjDestroyed() ) ); drag->drag(); mousePressed = FALSE; @@ -1583,21 +1583,21 @@ TQFileDialogTQFileListView::TQFileDialogTQFileListView( TQWidget *parent, TQFile box->hide(); box->setBackgroundMode( PaletteBase ); renameTimer = new TQTimer( this ); - connect( lined, SIGNAL( doRename() ), - this, SLOT (rename() ) ); - connect( lined, SIGNAL( cancelRename() ), - this, SLOT( cancelRename() ) ); + connect( lined, TQ_SIGNAL( doRename() ), + this, TQ_SLOT (rename() ) ); + connect( lined, TQ_SIGNAL( cancelRename() ), + this, TQ_SLOT( cancelRename() ) ); header()->setMovingEnabled( FALSE ); - connect( renameTimer, SIGNAL( timeout() ), - this, SLOT( doubleClickTimeout() ) ); - connect( changeDirTimer, SIGNAL( timeout() ), - this, SLOT( changeDirDuringDrag() ) ); - disconnect( header(), SIGNAL( sectionClicked(int) ), - this, SLOT( changeSortColumn(int) ) ); - connect( header(), SIGNAL( sectionClicked(int) ), - this, SLOT( changeSortColumn2(int) ) ); - connect( this, SIGNAL( contentsMoving(int,int) ), - this, SLOT( contentsMoved(int,int) ) ); + connect( renameTimer, TQ_SIGNAL( timeout() ), + this, TQ_SLOT( doubleClickTimeout() ) ); + connect( changeDirTimer, TQ_SIGNAL( timeout() ), + this, TQ_SLOT( changeDirDuringDrag() ) ); + disconnect( header(), TQ_SIGNAL( sectionClicked(int) ), + this, TQ_SLOT( changeSortColumn(int) ) ); + connect( header(), TQ_SIGNAL( sectionClicked(int) ), + this, TQ_SLOT( changeSortColumn2(int) ) ); + connect( this, TQ_SIGNAL( contentsMoving(int,int) ), + this, TQ_SLOT( contentsMoved(int,int) ) ); viewport()->setAcceptDrops( TRUE ); sortcolumn = 0; @@ -1750,8 +1750,8 @@ void TQFileDialogTQFileListView::viewportMouseMoveEvent( TQMouseEvent *e ) if ( lined->isVisible() ) cancelRename(); - connect( drag, SIGNAL( destroyed() ), - this, SLOT( dragObjDestroyed() ) ); + connect( drag, TQ_SIGNAL( destroyed() ), + this, TQ_SLOT( dragObjDestroyed() ) ); drag->drag(); mousePressed = FALSE; @@ -2475,32 +2475,32 @@ void TQFileDialog::init() #if defined(Q_WS_WIN) d->oldPermissionLookup = qt_ntfs_permission_lookup; #endif - connect( d->mimeTypeTimer, SIGNAL( timeout() ), - this, SLOT( doMimeTypeLookup() ) ); + connect( d->mimeTypeTimer, TQ_SIGNAL( timeout() ), + this, TQ_SLOT( doMimeTypeLookup() ) ); d->url = TQUrlOperator( ::toRootIfNotExists( TQDir::currentDirPath() ) ); d->oldUrl = d->url; d->currListChildren = 0; - connect( &d->url, SIGNAL( start(TQNetworkOperation*) ), - this, SLOT( urlStart(TQNetworkOperation*) ) ); - connect( &d->url, SIGNAL( finished(TQNetworkOperation*) ), - this, SLOT( urlFinished(TQNetworkOperation*) ) ); - connect( &d->url, SIGNAL( newChildren(const TQValueList<TQUrlInfo>&,TQNetworkOperation*) ), - this, SLOT( insertEntry(const TQValueList<TQUrlInfo>&,TQNetworkOperation*) ) ); - connect( &d->url, SIGNAL( removed(TQNetworkOperation*) ), - this, SLOT( removeEntry(TQNetworkOperation*) ) ); - connect( &d->url, SIGNAL( createdDirectory(const TQUrlInfo&,TQNetworkOperation*) ), - this, SLOT( createdDirectory(const TQUrlInfo&,TQNetworkOperation*) ) ); - connect( &d->url, SIGNAL( itemChanged(TQNetworkOperation*) ), - this, SLOT( itemChanged(TQNetworkOperation*) ) ); - connect( &d->url, SIGNAL( dataTransferProgress(int,int,TQNetworkOperation*) ), - this, SLOT( dataTransferProgress(int,int,TQNetworkOperation*) ) ); + connect( &d->url, TQ_SIGNAL( start(TQNetworkOperation*) ), + this, TQ_SLOT( urlStart(TQNetworkOperation*) ) ); + connect( &d->url, TQ_SIGNAL( finished(TQNetworkOperation*) ), + this, TQ_SLOT( urlFinished(TQNetworkOperation*) ) ); + connect( &d->url, TQ_SIGNAL( newChildren(const TQValueList<TQUrlInfo>&,TQNetworkOperation*) ), + this, TQ_SLOT( insertEntry(const TQValueList<TQUrlInfo>&,TQNetworkOperation*) ) ); + connect( &d->url, TQ_SIGNAL( removed(TQNetworkOperation*) ), + this, TQ_SLOT( removeEntry(TQNetworkOperation*) ) ); + connect( &d->url, TQ_SIGNAL( createdDirectory(const TQUrlInfo&,TQNetworkOperation*) ), + this, TQ_SLOT( createdDirectory(const TQUrlInfo&,TQNetworkOperation*) ) ); + connect( &d->url, TQ_SIGNAL( itemChanged(TQNetworkOperation*) ), + this, TQ_SLOT( itemChanged(TQNetworkOperation*) ) ); + connect( &d->url, TQ_SIGNAL( dataTransferProgress(int,int,TQNetworkOperation*) ), + this, TQ_SLOT( dataTransferProgress(int,int,TQNetworkOperation*) ) ); nameEdit = new TQLineEdit( this, "name/filter editor" ); nameEdit->setMaxLength( 255 ); //_POSIX_MAX_PATH - connect( nameEdit, SIGNAL(textChanged(const TQString&)), - this, SLOT(fileNameEditDone()) ); + connect( nameEdit, TQ_SIGNAL(textChanged(const TQString&)), + this, TQ_SLOT(fileNameEditDone()) ); nameEdit->installEventFilter( this ); d->splitter = new TQSplitter( this, "qt_splitter" ); @@ -2521,16 +2521,16 @@ void TQFileDialog::init() files->setMinimumSize( 50, 25 + 2*fm.lineSpacing() ); - connect( files, SIGNAL( selectionChanged() ), - this, SLOT( detailViewSelectionChanged() ) ); - connect( files, SIGNAL(currentChanged(TQListViewItem*)), - this, SLOT(updateFileNameEdit(TQListViewItem*)) ); - connect( files, SIGNAL(doubleClicked(TQListViewItem*)), - this, SLOT(selectDirectoryOrFile(TQListViewItem*)) ); - connect( files, SIGNAL(returnPressed(TQListViewItem*)), - this, SLOT(selectDirectoryOrFile(TQListViewItem*)) ); - connect( files, SIGNAL(rightButtonPressed(TQListViewItem*,const TQPoint&,int)), - this, SLOT(popupContextMenu(TQListViewItem*,const TQPoint&,int)) ); + connect( files, TQ_SIGNAL( selectionChanged() ), + this, TQ_SLOT( detailViewSelectionChanged() ) ); + connect( files, TQ_SIGNAL(currentChanged(TQListViewItem*)), + this, TQ_SLOT(updateFileNameEdit(TQListViewItem*)) ); + connect( files, TQ_SIGNAL(doubleClicked(TQListViewItem*)), + this, TQ_SLOT(selectDirectoryOrFile(TQListViewItem*)) ); + connect( files, TQ_SIGNAL(returnPressed(TQListViewItem*)), + this, TQ_SLOT(selectDirectoryOrFile(TQListViewItem*)) ); + connect( files, TQ_SIGNAL(rightButtonPressed(TQListViewItem*,const TQPoint&,int)), + this, TQ_SLOT(popupContextMenu(TQListViewItem*,const TQPoint&,int)) ); files->installEventFilter( this ); files->viewport()->installEventFilter( this ); @@ -2539,14 +2539,14 @@ void TQFileDialog::init() d->moreFiles->setRowMode( TQListBox::FitToHeight ); d->moreFiles->setVariableWidth( TRUE ); - connect( d->moreFiles, SIGNAL(selected(TQListBoxItem*)), - this, SLOT(selectDirectoryOrFile(TQListBoxItem*)) ); - connect( d->moreFiles, SIGNAL( selectionChanged() ), - this, SLOT( listBoxSelectionChanged() ) ); - connect( d->moreFiles, SIGNAL(highlighted(TQListBoxItem*)), - this, SLOT(updateFileNameEdit(TQListBoxItem*)) ); - connect( d->moreFiles, SIGNAL( rightButtonPressed(TQListBoxItem*,const TQPoint&) ), - this, SLOT( popupContextMenu(TQListBoxItem*,const TQPoint&) ) ); + connect( d->moreFiles, TQ_SIGNAL(selected(TQListBoxItem*)), + this, TQ_SLOT(selectDirectoryOrFile(TQListBoxItem*)) ); + connect( d->moreFiles, TQ_SIGNAL( selectionChanged() ), + this, TQ_SLOT( listBoxSelectionChanged() ) ); + connect( d->moreFiles, TQ_SIGNAL(highlighted(TQListBoxItem*)), + this, TQ_SLOT(updateFileNameEdit(TQListBoxItem*)) ); + connect( d->moreFiles, TQ_SIGNAL( rightButtonPressed(TQListBoxItem*,const TQPoint&) ), + this, TQ_SLOT( popupContextMenu(TQListBoxItem*,const TQPoint&) ) ); d->moreFiles->installEventFilter( this ); d->moreFiles->viewport()->installEventFilter( this ); @@ -2554,9 +2554,9 @@ void TQFileDialog::init() okB = new TQPushButton( tr("&OK"), this, "OK" ); //### Or "Save (see other "OK") okB->setDefault( TRUE ); okB->setEnabled( FALSE ); - connect( okB, SIGNAL(clicked()), this, SLOT(okClicked()) ); + connect( okB, TQ_SIGNAL(clicked()), this, TQ_SLOT(okClicked()) ); cancelB = new TQPushButton( tr("Cancel") , this, "Cancel" ); - connect( cancelB, SIGNAL(clicked()), this, SLOT(cancelClicked()) ); + connect( cancelB, TQ_SIGNAL(clicked()), this, TQ_SLOT(cancelClicked()) ); d->paths = new TQComboBox( TRUE, this, "directory history/editor" ); d->paths->setDuplicatesEnabled( FALSE ); @@ -2576,8 +2576,8 @@ void TQFileDialog::init() d->paths->insertItem( *openFolderIcon, TQDir::homeDirPath() ); } - connect( d->paths, SIGNAL(activated(const TQString&)), - this, SLOT(setDir(const TQString&)) ); + connect( d->paths, TQ_SIGNAL(activated(const TQString&)), + this, TQ_SLOT(setDir(const TQString&)) ); d->paths->installEventFilter( this ); TQObjectList *ol = d->paths->queryList( "TQLineEdit" ); @@ -2589,10 +2589,10 @@ void TQFileDialog::init() d->types = new TQComboBox( TRUE, this, "file types" ); d->types->setDuplicatesEnabled( FALSE ); d->types->setEditable( FALSE ); - connect( d->types, SIGNAL(activated(const TQString&)), - this, SLOT(setFilter(const TQString&)) ); - connect( d->types, SIGNAL(activated(const TQString&)), - this, SIGNAL(filterSelected(const TQString&)) ); + connect( d->types, TQ_SIGNAL(activated(const TQString&)), + this, TQ_SLOT(setFilter(const TQString&)) ); + connect( d->types, TQ_SIGNAL(activated(const TQString&)), + this, TQ_SIGNAL(filterSelected(const TQString&)) ); d->pathL = new TQLabel( d->paths, tr("Look &in:"), this, "qt_looin_lbl" ); d->fileL = new TQLabel( nameEdit, tr("File &name:"), this, "qt_filename_lbl" ); @@ -2601,7 +2601,7 @@ void TQFileDialog::init() d->goBack = new TQToolButton( this, "go back" ); d->goBack->setEnabled( FALSE ); d->goBack->setFocusPolicy( TabFocus ); - connect( d->goBack, SIGNAL( clicked() ), this, SLOT( goBack() ) ); + connect( d->goBack, TQ_SIGNAL( clicked() ), this, TQ_SLOT( goBack() ) ); #ifndef TQT_NO_TOOLTIP TQToolTip::add( d->goBack, tr( "Back" ) ); #endif @@ -2613,8 +2613,8 @@ void TQFileDialog::init() TQToolTip::add( d->cdToParent, tr( "One directory up" ) ); #endif d->cdToParent->setIconSet( *cdToParentIcon ); - connect( d->cdToParent, SIGNAL(clicked()), - this, SLOT(cdUpClicked()) ); + connect( d->cdToParent, TQ_SIGNAL(clicked()), + this, TQ_SLOT(cdUpClicked()) ); d->newFolder = new TQToolButton( this, "new folder" ); d->newFolder->setFocusPolicy( TabFocus ); @@ -2622,17 +2622,17 @@ void TQFileDialog::init() TQToolTip::add( d->newFolder, tr( "Create New Folder" ) ); #endif d->newFolder->setIconSet( *newFolderIcon ); - connect( d->newFolder, SIGNAL(clicked()), - this, SLOT(newFolderClicked()) ); + connect( d->newFolder, TQ_SIGNAL(clicked()), + this, TQ_SLOT(newFolderClicked()) ); d->modeButtons = new TQButtonGroup( 0, "invisible group" ); - connect( d->modeButtons, SIGNAL(destroyed()), - this, SLOT(modeButtonsDestroyed()) ); + connect( d->modeButtons, TQ_SIGNAL(destroyed()), + this, TQ_SLOT(modeButtonsDestroyed()) ); d->modeButtons->setExclusive( TRUE ); - connect( d->modeButtons, SIGNAL(clicked(int)), - d->stack, SLOT(raiseWidget(int)) ); - connect( d->modeButtons, SIGNAL(clicked(int)), - this, SLOT(changeMode(int)) ); + connect( d->modeButtons, TQ_SIGNAL(clicked(int)), + d->stack, TQ_SLOT(raiseWidget(int)) ); + connect( d->modeButtons, TQ_SIGNAL(clicked(int)), + this, TQ_SLOT(changeMode(int)) ); d->mcView = new TQToolButton( this, "mclistbox view" ); d->mcView->setFocusPolicy( TabFocus ); @@ -2683,14 +2683,14 @@ void TQFileDialog::init() d->previewContents->setToggleButton( TRUE ); d->modeButtons->insert( d->previewContents ); - connect( d->detailView, SIGNAL( clicked() ), - d->moreFiles, SLOT( cancelRename() ) ); - connect( d->detailView, SIGNAL( clicked() ), - files, SLOT( cancelRename() ) ); - connect( d->mcView, SIGNAL( clicked() ), - d->moreFiles, SLOT( cancelRename() ) ); - connect( d->mcView, SIGNAL( clicked() ), - files, SLOT( cancelRename() ) ); + connect( d->detailView, TQ_SIGNAL( clicked() ), + d->moreFiles, TQ_SLOT( cancelRename() ) ); + connect( d->detailView, TQ_SIGNAL( clicked() ), + files, TQ_SLOT( cancelRename() ) ); + connect( d->mcView, TQ_SIGNAL( clicked() ), + d->moreFiles, TQ_SLOT( cancelRename() ) ); + connect( d->mcView, TQ_SIGNAL( clicked() ), + files, TQ_SLOT( cancelRename() ) ); d->stack->raiseWidget( d->moreFiles ); d->mcView->setOn( TRUE ); @@ -2814,8 +2814,8 @@ void TQFileDialog::init() d->preview->hide(); nameEdit->setFocus(); - connect( nameEdit, SIGNAL( returnPressed() ), - this, SLOT( fileNameEditReturnPressed() ) ); + connect( nameEdit, TQ_SIGNAL( returnPressed() ), + this, TQ_SLOT( fileNameEditReturnPressed() ) ); } /*! @@ -5438,7 +5438,7 @@ bool TQFileDialog::eventFilter( TQObject * o, TQEvent * e ) return TRUE; } else if ( o == files && e->type() == TQEvent::FocusOut && files->currentItem() ) { } else if ( o == files && e->type() == TQEvent::KeyPress ) { - TQTimer::singleShot( 0, this, SLOT(fixupNameEdit()) ); + TQTimer::singleShot( 0, this, TQ_SLOT(fixupNameEdit()) ); } else if ( o == nameEdit && e->type() == TQEvent::KeyPress && d->mode != AnyFile ) { if ( ( nameEdit->cursorPosition() == (int)nameEdit->text().length() || nameEdit->hasSelectedText() ) && isprint(((TQKeyEvent *)e)->ascii()) ) { @@ -5931,8 +5931,8 @@ void TQFileDialog::dataTransferProgress( int bytesDone, int bytesTotal, TQNetwor if ( bytesDone < bytesTotal) { d->ignoreStop = FALSE; d->progressDia = new TQFDProgressDialog( this, label, bytesTotal ); - connect( d->progressDia, SIGNAL( cancelled() ), - this, SLOT( stopCopy() ) ); + connect( d->progressDia, TQ_SIGNAL( cancelled() ), + this, TQ_SLOT( stopCopy() ) ); d->progressDia->show(); } else return; @@ -6319,7 +6319,7 @@ void TQFileDialog::stopCopy() d->url.stop(); if ( d->progressDia ) { d->ignoreStop = TRUE; - TQTimer::singleShot( 100, this, SLOT( removeProgressDia() ) ); + TQTimer::singleShot( 100, this, TQ_SLOT( removeProgressDia() ) ); } d->url.blockSignals( FALSE ); } |