From 69d87202cb139ffe9e4b3ce92e434523b7b09b64 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Wed, 17 Oct 2018 19:46:30 +0900 Subject: QT_NO_* -> TQT_NO_* renaming. Signed-off-by: Michele Calgaro --- src/dialogs/qfiledialog.cpp | 66 ++++++++++++++++++++++----------------------- 1 file changed, 33 insertions(+), 33 deletions(-) (limited to 'src/dialogs/qfiledialog.cpp') diff --git a/src/dialogs/qfiledialog.cpp b/src/dialogs/qfiledialog.cpp index ae1b5ab3..471084f1 100644 --- a/src/dialogs/qfiledialog.cpp +++ b/src/dialogs/qfiledialog.cpp @@ -52,7 +52,7 @@ #include "ntqfiledialog.h" -#ifndef QT_NO_FILEDIALOG +#ifndef TQT_NO_FILEDIALOG #include "private/qapplication_p.h" #include "ntqapplication.h" @@ -669,7 +669,7 @@ private: void viewportMouseReleaseEvent( TQMouseEvent *e ); void viewportMouseDoubleClickEvent( TQMouseEvent *e ); void viewportMouseMoveEvent( TQMouseEvent *e ); -#ifndef QT_NO_DRAGANDDROP +#ifndef TQT_NO_DRAGANDDROP void viewportDragEnterEvent( TQDragEnterEvent *e ); void viewportDragMoveEvent( TQDragMoveEvent *e ); void viewportDragLeaveEvent( TQDragLeaveEvent *e ); @@ -726,7 +726,7 @@ private: void keyPressEvent( TQKeyEvent *e ); void viewportMouseReleaseEvent( TQMouseEvent *e ); void viewportMouseMoveEvent( TQMouseEvent *e ); -#ifndef QT_NO_DRAGANDDROP +#ifndef TQT_NO_DRAGANDDROP void viewportDragEnterEvent( TQDragEnterEvent *e ); void viewportDragMoveEvent( TQDragMoveEvent *e ); void viewportDragLeaveEvent( TQDragLeaveEvent *e ); @@ -865,7 +865,7 @@ private: TQFDProgressDialog::TQFDProgressDialog( TQWidget *parent, const TQString &fn, int steps ) : TQDialog( parent, "", TRUE ) { -#ifndef QT_NO_WIDGET_TOPEXTRA +#ifndef TQT_NO_WIDGET_TOPEXTRA setCaption( TQFileDialog::tr( "Copy or Move a File" ) ); #endif TQVBoxLayout *layout = new TQVBoxLayout( this ); @@ -1305,7 +1305,7 @@ void TQFileListBox::viewportMouseMoveEvent( TQMouseEvent *e ) if ( !dragItem ) dragItem = itemAt( e->pos() ); renameTimer->stop(); -#ifndef QT_NO_DRAGANDDROP +#ifndef TQT_NO_DRAGANDDROP if ( ( pressPos - e->pos() ).manhattanLength() > TQApplication::startDragDistance() && mousePressed ) { TQListBoxItem *item = dragItem; dragItem = 0; @@ -1339,13 +1339,13 @@ void TQFileListBox::viewportMouseMoveEvent( TQMouseEvent *e ) void TQFileListBox::dragObjDestroyed() { -#ifndef QT_NO_DRAGANDDROP +#ifndef TQT_NO_DRAGANDDROP //####### //filedialog->rereadDir(); #endif } -#ifndef QT_NO_DRAGANDDROP +#ifndef TQT_NO_DRAGANDDROP void TQFileListBox::viewportDragEnterEvent( TQDragEnterEvent *e ) { startDragUrl = filedialog->d->url; @@ -1483,11 +1483,11 @@ void TQFileListBox::setCurrentDropItem( const TQPoint &pnt ) setCurrentItem( currDropItem ); changeDirTimer->start( 750 ); } -#endif // QT_NO_DRAGANDDROP +#endif // TQT_NO_DRAGANDDROP void TQFileListBox::changeDirDuringDrag() { -#ifndef QT_NO_DRAGANDDROP +#ifndef TQT_NO_DRAGANDDROP if ( !currDropItem ) return; changeDirTimer->stop(); @@ -1560,7 +1560,7 @@ void TQFileListBox::cancelRename() void TQFileListBox::contentsMoved( int, int ) { changeDirTimer->stop(); -#ifndef QT_NO_DRAGANDDROP +#ifndef TQT_NO_DRAGANDDROP setCurrentDropItem( TQPoint( -1, -1 ) ); #endif } @@ -1735,7 +1735,7 @@ void TQFileDialogTQFileListView::viewportMouseMoveEvent( TQMouseEvent *e ) renameTimer->stop(); if ( !dragItem ) dragItem = itemAt( e->pos() ); -#ifndef QT_NO_DRAGANDDROP +#ifndef TQT_NO_DRAGANDDROP if ( ( pressPos - e->pos() ).manhattanLength() > TQApplication::startDragDistance() && mousePressed ) { TQListViewItem *item = dragItem; dragItem = 0; @@ -1763,13 +1763,13 @@ void TQFileDialogTQFileListView::viewportMouseMoveEvent( TQMouseEvent *e ) void TQFileDialogTQFileListView::dragObjDestroyed() { -#ifndef QT_NO_DRAGANDDROP +#ifndef TQT_NO_DRAGANDDROP //###### //filedialog->rereadDir(); #endif } -#ifndef QT_NO_DRAGANDDROP +#ifndef TQT_NO_DRAGANDDROP void TQFileDialogTQFileListView::viewportDragEnterEvent( TQDragEnterEvent *e ) { startDragUrl = filedialog->d->url; @@ -1905,18 +1905,18 @@ void TQFileDialogTQFileListView::setCurrentDropItem( const TQPoint &pnt ) changeDirTimer->start( 750 ); } -#endif // QT_NO_DRAGANDDROP +#endif // TQT_NO_DRAGANDDROP void TQFileDialogTQFileListView::changeDirDuringDrag() { -#ifndef QT_NO_DRAGANDDROP +#ifndef TQT_NO_DRAGANDDROP if ( !currDropItem ) return; changeDirTimer->stop(); TQUrl u( filedialog->d->url, TQFileDialogPrivate::encodeFileName(currDropItem->text( 0 ) ) ); filedialog->setDir( u ); currDropItem = 0; -#endif // QT_NO_DRAGANDDROP +#endif // TQT_NO_DRAGANDDROP } @@ -1985,7 +1985,7 @@ void TQFileDialogTQFileListView::cancelRename() void TQFileDialogTQFileListView::contentsMoved( int, int ) { changeDirTimer->stop(); -#ifndef QT_NO_DRAGANDDROP +#ifndef TQT_NO_DRAGANDDROP setCurrentDropItem( TQPoint( -1, -1 ) ); #endif } @@ -2609,14 +2609,14 @@ void TQFileDialog::init() d->goBack->setEnabled( FALSE ); d->goBack->setFocusPolicy( TabFocus ); connect( d->goBack, SIGNAL( clicked() ), this, SLOT( goBack() ) ); -#ifndef QT_NO_TOOLTIP +#ifndef TQT_NO_TOOLTIP TQToolTip::add( d->goBack, tr( "Back" ) ); #endif d->goBack->setIconSet( *goBackIcon ); d->cdToParent = new TQToolButton( this, "cd to parent" ); d->cdToParent->setFocusPolicy( TabFocus ); -#ifndef QT_NO_TOOLTIP +#ifndef TQT_NO_TOOLTIP TQToolTip::add( d->cdToParent, tr( "One directory up" ) ); #endif d->cdToParent->setIconSet( *cdToParentIcon ); @@ -2625,7 +2625,7 @@ void TQFileDialog::init() d->newFolder = new TQToolButton( this, "new folder" ); d->newFolder->setFocusPolicy( TabFocus ); -#ifndef QT_NO_TOOLTIP +#ifndef TQT_NO_TOOLTIP TQToolTip::add( d->newFolder, tr( "Create New Folder" ) ); #endif d->newFolder->setIconSet( *newFolderIcon ); @@ -2643,7 +2643,7 @@ void TQFileDialog::init() d->mcView = new TQToolButton( this, "mclistbox view" ); d->mcView->setFocusPolicy( TabFocus ); -#ifndef QT_NO_TOOLTIP +#ifndef TQT_NO_TOOLTIP TQToolTip::add( d->mcView, tr( "List View" ) ); #endif d->mcView->setIconSet( *multiColumnListViewIcon ); @@ -2651,7 +2651,7 @@ void TQFileDialog::init() d->stack->addWidget( d->moreFiles, d->modeButtons->insert( d->mcView ) ); d->detailView = new TQToolButton( this, "list view" ); d->detailView->setFocusPolicy( TabFocus ); -#ifndef QT_NO_TOOLTIP +#ifndef TQT_NO_TOOLTIP TQToolTip::add( d->detailView, tr( "Detail View" ) ); #endif d->detailView->setIconSet( *detailViewIcon ); @@ -2660,7 +2660,7 @@ void TQFileDialog::init() d->previewInfo = new TQToolButton( this, "preview info view" ); d->previewInfo->setFocusPolicy( TabFocus ); -#ifndef QT_NO_TOOLTIP +#ifndef TQT_NO_TOOLTIP TQToolTip::add( d->previewInfo, tr( "Preview File Info" ) ); #endif d->previewInfo->setIconSet( *previewInfoViewIcon ); @@ -2683,7 +2683,7 @@ void TQFileDialog::init() d->previewContents->setAutoRaise( TRUE ); } d->previewContents->setFocusPolicy( TabFocus ); -#ifndef QT_NO_TOOLTIP +#ifndef TQT_NO_TOOLTIP TQToolTip::add( d->previewContents, tr( "Preview File Contents" ) ); #endif d->previewContents->setIconSet( *previewContentsViewIcon ); @@ -2919,7 +2919,7 @@ TQFileDialog::~TQFileDialog() d->moreFiles->blockSignals( FALSE ); files->blockSignals( FALSE ); -#ifndef QT_NO_CURSOR +#ifndef TQT_NO_CURSOR if ( d->cursorOverride ) TQApplication::restoreOverrideCursor(); #endif @@ -3343,7 +3343,7 @@ bool TQFileDialog::showHiddenFiles() const void TQFileDialog::rereadDir() { -#ifndef QT_NO_CURSOR +#ifndef TQT_NO_CURSOR if ( !d->cursorOverride ) { TQApplication::setOverrideCursor( TQCursor( TQt::WaitCursor ) ); d->cursorOverride = TRUE; @@ -3353,7 +3353,7 @@ void TQFileDialog::rereadDir() if ( d->mimeTypeTimer->isActive() ) d->mimeTypeTimer->stop(); d->currListChildren = d->url.listChildren(); -#ifndef QT_NO_CURSOR +#ifndef TQT_NO_CURSOR if ( d->cursorOverride ) { TQApplication::restoreOverrideCursor(); d->cursorOverride = FALSE; @@ -3512,7 +3512,7 @@ TQString TQFileDialog::getOpenFileName( const TQString & startWith, TQFileDialog *dlg = new TQFileDialog( *workingDirectory, TQString::null, parent, name ? name : "qt_filedlg_gofn", TRUE ); TQ_CHECK_PTR( dlg ); -#ifndef QT_NO_WIDGET_TOPEXTRA +#ifndef TQT_NO_WIDGET_TOPEXTRA if ( !caption.isNull() ) dlg->setCaption( caption ); else @@ -3637,7 +3637,7 @@ TQString TQFileDialog::getSaveFileName( const TQString & startWith, TQFileDialog *dlg = new TQFileDialog( *workingDirectory, TQString::null, parent, name ? name : "qt_filedlg_gsfn", TRUE ); TQ_CHECK_PTR( dlg ); -#ifndef QT_NO_WIDGET_TOPEXTRA +#ifndef TQT_NO_WIDGET_TOPEXTRA if ( !caption.isNull() ) dlg->setCaption( caption ); else @@ -4549,7 +4549,7 @@ TQString TQFileDialog::getExistingDirectory( const TQString & dir, TQFileDialog *dlg = new TQFileDialog( parent, name ? name : "qt_filedlg_ged", TRUE ); TQ_CHECK_PTR( dlg ); -#ifndef QT_NO_WIDGET_TOPEXTRA +#ifndef TQT_NO_WIDGET_TOPEXTRA if ( !caption.isNull() ) dlg->setCaption( caption ); else @@ -5709,7 +5709,7 @@ TQStringList TQFileDialog::getOpenFileNames( const TQString & filter, TQFileDialog *dlg = new TQFileDialog( *workingDirectory, TQString::null, parent, name ? name : "qt_filedlg_gofns", TRUE ); TQ_CHECK_PTR( dlg ); -#ifndef QT_NO_WIDGET_TOPEXTRA +#ifndef TQT_NO_WIDGET_TOPEXTRA if ( !caption.isNull() ) dlg->setCaption( caption ); else @@ -5797,7 +5797,7 @@ void TQFileDialog::urlStart( TQNetworkOperation *op ) qt_ntfs_permission_lookup--; #endif if ( op->operation() == TQNetworkProtocol::OpListChildren ) { -#ifndef QT_NO_CURSOR +#ifndef TQT_NO_CURSOR if ( !d->cursorOverride ) { TQApplication::setOverrideCursor( TQCursor( TQt::WaitCursor ) ); d->cursorOverride = TRUE; @@ -5849,7 +5849,7 @@ void TQFileDialog::urlFinished( TQNetworkOperation *op ) if ( !op ) return; -#ifndef QT_NO_CURSOR +#ifndef TQT_NO_CURSOR if ( op->operation() == TQNetworkProtocol::OpListChildren && d->cursorOverride ) { TQApplication::restoreOverrideCursor(); -- cgit v1.2.1