![]() |
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 77 of file qfiledialog_p.h.
Definition at line 82 of file qfiledialog_p.h.
| QFileDialogPrivate::QFileDialogPrivate | ( | ) |
Definition at line 542 of file qfiledialog.cpp.
| QFileDialogPrivate::~QFileDialogPrivate | ( | ) |
Definition at line 558 of file qfiledialog.cpp.
| QStringList QFileDialogPrivate::addDefaultSuffixToFiles | ( | const QStringList & | filesToFix | ) | const |
Definition at line 1274 of file qfiledialog.cpp.
Definition at line 1301 of file qfiledialog.cpp.
Definition at line 3651 of file qfiledialog.cpp.
Definition at line 125 of file qfiledialog_p.h.
|
overridevirtual |
Reimplemented from QDialogPrivate.
Definition at line 722 of file qfiledialog.cpp.
| void QFileDialogPrivate::createDirectory | ( | ) |
Creates a new directory, first asking the user for a suitable name.
Definition at line 3483 of file qfiledialog.cpp.
| void QFileDialogPrivate::createMenuActions | ( | ) |
Create actions which will be used in the right click.
Definition at line 3309 of file qfiledialog.cpp.
| void QFileDialogPrivate::createToolButtons | ( | ) |
Create tool buttons, set properties and connections
Definition at line 3257 of file qfiledialog.cpp.
| void QFileDialogPrivate::createWidgets | ( | ) |
Create the widgets, set properties and connections
Definition at line 2987 of file qfiledialog.cpp.
| void QFileDialogPrivate::currentChanged | ( | const QModelIndex & | index | ) |
Definition at line 3776 of file qfiledialog.cpp.
| QAbstractItemView * QFileDialogPrivate::currentView | ( | ) | const |
Definition at line 1813 of file qfiledialog.cpp.
| void QFileDialogPrivate::deleteCurrent | ( | ) |
Deletes the currently selected item in the dialog.
Definition at line 3597 of file qfiledialog.cpp.
|
inline |
Definition at line 347 of file qfiledialog_p.h.
| void QFileDialogPrivate::emitFilesSelected | ( | const QStringList & | files | ) |
Definition at line 714 of file qfiledialog.cpp.
Definition at line 3958 of file qfiledialog.cpp.
Definition at line 3966 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 3788 of file qfiledialog.cpp.
| void QFileDialogPrivate::fileRenamed | ( | const QString & | path, |
| const QString & | oldName, | ||
| const QString & | newName ) |
Definition at line 3949 of file qfiledialog.cpp.
|
inline |
Definition at line 133 of file qfiledialog_p.h.
Definition at line 4030 of file qfiledialog.cpp.
| void QFileDialogPrivate::goHome | ( | ) |
Definition at line 3356 of file qfiledialog.cpp.
Changes the file dialog's current directory to the one specified by path.
Definition at line 3822 of file qfiledialog.cpp.
set the directory to url
Definition at line 926 of file qfiledialog.cpp.
|
overrideprivatevirtual |
Reimplemented from QDialogPrivate.
Definition at line 592 of file qfiledialog.cpp.
|
overrideprivatevirtual |
Reimplemented from QDialogPrivate.
Definition at line 579 of file qfiledialog.cpp.
| void QFileDialogPrivate::init | ( | const QFileDialogArgs & | args | ) |
Create widgets, layout and set default values
Definition at line 2939 of file qfiledialog.cpp.
|
overrideprivatevirtual |
Reimplemented from QDialogPrivate.
Definition at line 562 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 4004 of file qfiledialog.cpp.
| QLineEdit * QFileDialogPrivate::lineEdit | ( | ) | const |
Definition at line 1821 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 1825 of file qfiledialog.cpp.
Definition at line 3978 of file qfiledialog.cpp.
Definition at line 3986 of file qfiledialog.cpp.
| void QFileDialogPrivate::navigate | ( | HistoryItem & | historyItem | ) |
Definition at line 3402 of file qfiledialog.cpp.
| void QFileDialogPrivate::navigateBackward | ( | ) |
Navigates to the last directory viewed in the dialog.
Definition at line 3436 of file qfiledialog.cpp.
| void QFileDialogPrivate::navigateForward | ( | ) |
Navigates to the last directory viewed in the dialog.
Definition at line 3449 of file qfiledialog.cpp.
| void QFileDialogPrivate::navigateToParent | ( | ) |
Navigates to the parent directory of the currently displayed directory in the dialog.
Definition at line 3463 of file qfiledialog.cpp.
Update history with new path, buttons, and combo
Definition at line 3379 of file qfiledialog.cpp.
|
inline |
Definition at line 92 of file qfiledialog_p.h.
| bool QFileDialogPrivate::removeDirectory | ( | const QString & | path | ) |
Definition at line 3586 of file qfiledialog.cpp.
| void QFileDialogPrivate::renameCurrent | ( | ) |
Definition at line 3575 of file qfiledialog.cpp.
| bool QFileDialogPrivate::restoreWidgetState | ( | QStringList & | history, |
| int | splitterPosition ) |
Definition at line 2891 of file qfiledialog.cpp.
| void QFileDialogPrivate::retranslateStrings | ( | ) |
Definition at line 682 of file qfiledialog.cpp.
| void QFileDialogPrivate::retranslateWindowTitle | ( | ) |
Definition at line 602 of file qfiledialog.cpp.
|
inline |
Definition at line 1809 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 3939 of file qfiledialog.cpp.
| void QFileDialogPrivate::saveHistorySelection | ( | ) |
Definition at line 3363 of file qfiledialog.cpp.
|
inline |
Definition at line 1854 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 3896 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 1997 of file qfiledialog.cpp.
Definition at line 619 of file qfiledialog.cpp.
|
inline |
Definition at line 1844 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 886 of file qfiledialog.cpp.
Show the context menu for the file/dir under position
Definition at line 3535 of file qfiledialog.cpp.
| void QFileDialogPrivate::showDetailsView | ( | ) |
Definition at line 3520 of file qfiledialog.cpp.
Definition at line 3167 of file qfiledialog.cpp.
| void QFileDialogPrivate::showHidden | ( | ) |
Includes hidden files and directories in the items displayed in the dialog.
Definition at line 3925 of file qfiledialog.cpp.
| void QFileDialogPrivate::showListView | ( | ) |
Definition at line 3510 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 1211 of file qfiledialog.cpp.
| void QFileDialogPrivate::updateCancelButtonText | ( | ) |
Definition at line 676 of file qfiledialog.cpp.
|
inline |
Definition at line 630 of file qfiledialog.cpp.
|
inline |
Definition at line 646 of file qfiledialog.cpp.
|
inline |
Definition at line 624 of file qfiledialog.cpp.
| void QFileDialogPrivate::updateOkButton | ( | ) |
Definition at line 3680 of file qfiledialog.cpp.
| void QFileDialogPrivate::updateOkButtonText | ( | bool | saveAsOnFolder = false | ) |
Definition at line 652 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 3860 of file qfiledialog.cpp.
Definition at line 1252 of file qfiledialog.cpp.
|
inline |
Definition at line 738 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.