Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QFileDialogPrivate Class Reference

#include <qfiledialog_p.h>

+ Inheritance diagram for QFileDialogPrivate:
+ Collaboration diagram for QFileDialogPrivate:

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 }
 
- Public Types inherited from QObjectPrivate
typedef void(* StaticMetaCallFunction) (QObject *, QMetaObject::Call, int, void **)
 
using ConnectionDataPointer = QExplicitlySharedDataPointer< ConnectionData >
 

Public Member Functions

 QFileDialogPrivate ()
 
QPlatformFileDialogHelperplatformFileDialogHelper () const
 
void createToolButtons ()
 
void createMenuActions ()
 
void createWidgets ()
 
void init (const QFileDialogArgs &args)
 
bool itemViewKeyboardEvent (QKeyEvent *event)
 
QString getEnvironmentVariable (const QString &string)
 
QStringList typedFiles () const
 
QList< QUrluserSelectedFiles () const
 
QStringList addDefaultSuffixToFiles (const QStringList &filesToFix) const
 
QList< QUrladdDefaultSuffixToUrls (const QList< QUrl > &urlsToFix) const
 
bool removeDirectory (const QString &path)
 
void setLabelTextControl (QFileDialog::DialogLabel label, const QString &text)
 
void updateLookInLabel ()
 
void updateFileNameLabel ()
 
void updateFileTypeLabel ()
 
void updateOkButtonText (bool saveAsOnFolder=false)
 
void updateCancelButtonText ()
 
QModelIndex mapToSource (const QModelIndex &index) const
 
QModelIndex mapFromSource (const QModelIndex &index) const
 
QModelIndex rootIndex () const
 
void setRootIndex (const QModelIndex &index) const
 
QModelIndex select (const QModelIndex &index) const
 
QString rootPath () const
 
QLineEditlineEdit () const
 
QString basename (const QString &path) const
 
QDir::Filters filterForMode (QDir::Filters filters) const
 
QAbstractItemViewcurrentView () const
 
bool restoreWidgetState (QStringList &history, int splitterPosition)
 
void retranslateWindowTitle ()
 
void retranslateStrings ()
 
void emitFilesSelected (const QStringList &files)
 
void saveHistorySelection ()
 
void _q_goHome ()
 
void _q_pathChanged (const QString &)
 
void navigate (HistoryItem &)
 
void _q_navigateBackward ()
 
void _q_navigateForward ()
 
void _q_navigateToParent ()
 
void _q_createDirectory ()
 
void _q_showListView ()
 
void _q_showDetailsView ()
 
void _q_showContextMenu (const QPoint &position)
 
void _q_renameCurrent ()
 
void _q_deleteCurrent ()
 
void _q_showHidden ()
 
void _q_showHeader (QAction *)
 
void _q_updateOkButton ()
 
void _q_currentChanged (const QModelIndex &index)
 
void _q_enterDirectory (const QModelIndex &index)
 
void _q_emitUrlSelected (const QUrl &file)
 
void _q_emitUrlsSelected (const QList< QUrl > &files)
 
void _q_nativeCurrentChanged (const QUrl &file)
 
void _q_nativeEnterDirectory (const QUrl &directory)
 
void _q_goToDirectory (const QString &)
 
void _q_useNameFilter (int index)
 
void _q_selectionChanged ()
 
void _q_goToUrl (const QUrl &url)
 
void _q_autoCompleteFileName (const QString &)
 
void _q_rowsInserted (const QModelIndex &parent)
 
void _q_fileRenamed (const QString &path, const QString &oldName, const QString &newName)
 
bool canBeNativeDialog () const override
 
bool usingWidgets () const
 
void setDirectory_sys (const QUrl &directory)
 
QUrl directory_sys () const
 
void selectFile_sys (const QUrl &filename)
 
QList< QUrlselectedFiles_sys () const
 
void setFilter_sys ()
 
void selectMimeTypeFilter_sys (const QString &filter)
 
QString selectedMimeTypeFilter_sys () const
 
void selectNameFilter_sys (const QString &filter)
 
QString selectedNameFilter_sys () const
 
 ~QFileDialogPrivate ()
 
- Public Member Functions inherited from QDialogPrivate
 QDialogPrivate ()
 
 ~QDialogPrivate ()
 
virtual void setVisible (bool visible)
 
QWindowtransientParentWindow () const
 
bool setNativeDialogVisible (bool visible)
 
QVariant styleHint (QPlatformDialogHelper::StyleHint hint) const
 
void resetModalitySetByOpen ()
 
QPlatformDialogHelperplatformHelper () const
 
virtual bool canBeNativeDialog () const
 
void close (int resultCode)
 
- Public Member Functions inherited from QWidgetPrivate
 QWidgetPrivate (int version=QObjectPrivateVersion)
 
 ~QWidgetPrivate ()
 
QWExtraextraData () const
 
QTLWExtratopData () const
 
QTLWExtramaybeTopData () const
 
QPaintersharedPainter () const
 
void setSharedPainter (QPainter *painter)
 
QWidgetRepaintManagermaybeRepaintManager () const
 
QWindowwindowHandle (WindowHandleMode mode=WindowHandleMode::Direct) const
 
QWindow_q_closestWindowHandle () const
 
QScreenassociatedScreen () const
 
template<typename T >
void repaint (T t)
 
template<typename T >
void update (T t)
 
void init (QWidget *desktopWidget, Qt::WindowFlags f)
 
void create ()
 
void createRecursively ()
 
void createWinId ()
 
bool setScreenForPoint (const QPoint &pos)
 
bool setScreen (QScreen *screen)
 
void createTLExtra ()
 
void createExtra ()
 
void deleteExtra ()
 
void createSysExtra ()
 
void deleteSysExtra ()
 
void createTLSysExtra ()
 
void deleteTLSysExtra ()
 
void updateSystemBackground ()
 
void propagatePaletteChange ()
 
void setPalette_helper (const QPalette &)
 
void resolvePalette ()
 
QPalette naturalWidgetPalette (QPalette::ResolveMask inheritedMask) const
 
void setMask_sys (const QRegion &)
 
void raise_sys ()
 
void lower_sys ()
 
void stackUnder_sys (QWidget *)
 
QWidgetdeepestFocusProxy () const
 
void setFocus_sys ()
 
void updateFocusChild ()
 
void updateFont (const QFont &)
 
void setFont_helper (const QFont &font)
 
QFont localFont () const
 
void resolveFont ()
 
QFont naturalWidgetFont (uint inheritedMask) const
 
void setLayoutDirection_helper (Qt::LayoutDirection)
 
void resolveLayoutDirection ()
 
void setLocale_helper (const QLocale &l, bool forceUpdate=false)
 
void resolveLocale ()
 
void setStyle_helper (QStyle *newStyle, bool propagate)
 
void inheritStyle ()
 
void setUpdatesEnabled_helper (bool)
 
bool updateBrushOrigin (QPainter *, const QBrush &brush) const
 
void paintBackground (QPainter *, const QRegion &, DrawWidgetFlags flags=DrawAsRoot) const
 
bool isAboutToShow () const
 The graphicsEffect function returns a pointer to the widget's graphics effect.
 
QRegion prepareToRender (const QRegion &region, QWidget::RenderFlags renderFlags)
 
void render_helper (QPainter *painter, const QPoint &targetOffset, const QRegion &sourceRegion, QWidget::RenderFlags renderFlags)
 
void render (QPaintDevice *target, const QPoint &targetOffset, const QRegion &sourceRegion, QWidget::RenderFlags renderFlags)
 
void drawWidget (QPaintDevice *pdev, const QRegion &rgn, const QPoint &offset, DrawWidgetFlags flags, QPainter *sharedPainter=nullptr, QWidgetRepaintManager *repaintManager=nullptr)
 
void sendPaintEvent (const QRegion &toBePainted)
 
void paintSiblingsRecursive (QPaintDevice *pdev, const QObjectList &children, int index, const QRegion &rgn, const QPoint &offset, DrawWidgetFlags flags, QPainter *sharedPainter, QWidgetRepaintManager *repaintManager)
 
bool shouldPaintOnScreen () const
 
void paintOnScreen (const QRegion &rgn)
 
QRect clipRect () const
 
QRegion clipRegion () const
 
void setSystemClip (QPaintEngine *paintEngine, qreal devicePixelRatio, const QRegion &region)
 
void subtractOpaqueChildren (QRegion &rgn, const QRect &clipRect) const
 
void subtractOpaqueSiblings (QRegion &source, bool *hasDirtySiblingsAbove=nullptr, bool alsoNonOpaque=false) const
 
void clipToEffectiveMask (QRegion &region) const
 
void updateIsOpaque ()
 
void setOpaque (bool opaque)
 
void updateIsTranslucent ()
 
const QRegiongetOpaqueChildren () const
 
void setDirtyOpaqueRegion ()
 
bool close ()
 
bool handleClose (CloseMode mode)
 
void setWindowIcon_helper ()
 
void setWindowIcon_sys ()
 
void setWindowOpacity_sys (qreal opacity)
 
void adjustQuitOnCloseAttribute ()
 
void scrollChildren (int dx, int dy)
 
void moveRect (const QRect &, int dx, int dy)
 
void scrollRect (const QRect &, int dx, int dy)
 
void invalidateBackingStore_resizeHelper (const QPoint &oldPos, const QSize &oldSize)
 Invalidates the backing store when the widget is resized.
 
template<class T >
void invalidateBackingStore (const T &)
 
QRegion overlappedRegion (const QRect &rect, bool breakAfterFirst=false) const
 
bool isOverlapped (const QRect &rect) const
 
void syncBackingStore ()
 
void syncBackingStore (const QRegion &region)
 
bool shouldDiscardSyncRequest () const
 
void updateWidgetTransform (QEvent *event)
 
void reparentFocusWidgets (QWidget *oldtlw)
 
void setWinId (WId)
 
void showChildren (bool spontaneous)
 
void hideChildren (bool spontaneous)
 
void setParent_sys (QWidget *parent, Qt::WindowFlags)
 
void scroll_sys (int dx, int dy)
 
void scroll_sys (int dx, int dy, const QRect &r)
 
void deactivateWidgetCleanup ()
 
void setGeometry_sys (int, int, int, int, bool)
 
void fixPosIncludesFrame ()
 
void sendPendingMoveAndResizeEvents (bool recursive=false, bool disableUpdates=false)
 
void activateChildLayoutsRecursively ()
 
void show_recursive ()
 
void show_helper ()
 
void show_sys ()
 
void hide_sys ()
 
void hide_helper ()
 
void _q_showIfNotHidden ()
 
void setVisible (bool)
 
void setEnabled_helper (bool)
 
void updateFrameStrut ()
 
QRect frameStrut () const
 
void setWindowIconText_sys (const QString &cap)
 
void setWindowIconText_helper (const QString &cap)
 
void setWindowTitle_sys (const QString &cap)
 
void setWindowFilePath_sys (const QString &filePath)
 
void setCursor_sys (const QCursor &cursor)
 
void unsetCursor_sys ()
 
void setWindowTitle_helper (const QString &cap)
 
void setWindowFilePath_helper (const QString &filePath)
 
void setWindowModified_helper ()
 
virtual void setWindowFlags (Qt::WindowFlags windowFlags)
 
bool setMinimumSize_helper (int &minw, int &minh)
 
bool setMaximumSize_helper (int &maxw, int &maxh)
 
void setConstraints_sys ()
 
bool pointInsideRectAndMask (const QPoint &) const
 
QWidgetchildAt_helper (const QPoint &, bool) const
 
QWidgetchildAtRecursiveHelper (const QPoint &p, bool) const
 
void updateGeometry_helper (bool forceUpdate)
 
void getLayoutItemMargins (int *left, int *top, int *right, int *bottom) const
 
void setLayoutItemMargins (int left, int top, int right, int bottom)
 
void setLayoutItemMargins (QStyle::SubElement element, const QStyleOption *opt=nullptr)
 
void updateContentsRect ()
 
QMargins safeAreaMargins () const
 
virtual void aboutToDestroy ()
 
QWidgeteffectiveFocusWidget ()
 
void setModal_sys ()
 
void setRedirected (QPaintDevice *replacement, const QPoint &offset)
 
QPaintDeviceredirected (QPoint *offset) const
 
void restoreRedirected ()
 
void enforceNativeChildren ()
 
bool nativeChildrenForced () const
 
QRect effectiveRectFor (const QRegion &region) const
 
QRect effectiveRectFor (const QRect &rect) const
 
QSize adjustedSize () const
 
void handleSoftwareInputPanel (Qt::MouseButton button, bool clickCausedFocus)
 
void handleSoftwareInputPanel (bool clickCausedFocus=false)
 
void setWSGeometry ()
 
QPoint mapToWS (const QPoint &p) const
 
QPoint mapFromWS (const QPoint &p) const
 
QRect mapToWS (const QRect &r) const
 
QRect mapFromWS (const QRect &r) const
 
virtual QObjectfocusObject ()
 
virtual QPlatformBackingStoreRhiConfig rhiConfig () const
 
virtual TextureData texture () const
 
virtual QPlatformTextureList::Flags textureListFlags ()
 
virtual QImage grabFramebuffer ()
 
virtual void beginBackingStorePainting ()
 
virtual void endBackingStorePainting ()
 
virtual void beginCompose ()
 
virtual void endCompose ()
 
void setRenderToTexture ()
 
void setTextureChildSeen ()
 
virtual void initializeViewportFramebuffer ()
 
virtual void resizeViewportFramebuffer ()
 
virtual void resolveSamples ()
 
virtual bool isStereoEnabled ()
 
virtual bool toggleStereoTargetBuffer ()
 
std::string flagsForDumping () const override
 
void setNetWmWindowTypes (bool skipIfMissing=false)
 
bool stealKeyboardGrab (bool grab)
 
bool stealMouseGrab (bool grab)
 
- Public Member Functions inherited from QObjectPrivate
void ensureExtraData ()
 
 QObjectPrivate (int version=QObjectPrivateVersion)
 
virtual ~QObjectPrivate ()
 
void deleteChildren ()
 
void clearBindingStorage ()
 
void checkForIncompatibleLibraryVersion (int version) const
 
void setParent_helper (QObject *)
 
void moveToThread_helper ()
 
void setThreadData_helper (QThreadData *currentData, QThreadData *targetData, QBindingStatus *status)
 
void _q_reregisterTimers (void *pointer)
 
bool isSender (const QObject *receiver, const char *signal) const
 
QObjectList receiverList (const char *signal) const
 
QObjectList senderList () const
 
void ensureConnectionData ()
 
void addConnection (int signal, Connection *c)
 
int signalIndex (const char *signalName, const QMetaObject **meta=nullptr) const
 
bool isSignalConnected (uint signalIdx, bool checkDeclarative=true) const
 
bool maybeSignalConnected (uint signalIndex) const
 
bool isDeclarativeSignalConnected (uint signalIdx) const
 
void connectNotify (const QMetaMethod &signal)
 
void disconnectNotify (const QMetaMethod &signal)
 
void reinitBindingStorageAfterThreadMove ()
 
virtual std::string flagsForDumping () const
 
QtPrivate::QPropertyAdaptorSlotObjectgetPropertyAdaptorSlotObject (const QMetaProperty &property)
 
- Public Member Functions inherited from QObjectData
 QObjectData ()=default
 
virtual ~QObjectData ()=0
 
QMetaObjectdynamicMetaObject () const
 

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 QWidgetPrivateget (QWidget *w)
 
static const QWidgetPrivateget (const QWidget *w)
 
static void checkRestoredGeometry (const QRect &availableGeometry, QRect *restoredGeometry, int frameHeight)
 
static void adjustFlags (Qt::WindowFlags &flags, QWidget *w=nullptr)
 
static QWidgetparentGraphicsView (const QWidget *widget)
 
static QRect screenGeometry (const QWidget *widget)
 
static QRect availableScreenGeometry (const QWidget *widget)
 
static QScreenscreen (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 Public Member Functions inherited from QObjectPrivate
static bool removeConnection (Connection *c)
 
static QObjectPrivateget (QObject *o)
 
static const QObjectPrivateget (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)
 

Public Attributes

QStringList watching
 
QFileSystemModelmodel
 
QString setWindowTitle
 
QList< HistoryItemcurrentHistory
 
int currentHistoryLocation
 
QActionrenameAction
 
QActiondeleteAction
 
QActionshowHiddenAction
 
QActionnewFolderAction
 
bool useDefaultCaption
 
QScopedPointer< Ui_QFileDialog > qFileDialogUi
 
QString acceptLabel
 
QPointer< QObjectreceiverToDisconnectOnClose
 
QByteArray memberToDisconnectOnClose
 
QByteArray signalToDisconnectOnClose
 
QSharedPointer< QFileDialogOptionsoptions
 
QByteArray splitterState
 
QByteArray headerData
 
QList< QUrlsidebarUrls
 
QFileIconProvider defaultIconProvider
 
- Public Attributes inherited from QDialogPrivate
Qt::Orientation orientation
 
QWidgetextension
 
bool doShowExtension
 
QSize size
 
QSize min
 
QSize max
 
QPoint lastRMBPress
 
int rescode
 
int resetModalityTo
 
bool wasModalitySet
 
QPointer< QEventLoopeventLoop
 
bool nativeDialogInUse
 
- Public Attributes inherited from QWidgetPrivate
std::unique_ptr< QWExtraextra
 
QWidgetfocus_next
 
QWidgetfocus_prev
 
QWidgetfocus_child
 
QLayoutlayout
 
QRegionneedsFlush
 
QPaintDeviceredirectDev
 
QWidgetItemV2widgetItem
 
QPaintEngineextraPaintEngine
 
const QMetaObjectpolished
 
QGraphicsEffectgraphicsEffect
 
Qt::InputMethodHints imHints
 
QRegion opaqueChildren
 
QRegion dirty
 
uint directFontResolveMask
 
uint inheritedFontResolveMask
 
decltype(std::declval< QPalette >().resolveMask()) directPaletteResolveMask
 
QPalette::ResolveMask inheritedPaletteResolveMask
 
short leftmargin
 
short topmargin
 
short rightmargin
 
short bottommargin
 
signed char leftLayoutItemMargin
 
signed char topLayoutItemMargin
 
signed char rightLayoutItemMargin
 
signed char bottomLayoutItemMargin
 
Qt::HANDLE hd
 
QWidgetData data
 
QSizePolicy size_policy
 
QLocale locale
 
QPoint redirectOffset
 
QList< QAction * > actions
 
QMap< Qt::GestureType, Qt::GestureFlags > gestureContext
 
uint high_attributes [4]
 
QPalette::ColorRole fg_role: 8
 
QPalette::ColorRole bg_role: 8
 
uint dirtyOpaqueChildren: 1
 
uint isOpaque: 1
 
uint retainSizeWhenHiddenChanged: 1
 
uint inDirtyList: 1
 
uint isScrolled: 1
 
uint isMoved: 1
 
uint usesDoubleBufferedGLContext: 1
 
uint mustHaveWindowHandle: 1
 
uint renderToTexture: 1
 
uint textureChildSeen: 1
 
uint inheritsInputMethodHints: 1
 
uint renderToTextureReallyDirty: 1
 
uint usesRhiFlush: 1
 
uint childrenHiddenByWState: 1
 
uint childrenShownByExpose: 1
 
- Public Attributes inherited from QObjectPrivate
ExtraDataextraData
 
QAtomicPointer< QThreadDatathreadData
 
QAtomicPointer< ConnectionDataconnections
 
union { 
 
   QObject *   currentChildBeingDeleted 
 
   QAbstractDeclarativeData *   declarativeData 
 
};  
 
QAtomicPointer< QtSharedPointer::ExternalRefCountDatasharedRefcount
 
- Public Attributes inherited from QObjectData
QObjectq_ptr
 
QObjectparent
 
QObjectList children
 
uint isWidget: 1
 
uint blockSig: 1
 
uint wasDeleted: 1
 
uint isDeletingChildren: 1
 
uint sendChildEvents: 1
 
uint receiveChildEvents: 1
 
uint isWindow: 1
 
uint deleteLaterCalled: 1
 
uint isQuickItem: 1
 
uint willBeWidget: 1
 
uint wasWidget: 1
 
uint unused: 21
 
QAtomicInt postedEvents
 
QDynamicMetaObjectDatametaObject
 
QBindingStorage bindingStorage
 

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 QWidgetMappermapper = nullptr
 
static QWidgetSetallWidgets = nullptr
 
static int instanceCounter = 0
 
static int maxInstances = 0
 
- Protected Member Functions inherited from QDialogPrivate
virtual int dialogCode () const
 

Detailed Description

Definition at line 77 of file qfiledialog_p.h.

Member Typedef Documentation

◆ PersistentModelIndexList

Constructor & Destructor Documentation

◆ QFileDialogPrivate()

QFileDialogPrivate::QFileDialogPrivate ( )

Definition at line 504 of file qfiledialog.cpp.

◆ ~QFileDialogPrivate()

QFileDialogPrivate::~QFileDialogPrivate ( )

Definition at line 520 of file qfiledialog.cpp.

Member Function Documentation

◆ _q_autoCompleteFileName()

void QFileDialogPrivate::_q_autoCompleteFileName ( const QString text)

Definition at line 3597 of file qfiledialog.cpp.

References QList< T >::append(), file, QWidget::hasFocus(), QFileSystemModel::index(), lineEdit(), model, qFileDialogUi, QList< T >::removeAll(), QItemSelectionModel::Rows, select(), QString::startsWith(), text, QItemSelectionModel::Toggle, and typedFiles().

Referenced by createWidgets().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _q_createDirectory()

void QFileDialogPrivate::_q_createDirectory ( )

Creates a new directory, first asking the user for a suitable name.

Definition at line 3429 of file qfiledialog.cpp.

References currentView(), QAbstractItemView::edit(), QFile::exists(), QFileSystemModel::mkdir(), model, QString::number(), QObjectData::parent, qFileDialogUi, rootIndex(), select(), and QDir::separator().

Referenced by createMenuActions(), and createToolButtons().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _q_currentChanged()

void QFileDialogPrivate::_q_currentChanged ( const QModelIndex index)

Definition at line 3722 of file qfiledialog.cpp.

References _q_updateOkButton(), emit, and QFileSystemModel::FilePathRole.

Referenced by createWidgets().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _q_deleteCurrent()

void QFileDialogPrivate::_q_deleteCurrent ( )

Deletes the currently selected item in the dialog.

Definition at line 3543 of file qfiledialog.cpp.

References arg, QList< T >::crbegin(), QList< T >::crend(), QString::data(), QFileSystemModel::fileInfo(), fileName, QFileSystemModel::FileNameRole, QFileSystemModel::FilePathRole, QFileSystemModel::FilePermissions, QFileSystemModel::isDir(), QFileSystemModel::isReadOnly(), QFileInfo::isSymLink(), it, list, mapToSource(), model, QMessageBox::No, qFileDialogUi, QFileSystemModel::remove(), removeDirectory(), QMessageBox::warning(), QFileDevice::WriteUser, and QMessageBox::Yes.

Referenced by createMenuActions(), and createWidgets().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _q_emitUrlSelected()

void QFileDialogPrivate::_q_emitUrlSelected ( const QUrl file)

Definition at line 3900 of file qfiledialog.cpp.

References emit, and file.

Referenced by initHelper().

+ Here is the caller graph for this function:

◆ _q_emitUrlsSelected()

void QFileDialogPrivate::_q_emitUrlsSelected ( const QList< QUrl > &  files)

Definition at line 3908 of file qfiledialog.cpp.

References emit, file, and files.

Referenced by initHelper().

+ Here is the caller graph for this function:

◆ _q_enterDirectory()

void QFileDialogPrivate::_q_enterDirectory ( const QModelIndex index)

This is called when the user double clicks on a file with the corresponding model item index.

Definition at line 3734 of file qfiledialog.cpp.

References QLineEdit::clear(), Qt::CTRL, QModelIndex::data(), QFileDialog::Directory, emit, QFileDialog::ExistingFiles, QFileSystemModel::FilePathRole, QFileSystemModel::isDir(), QGuiApplication::keyboardModifiers(), lineEdit(), mapToSource(), QModelIndex::model(), model, qFileDialogUi, QLineEdit::setText(), QStyle::SH_ItemView_ActivateItemOnSingleClick, and QVariant::toString().

Referenced by _q_goToDirectory(), _q_goToUrl(), and createWidgets().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _q_fileRenamed()

void QFileDialogPrivate::_q_fileRenamed ( const QString path,
const QString oldName,
const QString newName 
)

Definition at line 3891 of file qfiledialog.cpp.

References QFileDialog::Directory, lineEdit(), rootPath(), QLineEdit::setText(), and text.

Referenced by createWidgets().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _q_goHome()

void QFileDialogPrivate::_q_goHome ( )

Definition at line 3302 of file qfiledialog.cpp.

References QDir::homePath().

Referenced by createMenuActions().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _q_goToDirectory()

void QFileDialogPrivate::_q_goToDirectory ( const QString path)

Changes the file dialog's current directory to the one specified by path.

Definition at line 3764 of file qfiledialog.cpp.

References _q_enterDirectory(), QString::data(), dir, getEnvironmentVariable(), QFileSystemModel::index(), QString::isEmpty(), mapFromSource(), model, QFileSystemModel::myComputer(), qFileDialogUi, QVariant::toString(), Qt::UserRole, and QMessageBox::warning().

Referenced by createWidgets().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _q_goToUrl()

void QFileDialogPrivate::_q_goToUrl ( const QUrl url)

set the directory to url

Definition at line 879 of file qfiledialog.cpp.

References _q_enterDirectory(), QFileSystemModel::index(), model, QUrl::toLocalFile(), and url.

Referenced by createWidgets().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _q_nativeCurrentChanged()

void QFileDialogPrivate::_q_nativeCurrentChanged ( const QUrl file)

Definition at line 3920 of file qfiledialog.cpp.

References emit, and file.

Referenced by initHelper().

+ Here is the caller graph for this function:

◆ _q_nativeEnterDirectory()

void QFileDialogPrivate::_q_nativeEnterDirectory ( const QUrl directory)

Definition at line 3928 of file qfiledialog.cpp.

References directory, emit, and QString::isEmpty().

Referenced by initHelper().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _q_navigateBackward()

void QFileDialogPrivate::_q_navigateBackward ( )

Navigates to the last directory viewed in the dialog.

Definition at line 3382 of file qfiledialog.cpp.

References currentHistory, currentHistoryLocation, navigate(), and saveHistorySelection().

Referenced by createToolButtons(), and itemViewKeyboardEvent().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _q_navigateForward()

void QFileDialogPrivate::_q_navigateForward ( )

Navigates to the last directory viewed in the dialog.

Definition at line 3395 of file qfiledialog.cpp.

References currentHistory, currentHistoryLocation, navigate(), and saveHistorySelection().

Referenced by createToolButtons().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _q_navigateToParent()

void QFileDialogPrivate::_q_navigateToParent ( )

Navigates to the parent directory of the currently displayed directory in the dialog.

Definition at line 3409 of file qfiledialog.cpp.

References dir, emit, model, QFileSystemModel::myComputer(), QFileSystemModel::rootDirectory(), and QVariant::toString().

Referenced by createMenuActions(), createToolButtons(), and itemViewKeyboardEvent().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _q_pathChanged()

void QFileDialogPrivate::_q_pathChanged ( const QString newPath)

Update history with new path, buttons, and combo

Definition at line 3325 of file qfiledialog.cpp.

References currentHistory, currentHistoryLocation, QFileInfo::exists(), QUrl::fromLocalFile(), model, qFileDialogUi, QFileSystemModel::rootPath(), saveHistorySelection(), and QDir::toNativeSeparators().

Referenced by createWidgets().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _q_renameCurrent()

void QFileDialogPrivate::_q_renameCurrent ( )

Definition at line 3521 of file qfiledialog.cpp.

References QFileDialog::List, and qFileDialogUi.

Referenced by createMenuActions().

+ Here is the caller graph for this function:

◆ _q_rowsInserted()

void QFileDialogPrivate::_q_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 3881 of file qfiledialog.cpp.

References QObjectData::parent, and qFileDialogUi.

Referenced by createWidgets().

+ Here is the caller graph for this function:

◆ _q_selectionChanged()

void QFileDialogPrivate::_q_selectionChanged ( )

This is called when the model index corresponding to the current file is changed from index to current.

Definition at line 3838 of file qfiledialog.cpp.

References _q_updateOkButton(), QFileDialog::Directory, QWidget::hasFocus(), i, QFileSystemModel::isDir(), QString::isEmpty(), QWidget::isVisible(), lineEdit(), mapToSource(), model, qFileDialogUi, and QLineEdit::setText().

Referenced by createWidgets().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _q_showContextMenu()

void QFileDialogPrivate::_q_showContextMenu ( const QPoint position)

Show the context menu for the file/dir under position

Definition at line 3481 of file qfiledialog.cpp.

References QMenu::addAction(), QMenu::addSeparator(), deleteAction, QFileDialog::Detail, QFileSystemModel::FilePermissions, QFileSystemModel::isReadOnly(), mapToSource(), menu, model, newFolderAction, QMenu::popup(), position(), Q_UNUSED, qFileDialogUi, renameAction, QWidget::setAttribute(), QAction::setEnabled(), showHiddenAction, view, Qt::WA_DeleteOnClose, and QFileDevice::WriteUser.

Referenced by createWidgets().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _q_showDetailsView()

void QFileDialogPrivate::_q_showDetailsView ( )

Definition at line 3466 of file qfiledialog.cpp.

References qFileDialogUi.

Referenced by createToolButtons().

+ Here is the caller graph for this function:

◆ _q_showHeader()

void QFileDialogPrivate::_q_showHeader ( QAction action)

Definition at line 3122 of file qfiledialog.cpp.

References QActionGroup::actions(), QListSpecialMethodsBase< T >::indexOf(), QAction::isChecked(), and qFileDialogUi.

Referenced by createWidgets().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _q_showHidden()

void QFileDialogPrivate::_q_showHidden ( )

Includes hidden files and directories in the items displayed in the dialog.

Definition at line 3867 of file qfiledialog.cpp.

References QDir::Hidden, QAction::isChecked(), and showHiddenAction.

Referenced by createMenuActions().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _q_showListView()

void QFileDialogPrivate::_q_showListView ( )

Definition at line 3456 of file qfiledialog.cpp.

References qFileDialogUi.

Referenced by createToolButtons().

+ Here is the caller graph for this function:

◆ _q_updateOkButton()

void QFileDialogPrivate::_q_updateOkButton ( )

Definition at line 3626 of file qfiledialog.cpp.

References QFileDialog::AcceptOpen, QFileDialog::AnyFile, button, QFileInfo::canonicalFilePath(), QString::contains(), QFileDialog::Directory, QFileDialog::ExistingFile, QFileDialog::ExistingFiles, file, QFileInfo::fileName(), fileName, files, getEnvironmentVariable(), QFileSystemModel::index(), info, QFileInfo::isDir(), QFileSystemModel::isDir(), QModelIndex::isValid(), QString::lastIndexOf(), lineEdit(), maxNameLength(), QString::mid(), model, QDialogButtonBox::Open, qFileDialogUi, QDialogButtonBox::Save, QWidget::setEnabled(), QString::size(), QString::startsWith(), QLineEdit::text, and updateOkButtonText().

Referenced by _q_currentChanged(), _q_selectionChanged(), and createWidgets().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _q_useNameFilter()

void QFileDialogPrivate::_q_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 3802 of file qfiledialog.cpp.

References QFileDialog::AcceptSave, QPlatformFileDialogHelper::cleanFilterList(), QModelIndex::data(), fileName, QAbstractItemModel::index(), QString::isEmpty(), lineEdit(), model, QFileDialogOptions::nameFilters(), options, qFileDialogUi, QAbstractItemModel::rowCount(), QFileSystemModel::setNameFilters(), QFileDialogOptions::setNameFilters(), QLineEdit::setText(), QString::size(), QFileInfo::suffix(), QLineEdit::text, and QVariant::toString().

Referenced by createWidgets().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ addDefaultSuffixToFiles()

QStringList QFileDialogPrivate::addDefaultSuffixToFiles ( const QStringList filesToFix) const

Definition at line 1227 of file qfiledialog.cpp.

References QString::contains(), QFileDialogOptions::defaultSuffix(), QFileInfo::fileName(), files, i, info, QFileInfo::isAbsolute(), QFileInfo::isDir(), QString::isEmpty(), options, rootPath(), and toInternal().

Referenced by typedFiles().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ addDefaultSuffixToUrls()

QList< QUrl > QFileDialogPrivate::addDefaultSuffixToUrls ( const QList< QUrl > &  urlsToFix) const

Definition at line 1254 of file qfiledialog.cpp.

References QList< T >::append(), QString::contains(), QFileDialogOptions::defaultSuffix(), QString::isEmpty(), QString::lastIndexOf(), QString::mid(), options, QUrl::path(), QList< T >::reserve(), QUrl::setPath(), QString::size(), QList< T >::size(), and url.

Referenced by userSelectedFiles().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ basename()

QString QFileDialogPrivate::basename ( const QString path) const
inline

Definition at line 125 of file qfiledialog_p.h.

References QString::lastIndexOf(), QDir::separator(), and QDir::toNativeSeparators().

+ Here is the call graph for this function:

◆ canBeNativeDialog()

bool QFileDialogPrivate::canBeNativeDialog ( ) const
overridevirtual

Reimplemented from QDialogPrivate.

Definition at line 678 of file qfiledialog.cpp.

References Qt::AA_DontUseNativeDialogs, className, QFileDialog::DontUseNativeDialog, QDialogPrivate::nativeDialogInUse, QFileDialogOptions::options(), options, QObjectData::q_ptr, QCoreApplication::testAttribute(), and Qt::WA_DontShowOnScreen.

+ Here is the call graph for this function:

◆ createMenuActions()

void QFileDialogPrivate::createMenuActions ( )

Create actions which will be used in the right click.

Definition at line 3261 of file qfiledialog.cpp.

References _q_createDirectory(), _q_deleteCurrent(), _q_goHome(), _q_navigateToParent(), _q_renameCurrent(), _q_showHidden(), QObject::connect(), Qt::CTRL, deleteAction, Qt::Key_H, Qt::Key_Up, newFolderAction, renameAction, QAction::setCheckable(), QAction::setEnabled(), QObject::setObjectName(), Qt::SHIFT, showHiddenAction, SIGNAL, and SLOT.

Referenced by createWidgets().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ createToolButtons()

void QFileDialogPrivate::createToolButtons ( )

Create tool buttons, set properties and connections

Definition at line 3215 of file qfiledialog.cpp.

References _q_createDirectory(), _q_navigateBackward(), _q_navigateForward(), _q_navigateToParent(), _q_showDetailsView(), _q_showListView(), QObject::connect(), qFileDialogUi, SIGNAL, SLOT, QStyle::SP_ArrowBack, QStyle::SP_ArrowForward, QStyle::SP_FileDialogDetailedView, QStyle::SP_FileDialogListView, QStyle::SP_FileDialogNewFolder, and QStyle::SP_FileDialogToParent.

Referenced by createWidgets().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ createWidgets()

void QFileDialogPrivate::createWidgets ( )

Create the widgets, set properties and connections

Definition at line 2947 of file qfiledialog.cpp.

References _q_autoCompleteFileName(), _q_currentChanged(), _q_deleteCurrent(), _q_enterDirectory(), _q_fileRenamed(), _q_goToDirectory(), _q_goToUrl(), _q_pathChanged(), _q_rowsInserted(), _q_selectionChanged(), _q_showContextMenu(), _q_showHeader(), _q_updateOkButton(), _q_useNameFilter(), QFileDialogOptions::acceptMode(), Qt::ActionsContextMenu, QComboBox::AdjustToContentsOnFirstShow, QAbstractItemModel::columnCount(), completer, QObject::connect(), createMenuActions(), createToolButtons(), defaultIconProvider, QFileDialogOptions::defaultSuffix(), QKeySequence::Delete, QSizePolicy::Expanding, QFileDialogOptions::fileMode(), QFileDialogOptions::filter(), QSizePolicy::Fixed, QUrl::fromLocalFile(), QFileDialogOptions::history(), QDir::homePath(), QFontMetrics::horizontalAdvance(), i, Qt::ImhNoPredictiveText, QFileDialogOptions::initialDirectory(), QFileDialogOptions::initiallySelectedFiles(), QFileDialogOptions::initiallySelectedNameFilter(), QList< T >::isEmpty(), QSize::isValid(), lineEdit(), QFileDialogOptions::mimeTypeFilters(), model, QFileDialogOptions::nameFilters(), QComboBox::NoInsert, QFileDialogOptions::options(), options, platformFileDialogHelper(), qFileDialogUi, QScopedPointer< T, Cleanup >::reset(), QHeaderView::resizeSection(), retranslateStrings(), QLineEdit::selectAll(), QAction::setCheckable(), QAction::setChecked(), QActionGroup::setExclusive(), QFileSystemModel::setFilter(), QFileSystemModel::setIconProvider(), QFileSystemModel::setNameFilterDisables(), QObject::setObjectName(), QFileSystemModel::setReadOnly(), settings, shortcut, QFileDialogOptions::sidebarUrls(), SIGNAL, SLOT, textChanged(), QVariant::toByteArray(), url, QSettings::UserScope, QSettings::value(), QFileDialogOptions::viewMode(), and Qt::WA_Resized.

Referenced by init().

+ Here is the caller graph for this function:

◆ currentView()

QAbstractItemView * QFileDialogPrivate::currentView ( ) const

Definition at line 1775 of file qfiledialog.cpp.

References qFileDialogUi.

Referenced by _q_createDirectory().

+ Here is the caller graph for this function:

◆ directory_sys()

QUrl QFileDialogPrivate::directory_sys ( ) const
inline

Definition at line 349 of file qfiledialog_p.h.

References platformFileDialogHelper().

+ Here is the call graph for this function:

◆ emitFilesSelected()

void QFileDialogPrivate::emitFilesSelected ( const QStringList files)

Definition at line 670 of file qfiledialog.cpp.

References emit, and files.

◆ filterForMode()

QDir::Filters QFileDialogPrivate::filterForMode ( QDir::Filters  filters) const
inline

◆ getEnvironmentVariable()

QString QFileDialogPrivate::getEnvironmentVariable ( const QString string)

Definition at line 3976 of file qfiledialog.cpp.

References QString::fromLocal8Bit(), QStringView::mid(), qgetenv(), and QDialogPrivate::size.

Referenced by _q_goToDirectory(), and _q_updateOkButton().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ helperDone()

void QFileDialogPrivate::helperDone ( QDialog::DialogCode  code,
QPlatformDialogHelper  
)
overrideprivatevirtual

Reimplemented from QDialogPrivate.

Definition at line 548 of file qfiledialog.cpp.

References QDialog::Accepted, QFileDialogOptions::history(), options, QFileDialogOptions::sidebarUrls(), and QFileDialogOptions::viewMode().

+ Here is the call graph for this function:

◆ helperPrepareShow()

void QFileDialogPrivate::helperPrepareShow ( QPlatformDialogHelper )
overrideprivatevirtual

◆ init()

void QFileDialogPrivate::init ( const QFileDialogArgs args)

Create widgets, layout and set default values

Definition at line 2895 of file qfiledialog.cpp.

References QFileDialog::AcceptOpen, QFileDialog::AnyFile, args, QList< T >::clear(), createWidgets(), QList< T >::isEmpty(), QSize::isValid(), QDialogPrivate::nativeDialogInUse, platformFileDialogHelper(), qFileDialogUi, settings, setWindowTitle, QVariant::toByteArray(), useDefaultCaption, QSettings::UserScope, and QSettings::value().

+ Here is the call graph for this function:

◆ initHelper()

void QFileDialogPrivate::initHelper ( QPlatformDialogHelper h)
overrideprivatevirtual

Reimplemented from QDialogPrivate.

Definition at line 524 of file qfiledialog.cpp.

References _q_emitUrlSelected(), _q_emitUrlsSelected(), _q_nativeCurrentChanged(), _q_nativeEnterDirectory(), QObject::connect(), d, options, SIGNAL, and SLOT.

+ Here is the call graph for this function:

◆ itemViewKeyboardEvent()

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 3946 of file qfiledialog.cpp.

References _q_navigateBackward(), _q_navigateToParent(), Qt::AltModifier, QKeySequence::Cancel, Qt::Key_Back, Qt::Key_Backspace, and Qt::Key_Left.

Referenced by QFileDialogListView::keyPressEvent(), and QFileDialogTreeView::keyPressEvent().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ lineEdit()

QLineEdit * QFileDialogPrivate::lineEdit ( ) const

Definition at line 1783 of file qfiledialog.cpp.

References qFileDialogUi.

Referenced by _q_autoCompleteFileName(), _q_enterDirectory(), _q_fileRenamed(), _q_selectionChanged(), _q_updateOkButton(), _q_useNameFilter(), createWidgets(), typedFiles(), and userSelectedFiles().

+ Here is the caller graph for this function:

◆ mapFromSource()

QModelIndex QFileDialogPrivate::mapFromSource ( const QModelIndex index) const
inline

Definition at line 325 of file qfiledialog_p.h.

Referenced by _q_goToDirectory(), select(), and setRootIndex().

+ Here is the caller graph for this function:

◆ mapToSource()

QModelIndex QFileDialogPrivate::mapToSource ( const QModelIndex index) const
inline

Definition at line 318 of file qfiledialog_p.h.

Referenced by _q_deleteCurrent(), _q_enterDirectory(), _q_selectionChanged(), _q_showContextMenu(), and rootIndex().

+ Here is the caller graph for this function:

◆ maxNameLength()

long QFileDialogPrivate::maxNameLength ( const QString path)
static

Definition at line 1787 of file qfiledialog.cpp.

References QWidgetPrivate::data, QFile::encodeName(), QString::left(), Q_UNUSED, and QString::utf16().

Referenced by _q_updateOkButton().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ navigate()

void QFileDialogPrivate::navigate ( HistoryItem historyItem)

Definition at line 3348 of file qfiledialog.cpp.

References QList< T >::cbegin(), QList< T >::cend(), QItemSelectionModel::Clear, QList< T >::clear(), QList< T >::constFirst(), QItemSelectionModel::Current, i, QList< T >::isEmpty(), QScopedPointer< T, Cleanup >::isNull(), it, QFileDialog::List, QFileDialogPrivate::HistoryItem::path, qFileDialogUi, QItemSelectionModel::Rows, QItemSelectionModel::Select, QFileDialogPrivate::HistoryItem::selection, and view.

Referenced by _q_navigateBackward(), and _q_navigateForward().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ platformFileDialogHelper()

QPlatformFileDialogHelper * QFileDialogPrivate::platformFileDialogHelper ( ) const
inline

Definition at line 92 of file qfiledialog_p.h.

References QDialogPrivate::platformHelper().

Referenced by createWidgets(), directory_sys(), init(), selectedFiles_sys(), selectedMimeTypeFilter_sys(), selectedNameFilter_sys(), selectFile_sys(), selectMimeTypeFilter_sys(), selectNameFilter_sys(), setDirectory_sys(), and setFilter_sys().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ removeDirectory()

bool QFileDialogPrivate::removeDirectory ( const QString path)

Definition at line 3532 of file qfiledialog.cpp.

References QFileSystemModel::index(), model, and QFileSystemModel::remove().

Referenced by _q_deleteCurrent().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ restoreWidgetState()

bool QFileDialogPrivate::restoreWidgetState ( QStringList history,
int  splitterPosition 
)

Definition at line 2847 of file qfiledialog.cpp.

References QWidgetPrivate::actions, QList< T >::append(), QList< T >::at(), QAbstractItemModel::columnCount(), headerData, i, QHeaderView::isSectionHidden(), list, model, qFileDialogUi, qMin(), QHeaderView::restoreState(), QAction::setChecked(), sidebarUrls, QList< T >::size(), and splitterState.

+ Here is the call graph for this function:

◆ retranslateStrings()

void QFileDialogPrivate::retranslateStrings ( )

Definition at line 638 of file qfiledialog.cpp.

References QWidgetPrivate::actions, QList< T >::at(), QAbstractItemModel::columnCount(), QFileDialogOptions::defaultNameFilterString(), deleteAction, Qt::DisplayRole, QAbstractItemModel::headerData(), Qt::Horizontal, i, model, newFolderAction, options, qFileDialogUi, qMin(), renameAction, QAction::setText(), showHiddenAction, QList< T >::size(), QVariant::toString(), updateCancelButtonText(), updateFileNameLabel(), updateFileTypeLabel(), updateLookInLabel(), QFileDialogOptions::useDefaultNameFilters(), and usingWidgets().

Referenced by createWidgets().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ retranslateWindowTitle()

void QFileDialogPrivate::retranslateWindowTitle ( )

◆ rootIndex()

QModelIndex QFileDialogPrivate::rootIndex ( ) const
inline

Definition at line 1771 of file qfiledialog.cpp.

References mapToSource(), and qFileDialogUi.

Referenced by _q_createDirectory().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ rootPath()

QString QFileDialogPrivate::rootPath ( ) const
inline

Definition at line 333 of file qfiledialog_p.h.

References model, QStringLiteral, and QFileSystemModel::rootPath().

Referenced by _q_fileRenamed(), addDefaultSuffixToFiles(), QFileDialogComboBox::setHistory(), and QFileDialogComboBox::showPopup().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ saveHistorySelection()

void QFileDialogPrivate::saveHistorySelection ( )

Definition at line 3309 of file qfiledialog.cpp.

References currentHistory, currentHistoryLocation, QScopedPointer< T, Cleanup >::isNull(), item, and qFileDialogUi.

Referenced by _q_navigateBackward(), _q_navigateForward(), and _q_pathChanged().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ select()

QModelIndex QFileDialogPrivate::select ( const QModelIndex index) const
inline

Definition at line 1816 of file qfiledialog.cpp.

References mapFromSource(), model, Q_ASSERT, qFileDialogUi, QItemSelectionModel::Rows, and QItemSelectionModel::Select.

Referenced by _q_autoCompleteFileName(), and _q_createDirectory().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ selectedFiles_sys()

QList< QUrl > QFileDialogPrivate::selectedFiles_sys ( ) const
inline

Definition at line 367 of file qfiledialog_p.h.

References platformFileDialogHelper().

Referenced by userSelectedFiles().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ selectedMimeTypeFilter_sys()

QString QFileDialogPrivate::selectedMimeTypeFilter_sys ( ) const
inline

Definition at line 386 of file qfiledialog_p.h.

References platformFileDialogHelper().

+ Here is the call graph for this function:

◆ selectedNameFilter_sys()

QString QFileDialogPrivate::selectedNameFilter_sys ( ) const
inline

Definition at line 400 of file qfiledialog_p.h.

References platformFileDialogHelper().

+ Here is the call graph for this function:

◆ selectFile_sys()

void QFileDialogPrivate::selectFile_sys ( const QUrl filename)
inline

Definition at line 356 of file qfiledialog_p.h.

References QPlatformFileDialogHelper::isSupportedUrl(), platformFileDialogHelper(), and QPlatformFileDialogHelper::selectFile().

+ Here is the call graph for this function:

◆ selectMimeTypeFilter_sys()

void QFileDialogPrivate::selectMimeTypeFilter_sys ( const QString filter)
inline

Definition at line 380 of file qfiledialog_p.h.

References platformFileDialogHelper().

+ Here is the call graph for this function:

◆ selectNameFilter_sys()

void QFileDialogPrivate::selectNameFilter_sys ( const QString filter)
inline

Definition at line 394 of file qfiledialog_p.h.

References platformFileDialogHelper().

+ Here is the call graph for this function:

◆ setDirectory_sys()

void QFileDialogPrivate::setDirectory_sys ( const QUrl directory)
inline

Definition at line 338 of file qfiledialog_p.h.

References directory, QPlatformFileDialogHelper::isSupportedUrl(), platformFileDialogHelper(), and QPlatformFileDialogHelper::setDirectory().

+ Here is the call graph for this function:

◆ setFilter_sys()

void QFileDialogPrivate::setFilter_sys ( )
inline

Definition at line 374 of file qfiledialog_p.h.

References platformFileDialogHelper().

+ Here is the call graph for this function:

◆ setLabelTextControl()

void QFileDialogPrivate::setLabelTextControl ( QFileDialog::DialogLabel  label,
const QString text 
)

Definition at line 1959 of file qfiledialog.cpp.

References QFileDialog::Accept, QFileDialog::AcceptOpen, button, QDialogButtonBox::Cancel, QFileDialog::FileName, QFileDialog::FileType, QFileDialog::LookIn, QDialogButtonBox::Open, qFileDialogUi, QFileDialog::Reject, QDialogButtonBox::Save, QAbstractButton::setText(), and text.

Referenced by updateCancelButtonText(), updateFileNameLabel(), updateFileTypeLabel(), updateLookInLabel(), and updateOkButtonText().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setLastVisitedDirectory()

void QFileDialogPrivate::setLastVisitedDirectory ( const QUrl dir)
static

Definition at line 575 of file qfiledialog.cpp.

References dir.

Referenced by QFileDialog::setDirectory(), and QFileDialog::setDirectoryUrl().

+ Here is the caller graph for this function:

◆ setRootIndex()

void QFileDialogPrivate::setRootIndex ( const QModelIndex index) const
inline

Definition at line 1806 of file qfiledialog.cpp.

References mapFromSource(), model, Q_ASSERT, and qFileDialogUi.

+ Here is the call graph for this function:

◆ toInternal()

static QString QFileDialogPrivate::toInternal ( const QString path)
inlinestatic

Definition at line 143 of file qfiledialog_p.h.

Referenced by addDefaultSuffixToFiles(), and typedFiles().

+ Here is the caller graph for this function:

◆ typedFiles()

QStringList QFileDialogPrivate::typedFiles ( ) const

Returns the text in the line edit which can be one or more file names

Definition at line 1164 of file qfiledialog.cpp.

References addDefaultSuffixToFiles(), QString::contains(), QFile::exists(), files, i, lineEdit(), Q_UNUSED, QDir::separator(), QString::split(), QLineEdit::text, toInternal(), and token.

Referenced by _q_autoCompleteFileName(), and userSelectedFiles().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ updateCancelButtonText()

void QFileDialogPrivate::updateCancelButtonText ( )

Definition at line 632 of file qfiledialog.cpp.

References QFileDialogOptions::isLabelExplicitlySet(), QFileDialogOptions::labelText(), options, QFileDialogOptions::Reject, QFileDialog::Reject, and setLabelTextControl().

Referenced by retranslateStrings().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ updateFileNameLabel()

void QFileDialogPrivate::updateFileNameLabel ( )
inline

Definition at line 586 of file qfiledialog.cpp.

References QFileDialog::Directory, QFileDialogOptions::FileName, QFileDialog::FileName, QFileDialogOptions::isLabelExplicitlySet(), QFileDialogOptions::labelText(), options, and setLabelTextControl().

Referenced by retranslateStrings().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ updateFileTypeLabel()

void QFileDialogPrivate::updateFileTypeLabel ( )
inline

Definition at line 602 of file qfiledialog.cpp.

References QFileDialogOptions::FileType, QFileDialog::FileType, QFileDialogOptions::isLabelExplicitlySet(), QFileDialogOptions::labelText(), options, and setLabelTextControl().

Referenced by retranslateStrings().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ updateLookInLabel()

void QFileDialogPrivate::updateLookInLabel ( )
inline

Definition at line 580 of file qfiledialog.cpp.

References QFileDialogOptions::isLabelExplicitlySet(), QFileDialogOptions::labelText(), QFileDialogOptions::LookIn, QFileDialog::LookIn, options, and setLabelTextControl().

Referenced by retranslateStrings().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ updateOkButtonText()

void QFileDialogPrivate::updateOkButtonText ( bool  saveAsOnFolder = false)

Definition at line 608 of file qfiledialog.cpp.

References QFileDialogOptions::Accept, QFileDialog::Accept, QFileDialog::AcceptOpen, QFileDialog::Directory, QFileDialogOptions::isLabelExplicitlySet(), QFileDialogOptions::labelText(), options, and setLabelTextControl().

Referenced by _q_updateOkButton().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ userSelectedFiles()

QList< QUrl > QFileDialogPrivate::userSelectedFiles ( ) const

Definition at line 1205 of file qfiledialog.cpp.

References addDefaultSuffixToUrls(), QFileSystemModel::FilePathRole, files, QUrl::fromLocalFile(), QString::isEmpty(), lineEdit(), qFileDialogUi, selectedFiles_sys(), QList< T >::size(), QLineEdit::text, typedFiles(), and usingWidgets().

Referenced by helperPrepareShow().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ usingWidgets()

bool QFileDialogPrivate::usingWidgets ( ) const
inline

Definition at line 694 of file qfiledialog.cpp.

References QDialogPrivate::nativeDialogInUse, and qFileDialogUi.

Referenced by helperPrepareShow(), retranslateStrings(), and userSelectedFiles().

+ Here is the caller graph for this function:

Member Data Documentation

◆ acceptLabel

QString QFileDialogPrivate::acceptLabel

Definition at line 239 of file qfiledialog_p.h.

◆ currentHistory

QList<HistoryItem> QFileDialogPrivate::currentHistory

◆ currentHistoryLocation

int QFileDialogPrivate::currentHistoryLocation

◆ defaultIconProvider

QFileIconProvider QFileDialogPrivate::defaultIconProvider

Definition at line 251 of file qfiledialog_p.h.

Referenced by createWidgets().

◆ deleteAction

QAction* QFileDialogPrivate::deleteAction

Definition at line 214 of file qfiledialog_p.h.

Referenced by _q_showContextMenu(), createMenuActions(), and retranslateStrings().

◆ headerData

QByteArray QFileDialogPrivate::headerData

Definition at line 249 of file qfiledialog_p.h.

Referenced by restoreWidgetState().

◆ memberToDisconnectOnClose

QByteArray QFileDialogPrivate::memberToDisconnectOnClose

Definition at line 242 of file qfiledialog_p.h.

◆ model

◆ newFolderAction

QAction* QFileDialogPrivate::newFolderAction

Definition at line 216 of file qfiledialog_p.h.

Referenced by _q_showContextMenu(), createMenuActions(), and retranslateStrings().

◆ options

◆ qFileDialogUi

◆ receiverToDisconnectOnClose

QPointer<QObject> QFileDialogPrivate::receiverToDisconnectOnClose

Definition at line 241 of file qfiledialog_p.h.

◆ renameAction

QAction* QFileDialogPrivate::renameAction

Definition at line 213 of file qfiledialog_p.h.

Referenced by _q_showContextMenu(), createMenuActions(), and retranslateStrings().

◆ setWindowTitle

QString QFileDialogPrivate::setWindowTitle

Definition at line 208 of file qfiledialog_p.h.

Referenced by init(), and retranslateWindowTitle().

◆ showHiddenAction

QAction* QFileDialogPrivate::showHiddenAction

◆ sidebarUrls

QList<QUrl> QFileDialogPrivate::sidebarUrls

Definition at line 250 of file qfiledialog_p.h.

Referenced by restoreWidgetState().

◆ signalToDisconnectOnClose

QByteArray QFileDialogPrivate::signalToDisconnectOnClose

Definition at line 243 of file qfiledialog_p.h.

◆ splitterState

QByteArray QFileDialogPrivate::splitterState

Definition at line 248 of file qfiledialog_p.h.

Referenced by restoreWidgetState().

◆ useDefaultCaption

bool QFileDialogPrivate::useDefaultCaption

Definition at line 218 of file qfiledialog_p.h.

Referenced by init(), and retranslateWindowTitle().

◆ watching

QStringList QFileDialogPrivate::watching

Definition at line 201 of file qfiledialog_p.h.


The documentation for this class was generated from the following files: