![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <qfiledialog_p.h>
Classes | |
| struct | HistoryItem |
Public Types | |
| using | PersistentModelIndexList = QList<QPersistentModelIndex> |
| Public Types inherited from QWidgetPrivate | |
| enum | DrawWidgetFlag { DrawAsRoot = 0x01 , DrawPaintOnScreen = 0x02 , DrawRecursive = 0x04 , DrawInvisible = 0x08 , DontSubtractOpaqueChildren = 0x10 , DontDrawOpaqueChildren = 0x20 , DontDrawNativeChildren = 0x40 , DontSetCompositionMode = 0x80 , UseEffectRegionBounds = 0x100 } |
| enum | Direction { DirectionNorth = 0x01 , DirectionEast = 0x10 , DirectionSouth = 0x02 , DirectionWest = 0x20 } |
| enum class | WindowHandleMode { Direct , Closest , TopLevel } |
| enum | CloseMode { CloseNoEvent , CloseWithEvent , CloseWithSpontaneousEvent } |
| enum class | FocusDirection { Previous , Next } |
| enum class | FocusChainRemovalRule { EnsureFocusOut = 0x01 , AssertConsistency = 0x02 } |
| Public Types inherited from QObjectPrivate | |
| typedef void(* | StaticMetaCallFunction) (QObject *, QMetaObject::Call, int, void **) |
| using | ConnectionDataPointer = QExplicitlySharedDataPointer<ConnectionData> |
Static Public Member Functions | |
| static long | maxNameLength (const QString &path) |
| static QString | toInternal (const QString &path) |
| static void | setLastVisitedDirectory (const QUrl &dir) |
| Static Public Member Functions inherited from QWidgetPrivate | |
| static QWidgetPrivate * | get (QWidget *w) |
| static const QWidgetPrivate * | get (const QWidget *w) |
| static void | checkRestoredGeometry (const QRect &availableGeometry, QRect *restoredGeometry, int frameHeight) |
| static void | adjustFlags (Qt::WindowFlags &flags, QWidget *w=nullptr) |
| static QWidget * | parentGraphicsView (const QWidget *widget) |
| static QRect | screenGeometry (const QWidget *widget) |
| static QRect | availableScreenGeometry (const QWidget *widget) |
| static QScreen * | screen (const QWidget *widget, const QPoint &globalPosition, bool hasPosition=true) |
| static QRect | screenGeometry (const QWidget *widget, const QPoint &globalPosition, bool hasPosition=true) |
| static QRect | availableScreenGeometry (const QWidget *widget, const QPoint &globalPosition, bool hasPosition=true) |
| static void | sendComposeStatus (QWidget *w, bool end) |
| static void | setWidgetParentHelper (QObject *widgetAsObject, QObject *newParent) |
| static bool | insertIntoFocusChain (const QWidgetList &toBeInserted, FocusDirection direction, QWidget *position) |
| static QWidgetList | takeFromFocusChain (QWidget *from, QWidget *to, FocusDirection direction=FocusDirection::Next) |
| Static Public Member Functions inherited from QObjectPrivate | |
| static bool | removeConnection (Connection *c) |
| static QObjectPrivate * | get (QObject *o) |
| static const QObjectPrivate * | get (const QObject *o) |
| static void | deleteInOwnThread (QObject *object) |
| template<typename Func1, typename Func2> | |
| static QMetaObject::Connection | connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot, Qt::ConnectionType type=Qt::AutoConnection) |
| template<typename Func1, typename Func2> | |
| static bool | disconnect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot) |
| static QMetaObject::Connection | connectImpl (const QObject *sender, int signal_index, const QObject *receiver, void **slot, QtPrivate::QSlotObjectBase *slotObj, int type, const int *types, const QMetaObject *senderMetaObject) |
| static QMetaObject::Connection | connect (const QObject *sender, int signal_index, QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType type) |
| static QMetaObject::Connection | connect (const QObject *sender, int signal_index, const QObject *receiver, QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType type) |
| static bool | disconnect (const QObject *sender, int signal_index, void **slot) |
| static bool | disconnect (const QObject *sender, int signal_index, const QObject *receiver, void **slot) |
Private Member Functions | |
| virtual void | initHelper (QPlatformDialogHelper *) override |
| virtual void | helperPrepareShow (QPlatformDialogHelper *) override |
| virtual void | helperDone (QDialog::DialogCode, QPlatformDialogHelper *) override |
Additional Inherited Members | |
| Static Public Attributes inherited from QWidgetPrivate | |
| static QWidgetMapper * | mapper = nullptr |
| static QWidgetSet * | allWidgets = nullptr |
| static int | instanceCounter = 0 |
| static int | maxInstances = 0 |
| Protected Member Functions inherited from QDialogPrivate | |
| virtual int | dialogCode () const |
Definition at line 79 of file qfiledialog_p.h.
Definition at line 84 of file qfiledialog_p.h.
| QFileDialogPrivate::QFileDialogPrivate | ( | ) |
Definition at line 543 of file qfiledialog.cpp.
| QFileDialogPrivate::~QFileDialogPrivate | ( | ) |
Definition at line 559 of file qfiledialog.cpp.
| QStringList QFileDialogPrivate::addDefaultSuffixToFiles | ( | const QStringList & | filesToFix | ) | const |
Definition at line 1275 of file qfiledialog.cpp.
Definition at line 1302 of file qfiledialog.cpp.
Definition at line 3652 of file qfiledialog.cpp.
Definition at line 127 of file qfiledialog_p.h.
|
overridevirtual |
Reimplemented from QDialogPrivate.
Definition at line 723 of file qfiledialog.cpp.
| void QFileDialogPrivate::createDirectory | ( | ) |
Creates a new directory, first asking the user for a suitable name.
Definition at line 3484 of file qfiledialog.cpp.
| void QFileDialogPrivate::createMenuActions | ( | ) |
Create actions which will be used in the right click.
Definition at line 3310 of file qfiledialog.cpp.
| void QFileDialogPrivate::createToolButtons | ( | ) |
Create tool buttons, set properties and connections
Definition at line 3258 of file qfiledialog.cpp.
| void QFileDialogPrivate::createWidgets | ( | ) |
Create the widgets, set properties and connections
Definition at line 2988 of file qfiledialog.cpp.
| void QFileDialogPrivate::currentChanged | ( | const QModelIndex & | index | ) |
Definition at line 3777 of file qfiledialog.cpp.
| QAbstractItemView * QFileDialogPrivate::currentView | ( | ) | const |
Definition at line 1814 of file qfiledialog.cpp.
| void QFileDialogPrivate::deleteCurrent | ( | ) |
Deletes the currently selected item in the dialog.
Definition at line 3598 of file qfiledialog.cpp.
|
inline |
Definition at line 349 of file qfiledialog_p.h.
| void QFileDialogPrivate::emitFilesSelected | ( | const QStringList & | files | ) |
Definition at line 715 of file qfiledialog.cpp.
Definition at line 3959 of file qfiledialog.cpp.
Definition at line 3967 of file qfiledialog.cpp.
| void QFileDialogPrivate::enterDirectory | ( | const QModelIndex & | index | ) |
This is called when the user double clicks on a file with the corresponding model item index.
Definition at line 3789 of file qfiledialog.cpp.
| void QFileDialogPrivate::fileRenamed | ( | const QString & | path, |
| const QString & | oldName, | ||
| const QString & | newName ) |
Definition at line 3950 of file qfiledialog.cpp.
|
inline |
Definition at line 135 of file qfiledialog_p.h.
Definition at line 4031 of file qfiledialog.cpp.
| void QFileDialogPrivate::goHome | ( | ) |
Definition at line 3357 of file qfiledialog.cpp.
Changes the file dialog's current directory to the one specified by path.
Definition at line 3823 of file qfiledialog.cpp.
set the directory to url
Definition at line 927 of file qfiledialog.cpp.
|
overrideprivatevirtual |
Reimplemented from QDialogPrivate.
Definition at line 593 of file qfiledialog.cpp.
|
overrideprivatevirtual |
Reimplemented from QDialogPrivate.
Definition at line 580 of file qfiledialog.cpp.
| void QFileDialogPrivate::init | ( | const QFileDialogArgs & | args | ) |
Create widgets, layout and set default values
Definition at line 2940 of file qfiledialog.cpp.
|
overrideprivatevirtual |
Reimplemented from QDialogPrivate.
Definition at line 563 of file qfiledialog.cpp.
| bool QFileDialogPrivate::itemViewKeyboardEvent | ( | QKeyEvent * | event | ) |
For the list and tree view watch keys to goto parent and back in the history
returns true if handled
Definition at line 4005 of file qfiledialog.cpp.
| QLineEdit * QFileDialogPrivate::lineEdit | ( | ) | const |
Definition at line 1822 of file qfiledialog.cpp.
|
inline |
Definition at line 325 of file qfiledialog_p.h.
|
inline |
Definition at line 318 of file qfiledialog_p.h.
|
static |
Definition at line 1826 of file qfiledialog.cpp.
Definition at line 3979 of file qfiledialog.cpp.
Definition at line 3987 of file qfiledialog.cpp.
| void QFileDialogPrivate::navigate | ( | HistoryItem & | historyItem | ) |
Definition at line 3403 of file qfiledialog.cpp.
| void QFileDialogPrivate::navigateBackward | ( | ) |
Navigates to the last directory viewed in the dialog.
Definition at line 3437 of file qfiledialog.cpp.
| void QFileDialogPrivate::navigateForward | ( | ) |
Navigates to the last directory viewed in the dialog.
Definition at line 3450 of file qfiledialog.cpp.
| void QFileDialogPrivate::navigateToParent | ( | ) |
Navigates to the parent directory of the currently displayed directory in the dialog.
Definition at line 3464 of file qfiledialog.cpp.
Update history with new path, buttons, and combo
Definition at line 3380 of file qfiledialog.cpp.
|
inline |
Definition at line 94 of file qfiledialog_p.h.
| bool QFileDialogPrivate::removeDirectory | ( | const QString & | path | ) |
Definition at line 3587 of file qfiledialog.cpp.
| void QFileDialogPrivate::renameCurrent | ( | ) |
Definition at line 3576 of file qfiledialog.cpp.
| bool QFileDialogPrivate::restoreWidgetState | ( | QStringList & | history, |
| int | splitterPosition ) |
Definition at line 2892 of file qfiledialog.cpp.
| void QFileDialogPrivate::retranslateStrings | ( | ) |
Definition at line 683 of file qfiledialog.cpp.
| void QFileDialogPrivate::retranslateWindowTitle | ( | ) |
Definition at line 603 of file qfiledialog.cpp.
|
inline |
Definition at line 1810 of file qfiledialog.cpp.
|
inline |
Definition at line 333 of file qfiledialog_p.h.
| void QFileDialogPrivate::rowsInserted | ( | const QModelIndex & | parent | ) |
When parent is root and rows have been inserted when none was there before then select the first one.
Definition at line 3940 of file qfiledialog.cpp.
| void QFileDialogPrivate::saveHistorySelection | ( | ) |
Definition at line 3364 of file qfiledialog.cpp.
|
inline |
Definition at line 1855 of file qfiledialog.cpp.
Definition at line 367 of file qfiledialog_p.h.
|
inline |
Definition at line 386 of file qfiledialog_p.h.
|
inline |
Definition at line 400 of file qfiledialog_p.h.
Definition at line 356 of file qfiledialog_p.h.
| void QFileDialogPrivate::selectionChanged | ( | ) |
This is called when the model index corresponding to the current file is changed from index to current.
Definition at line 3897 of file qfiledialog.cpp.
Definition at line 380 of file qfiledialog_p.h.
Definition at line 394 of file qfiledialog_p.h.
Definition at line 338 of file qfiledialog_p.h.
|
inline |
Definition at line 374 of file qfiledialog_p.h.
| void QFileDialogPrivate::setLabelTextControl | ( | QFileDialog::DialogLabel | label, |
| const QString & | text ) |
Definition at line 1998 of file qfiledialog.cpp.
Definition at line 620 of file qfiledialog.cpp.
|
inline |
Definition at line 1845 of file qfiledialog.cpp.
|
overridevirtual |
The logic has to live here so that the call to hide() in ~QDialog calls this function; it wouldn't call an override of QDialog::setVisible().
Reimplemented from QDialogPrivate.
Definition at line 887 of file qfiledialog.cpp.
Show the context menu for the file/dir under position
Definition at line 3536 of file qfiledialog.cpp.
| void QFileDialogPrivate::showDetailsView | ( | ) |
Definition at line 3521 of file qfiledialog.cpp.
Definition at line 3168 of file qfiledialog.cpp.
| void QFileDialogPrivate::showHidden | ( | ) |
Includes hidden files and directories in the items displayed in the dialog.
Definition at line 3926 of file qfiledialog.cpp.
| void QFileDialogPrivate::showListView | ( | ) |
Definition at line 3511 of file qfiledialog.cpp.
Definition at line 145 of file qfiledialog_p.h.
| QStringList QFileDialogPrivate::typedFiles | ( | ) | const |
Returns the text in the line edit which can be one or more file names
Definition at line 1212 of file qfiledialog.cpp.
| void QFileDialogPrivate::updateCancelButtonText | ( | ) |
Definition at line 677 of file qfiledialog.cpp.
|
inline |
Definition at line 631 of file qfiledialog.cpp.
|
inline |
Definition at line 647 of file qfiledialog.cpp.
|
inline |
Definition at line 625 of file qfiledialog.cpp.
| void QFileDialogPrivate::updateOkButton | ( | ) |
Definition at line 3681 of file qfiledialog.cpp.
| void QFileDialogPrivate::updateOkButtonText | ( | bool | saveAsOnFolder = false | ) |
Definition at line 653 of file qfiledialog.cpp.
| void QFileDialogPrivate::useNameFilter | ( | int | index | ) |
Sets the current name filter to be nameFilter and update the qFileDialogUi->fileNameEdit when in AcceptSave mode with the new extension.
Definition at line 3861 of file qfiledialog.cpp.
Definition at line 1253 of file qfiledialog.cpp.
|
inline |
Definition at line 739 of file qfiledialog.cpp.
| QString QFileDialogPrivate::acceptLabel |
Definition at line 242 of file qfiledialog_p.h.
| QList<HistoryItem> QFileDialogPrivate::currentHistory |
Definition at line 212 of file qfiledialog_p.h.
| int QFileDialogPrivate::currentHistoryLocation |
Definition at line 213 of file qfiledialog_p.h.
| QFileIconProvider QFileDialogPrivate::defaultIconProvider |
Definition at line 254 of file qfiledialog_p.h.
| QAction* QFileDialogPrivate::deleteAction |
Definition at line 216 of file qfiledialog_p.h.
| QByteArray QFileDialogPrivate::headerData |
Definition at line 252 of file qfiledialog_p.h.
| QByteArray QFileDialogPrivate::memberToDisconnectOnClose |
Definition at line 245 of file qfiledialog_p.h.
| QFileSystemModel* QFileDialogPrivate::model |
Definition at line 204 of file qfiledialog_p.h.
| QAction* QFileDialogPrivate::newFolderAction |
Definition at line 218 of file qfiledialog_p.h.
| QSharedPointer<QFileDialogOptions> QFileDialogPrivate::options |
Definition at line 248 of file qfiledialog_p.h.
Referenced by testing.tools.test_runner._TestCaseRunner::_NewImageArtifact(), testing.tools.test_runner._TestCaseRunner::_RegenerateIfNeeded(), testing.tools.test_runner._PerProcessState::GetSkiaGoldTester(), testing.tools.test_runner._PerProcessConfig::InitializeFeatures(), testing.tools.test_runner.TestRunner::IsSkiaGoldEnabled(), testing.tools.test_runner._PerProcessConfig::NewFinder(), testing.tools.test_runner._TestCaseRunner::TestPixel(), and testing.tools.test_runner._TestCaseRunner::TestText().
| std::unique_ptr<Ui_QFileDialog> QFileDialogPrivate::qFileDialogUi |
Definition at line 240 of file qfiledialog_p.h.
Definition at line 244 of file qfiledialog_p.h.
| QAction* QFileDialogPrivate::renameAction |
Definition at line 215 of file qfiledialog_p.h.
| QString QFileDialogPrivate::setWindowTitle |
Definition at line 210 of file qfiledialog_p.h.
| QAction* QFileDialogPrivate::showHiddenAction |
Definition at line 217 of file qfiledialog_p.h.
Definition at line 253 of file qfiledialog_p.h.
| QByteArray QFileDialogPrivate::signalToDisconnectOnClose |
Definition at line 246 of file qfiledialog_p.h.
| QByteArray QFileDialogPrivate::splitterState |
Definition at line 251 of file qfiledialog_p.h.
| bool QFileDialogPrivate::useDefaultCaption |
Definition at line 220 of file qfiledialog_p.h.
| QStringList QFileDialogPrivate::watching |
Definition at line 203 of file qfiledialog_p.h.