![]() |
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) |
| 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 77 of file qfiledialog_p.h.
Definition at line 82 of file qfiledialog_p.h.
| QFileDialogPrivate::QFileDialogPrivate | ( | ) |
Definition at line 526 of file qfiledialog.cpp.
| QFileDialogPrivate::~QFileDialogPrivate | ( | ) |
Definition at line 542 of file qfiledialog.cpp.
| QStringList QFileDialogPrivate::addDefaultSuffixToFiles | ( | const QStringList & | filesToFix | ) | const |
Definition at line 1258 of file qfiledialog.cpp.
Definition at line 1285 of file qfiledialog.cpp.
Definition at line 3634 of file qfiledialog.cpp.
Definition at line 125 of file qfiledialog_p.h.
|
overridevirtual |
Reimplemented from QDialogPrivate.
Definition at line 706 of file qfiledialog.cpp.
| void QFileDialogPrivate::createDirectory | ( | ) |
Creates a new directory, first asking the user for a suitable name.
Definition at line 3466 of file qfiledialog.cpp.
| void QFileDialogPrivate::createMenuActions | ( | ) |
Create actions which will be used in the right click.
Definition at line 3292 of file qfiledialog.cpp.
| void QFileDialogPrivate::createToolButtons | ( | ) |
Create tool buttons, set properties and connections
Definition at line 3240 of file qfiledialog.cpp.
| void QFileDialogPrivate::createWidgets | ( | ) |
Create the widgets, set properties and connections
Definition at line 2970 of file qfiledialog.cpp.
| void QFileDialogPrivate::currentChanged | ( | const QModelIndex & | index | ) |
Definition at line 3759 of file qfiledialog.cpp.
| QAbstractItemView * QFileDialogPrivate::currentView | ( | ) | const |
Definition at line 1797 of file qfiledialog.cpp.
| void QFileDialogPrivate::deleteCurrent | ( | ) |
Deletes the currently selected item in the dialog.
Definition at line 3580 of file qfiledialog.cpp.
|
inline |
Definition at line 347 of file qfiledialog_p.h.
| void QFileDialogPrivate::emitFilesSelected | ( | const QStringList & | files | ) |
Definition at line 698 of file qfiledialog.cpp.
Definition at line 3941 of file qfiledialog.cpp.
Definition at line 3949 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 3771 of file qfiledialog.cpp.
| void QFileDialogPrivate::fileRenamed | ( | const QString & | path, |
| const QString & | oldName, | ||
| const QString & | newName ) |
Definition at line 3932 of file qfiledialog.cpp.
|
inline |
Definition at line 133 of file qfiledialog_p.h.
Definition at line 4017 of file qfiledialog.cpp.
| void QFileDialogPrivate::goHome | ( | ) |
Definition at line 3339 of file qfiledialog.cpp.
Changes the file dialog's current directory to the one specified by path.
Definition at line 3805 of file qfiledialog.cpp.
set the directory to url
Definition at line 910 of file qfiledialog.cpp.
|
overrideprivatevirtual |
Reimplemented from QDialogPrivate.
Definition at line 576 of file qfiledialog.cpp.
|
overrideprivatevirtual |
Reimplemented from QDialogPrivate.
Definition at line 563 of file qfiledialog.cpp.
| void QFileDialogPrivate::init | ( | const QFileDialogArgs & | args | ) |
Create widgets, layout and set default values
Definition at line 2922 of file qfiledialog.cpp.
|
overrideprivatevirtual |
Reimplemented from QDialogPrivate.
Definition at line 546 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 3987 of file qfiledialog.cpp.
| QLineEdit * QFileDialogPrivate::lineEdit | ( | ) | const |
Definition at line 1805 of file qfiledialog.cpp.
|
inline |
Definition at line 323 of file qfiledialog_p.h.
|
inline |
Definition at line 316 of file qfiledialog_p.h.
|
static |
Definition at line 1809 of file qfiledialog.cpp.
Definition at line 3961 of file qfiledialog.cpp.
Definition at line 3969 of file qfiledialog.cpp.
| void QFileDialogPrivate::navigate | ( | HistoryItem & | historyItem | ) |
Definition at line 3385 of file qfiledialog.cpp.
| void QFileDialogPrivate::navigateBackward | ( | ) |
Navigates to the last directory viewed in the dialog.
Definition at line 3419 of file qfiledialog.cpp.
| void QFileDialogPrivate::navigateForward | ( | ) |
Navigates to the last directory viewed in the dialog.
Definition at line 3432 of file qfiledialog.cpp.
| void QFileDialogPrivate::navigateToParent | ( | ) |
Navigates to the parent directory of the currently displayed directory in the dialog.
Definition at line 3446 of file qfiledialog.cpp.
Update history with new path, buttons, and combo
Definition at line 3362 of file qfiledialog.cpp.
|
inline |
Definition at line 92 of file qfiledialog_p.h.
| bool QFileDialogPrivate::removeDirectory | ( | const QString & | path | ) |
Definition at line 3569 of file qfiledialog.cpp.
| void QFileDialogPrivate::renameCurrent | ( | ) |
Definition at line 3558 of file qfiledialog.cpp.
| bool QFileDialogPrivate::restoreWidgetState | ( | QStringList & | history, |
| int | splitterPosition ) |
Definition at line 2874 of file qfiledialog.cpp.
| void QFileDialogPrivate::retranslateStrings | ( | ) |
Definition at line 666 of file qfiledialog.cpp.
| void QFileDialogPrivate::retranslateWindowTitle | ( | ) |
Definition at line 586 of file qfiledialog.cpp.
|
inline |
Definition at line 1793 of file qfiledialog.cpp.
|
inline |
Definition at line 331 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 3922 of file qfiledialog.cpp.
| void QFileDialogPrivate::saveHistorySelection | ( | ) |
Definition at line 3346 of file qfiledialog.cpp.
|
inline |
Definition at line 1838 of file qfiledialog.cpp.
Definition at line 365 of file qfiledialog_p.h.
|
inline |
Definition at line 384 of file qfiledialog_p.h.
|
inline |
Definition at line 398 of file qfiledialog_p.h.
Definition at line 354 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 3879 of file qfiledialog.cpp.
Definition at line 378 of file qfiledialog_p.h.
Definition at line 392 of file qfiledialog_p.h.
Definition at line 336 of file qfiledialog_p.h.
|
inline |
Definition at line 372 of file qfiledialog_p.h.
| void QFileDialogPrivate::setLabelTextControl | ( | QFileDialog::DialogLabel | label, |
| const QString & | text ) |
Definition at line 1981 of file qfiledialog.cpp.
Definition at line 603 of file qfiledialog.cpp.
|
inline |
Definition at line 1828 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 870 of file qfiledialog.cpp.
Show the context menu for the file/dir under position
Definition at line 3518 of file qfiledialog.cpp.
| void QFileDialogPrivate::showDetailsView | ( | ) |
Definition at line 3503 of file qfiledialog.cpp.
Definition at line 3150 of file qfiledialog.cpp.
| void QFileDialogPrivate::showHidden | ( | ) |
Includes hidden files and directories in the items displayed in the dialog.
Definition at line 3908 of file qfiledialog.cpp.
| void QFileDialogPrivate::showListView | ( | ) |
Definition at line 3493 of file qfiledialog.cpp.
Definition at line 143 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 1195 of file qfiledialog.cpp.
| void QFileDialogPrivate::updateCancelButtonText | ( | ) |
Definition at line 660 of file qfiledialog.cpp.
|
inline |
Definition at line 614 of file qfiledialog.cpp.
|
inline |
Definition at line 630 of file qfiledialog.cpp.
|
inline |
Definition at line 608 of file qfiledialog.cpp.
| void QFileDialogPrivate::updateOkButton | ( | ) |
Definition at line 3663 of file qfiledialog.cpp.
| void QFileDialogPrivate::updateOkButtonText | ( | bool | saveAsOnFolder = false | ) |
Definition at line 636 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 3843 of file qfiledialog.cpp.
Definition at line 1236 of file qfiledialog.cpp.
|
inline |
Definition at line 722 of file qfiledialog.cpp.
| QString QFileDialogPrivate::acceptLabel |
Definition at line 240 of file qfiledialog_p.h.
| QList<HistoryItem> QFileDialogPrivate::currentHistory |
Definition at line 210 of file qfiledialog_p.h.
| int QFileDialogPrivate::currentHistoryLocation |
Definition at line 211 of file qfiledialog_p.h.
| QFileIconProvider QFileDialogPrivate::defaultIconProvider |
Definition at line 252 of file qfiledialog_p.h.
| QAction* QFileDialogPrivate::deleteAction |
Definition at line 214 of file qfiledialog_p.h.
| QByteArray QFileDialogPrivate::headerData |
Definition at line 250 of file qfiledialog_p.h.
| QByteArray QFileDialogPrivate::memberToDisconnectOnClose |
Definition at line 243 of file qfiledialog_p.h.
| QFileSystemModel* QFileDialogPrivate::model |
Definition at line 202 of file qfiledialog_p.h.
| QAction* QFileDialogPrivate::newFolderAction |
Definition at line 216 of file qfiledialog_p.h.
| QSharedPointer<QFileDialogOptions> QFileDialogPrivate::options |
Definition at line 246 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().
| QScopedPointer<Ui_QFileDialog> QFileDialogPrivate::qFileDialogUi |
Definition at line 238 of file qfiledialog_p.h.
Definition at line 242 of file qfiledialog_p.h.
| QAction* QFileDialogPrivate::renameAction |
Definition at line 213 of file qfiledialog_p.h.
| QString QFileDialogPrivate::setWindowTitle |
Definition at line 208 of file qfiledialog_p.h.
| QAction* QFileDialogPrivate::showHiddenAction |
Definition at line 215 of file qfiledialog_p.h.
Definition at line 251 of file qfiledialog_p.h.
| QByteArray QFileDialogPrivate::signalToDisconnectOnClose |
Definition at line 244 of file qfiledialog_p.h.
| QByteArray QFileDialogPrivate::splitterState |
Definition at line 249 of file qfiledialog_p.h.
| bool QFileDialogPrivate::useDefaultCaption |
Definition at line 218 of file qfiledialog_p.h.
| QStringList QFileDialogPrivate::watching |
Definition at line 201 of file qfiledialog_p.h.