![]() |
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 515 of file qfiledialog.cpp.
QFileDialogPrivate::~QFileDialogPrivate | ( | ) |
Definition at line 531 of file qfiledialog.cpp.
QStringList QFileDialogPrivate::addDefaultSuffixToFiles | ( | const QStringList & | filesToFix | ) | const |
Definition at line 1247 of file qfiledialog.cpp.
Definition at line 1274 of file qfiledialog.cpp.
Definition at line 3624 of file qfiledialog.cpp.
Definition at line 125 of file qfiledialog_p.h.
|
overridevirtual |
Reimplemented from QDialogPrivate.
Definition at line 695 of file qfiledialog.cpp.
void QFileDialogPrivate::createDirectory | ( | ) |
Creates a new directory, first asking the user for a suitable name.
Definition at line 3456 of file qfiledialog.cpp.
void QFileDialogPrivate::createMenuActions | ( | ) |
Create actions which will be used in the right click.
Definition at line 3282 of file qfiledialog.cpp.
void QFileDialogPrivate::createToolButtons | ( | ) |
Create tool buttons, set properties and connections
Definition at line 3230 of file qfiledialog.cpp.
void QFileDialogPrivate::createWidgets | ( | ) |
Create the widgets, set properties and connections
Definition at line 2959 of file qfiledialog.cpp.
void QFileDialogPrivate::currentChanged | ( | const QModelIndex & | index | ) |
Definition at line 3749 of file qfiledialog.cpp.
QAbstractItemView * QFileDialogPrivate::currentView | ( | ) | const |
Definition at line 1786 of file qfiledialog.cpp.
void QFileDialogPrivate::deleteCurrent | ( | ) |
Deletes the currently selected item in the dialog.
Definition at line 3570 of file qfiledialog.cpp.
|
inline |
Definition at line 350 of file qfiledialog_p.h.
void QFileDialogPrivate::emitFilesSelected | ( | const QStringList & | files | ) |
Definition at line 687 of file qfiledialog.cpp.
Definition at line 3928 of file qfiledialog.cpp.
Definition at line 3936 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 3761 of file qfiledialog.cpp.
void QFileDialogPrivate::fileRenamed | ( | const QString & | path, |
const QString & | oldName, | ||
const QString & | newName ) |
Definition at line 3919 of file qfiledialog.cpp.
|
inline |
Definition at line 133 of file qfiledialog_p.h.
Definition at line 4004 of file qfiledialog.cpp.
void QFileDialogPrivate::goHome | ( | ) |
Definition at line 3329 of file qfiledialog.cpp.
Changes the file dialog's current directory to the one specified by path.
Definition at line 3792 of file qfiledialog.cpp.
set the directory to url
Definition at line 899 of file qfiledialog.cpp.
|
overrideprivatevirtual |
Reimplemented from QDialogPrivate.
Definition at line 565 of file qfiledialog.cpp.
|
overrideprivatevirtual |
Reimplemented from QDialogPrivate.
Definition at line 552 of file qfiledialog.cpp.
void QFileDialogPrivate::init | ( | const QFileDialogArgs & | args | ) |
Create widgets, layout and set default values
Definition at line 2911 of file qfiledialog.cpp.
|
overrideprivatevirtual |
Reimplemented from QDialogPrivate.
Definition at line 535 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 3974 of file qfiledialog.cpp.
QLineEdit * QFileDialogPrivate::lineEdit | ( | ) | const |
Definition at line 1794 of file qfiledialog.cpp.
|
inline |
Definition at line 326 of file qfiledialog_p.h.
|
inline |
Definition at line 319 of file qfiledialog_p.h.
|
static |
Definition at line 1798 of file qfiledialog.cpp.
Definition at line 3948 of file qfiledialog.cpp.
Definition at line 3956 of file qfiledialog.cpp.
void QFileDialogPrivate::navigate | ( | HistoryItem & | historyItem | ) |
Definition at line 3375 of file qfiledialog.cpp.
void QFileDialogPrivate::navigateBackward | ( | ) |
Navigates to the last directory viewed in the dialog.
Definition at line 3409 of file qfiledialog.cpp.
void QFileDialogPrivate::navigateForward | ( | ) |
Navigates to the last directory viewed in the dialog.
Definition at line 3422 of file qfiledialog.cpp.
void QFileDialogPrivate::navigateToParent | ( | ) |
Navigates to the parent directory of the currently displayed directory in the dialog.
Definition at line 3436 of file qfiledialog.cpp.
Update history with new path, buttons, and combo
Definition at line 3352 of file qfiledialog.cpp.
|
inline |
Definition at line 92 of file qfiledialog_p.h.
bool QFileDialogPrivate::removeDirectory | ( | const QString & | path | ) |
Definition at line 3559 of file qfiledialog.cpp.
void QFileDialogPrivate::renameCurrent | ( | ) |
Definition at line 3548 of file qfiledialog.cpp.
bool QFileDialogPrivate::restoreWidgetState | ( | QStringList & | history, |
int | splitterPosition ) |
Definition at line 2863 of file qfiledialog.cpp.
void QFileDialogPrivate::retranslateStrings | ( | ) |
Definition at line 655 of file qfiledialog.cpp.
void QFileDialogPrivate::retranslateWindowTitle | ( | ) |
Definition at line 575 of file qfiledialog.cpp.
|
inline |
Definition at line 1782 of file qfiledialog.cpp.
|
inline |
Definition at line 334 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 3909 of file qfiledialog.cpp.
void QFileDialogPrivate::saveHistorySelection | ( | ) |
Definition at line 3336 of file qfiledialog.cpp.
|
inline |
Definition at line 1827 of file qfiledialog.cpp.
Definition at line 368 of file qfiledialog_p.h.
|
inline |
Definition at line 387 of file qfiledialog_p.h.
|
inline |
Definition at line 401 of file qfiledialog_p.h.
Definition at line 357 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 3866 of file qfiledialog.cpp.
Definition at line 381 of file qfiledialog_p.h.
Definition at line 395 of file qfiledialog_p.h.
Definition at line 339 of file qfiledialog_p.h.
|
inline |
Definition at line 375 of file qfiledialog_p.h.
void QFileDialogPrivate::setLabelTextControl | ( | QFileDialog::DialogLabel | label, |
const QString & | text ) |
Definition at line 1970 of file qfiledialog.cpp.
Definition at line 592 of file qfiledialog.cpp.
|
inline |
Definition at line 1817 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 859 of file qfiledialog.cpp.
Show the context menu for the file/dir under position
Definition at line 3508 of file qfiledialog.cpp.
void QFileDialogPrivate::showDetailsView | ( | ) |
Definition at line 3493 of file qfiledialog.cpp.
Definition at line 3140 of file qfiledialog.cpp.
void QFileDialogPrivate::showHidden | ( | ) |
Includes hidden files and directories in the items displayed in the dialog.
Definition at line 3895 of file qfiledialog.cpp.
void QFileDialogPrivate::showListView | ( | ) |
Definition at line 3483 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 1184 of file qfiledialog.cpp.
void QFileDialogPrivate::updateCancelButtonText | ( | ) |
Definition at line 649 of file qfiledialog.cpp.
|
inline |
Definition at line 603 of file qfiledialog.cpp.
|
inline |
Definition at line 619 of file qfiledialog.cpp.
|
inline |
Definition at line 597 of file qfiledialog.cpp.
void QFileDialogPrivate::updateOkButton | ( | ) |
Definition at line 3653 of file qfiledialog.cpp.
void QFileDialogPrivate::updateOkButtonText | ( | bool | saveAsOnFolder = false | ) |
Definition at line 625 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 3830 of file qfiledialog.cpp.
Definition at line 1225 of file qfiledialog.cpp.
|
inline |
Definition at line 711 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.