Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
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 }
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>

Public Member Functions

 QFileDialogPrivate ()
QPlatformFileDialogHelper * platformFileDialogHelper () 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< QUrl > userSelectedFiles () const
QStringList addDefaultSuffixToFiles (const QStringList &filesToFix) const
QList< QUrl > addDefaultSuffixToUrls (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
QLineEdit * lineEdit () const
QString basename (const QString &path) const
QDir::Filters filterForMode (QDir::Filters filters) const
QAbstractItemView * currentView () const
bool restoreWidgetState (QStringList &history, int splitterPosition)
void retranslateWindowTitle ()
void retranslateStrings ()
void emitFilesSelected (const QStringList &files)
void saveHistorySelection ()
void goHome ()
void pathChanged (const QString &)
void navigate (HistoryItem &)
void navigateBackward ()
void navigateForward ()
void navigateToParent ()
void createDirectory ()
void showListView ()
void showDetailsView ()
void showContextMenu (const QPoint &position)
void renameCurrent ()
void deleteCurrent ()
void showHidden ()
void showHeader (QAction *)
void updateOkButton ()
void currentChanged (const QModelIndex &index)
void enterDirectory (const QModelIndex &index)
void emitUrlSelected (const QUrl &file)
void emitUrlsSelected (const QList< QUrl > &files)
void nativeCurrentChanged (const QUrl &file)
void nativeEnterDirectory (const QUrl &directory)
void goToDirectory (const QString &)
void useNameFilter (int index)
void selectionChanged ()
void goToUrl (const QUrl &url)
void autoCompleteFileName (const QString &)
void rowsInserted (const QModelIndex &parent)
void fileRenamed (const QString &path, const QString &oldName, const QString &newName)
bool canBeNativeDialog () const override
void setVisible (bool visible) override
bool usingWidgets () const
void setDirectory_sys (const QUrl &directory)
QUrl directory_sys () const
void selectFile_sys (const QUrl &filename)
QList< QUrl > selectedFiles_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 ()
QWindow * transientParentWindow () const
bool setNativeDialogVisible (bool visible)
QVariant styleHint (QPlatformDialogHelper::StyleHint hint) const
void resetModalitySetByOpen ()
QPlatformDialogHelper * platformHelper () const
void close (int resultCode)
void recreate () override
Public Member Functions inherited from QWidgetPrivate
 QWidgetPrivate (decltype(QObjectPrivateVersion)=QObjectPrivateVersion)
 ~QWidgetPrivate ()
QWExtra * extraData () const
QTLWExtra * topData () const
QTLWExtra * maybeTopData () const
QPainter * sharedPainter () const
void setSharedPainter (QPainter *painter)
QWidgetRepaintManager * maybeRepaintManager () const
QRhi * rhi () const
QWindow * windowHandle (WindowHandleMode mode=WindowHandleMode::Direct) const
QWindow * _q_closestWindowHandle () const
QScreen * associatedScreen () 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 *)
QWidget * deepestFocusProxy () 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 QRegion & getOpaqueChildren () 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 reparentWidgetWindows (QWidget *parentWithWindow, Qt::WindowFlags windowFlags={})
void reparentWidgetWindowChildren (QWidget *parentWithWindow)
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 ()
bool isExplicitlyHidden () const
void _q_showIfNotHidden ()
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 QPointF &) const
QWidget * childAt_helper (const QPointF &, bool) const
QWidget * childAtRecursiveHelper (const QPointF &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 ()
QWidget * effectiveFocusWidget ()
void setModal_sys ()
void setRedirected (QPaintDevice *replacement, const QPoint &offset)
QPaintDevice * redirected (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 QObject * focusObject ()
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
QWidget * closestParentWidgetWithWindowHandle () const
QWidget * nextPrevElementInFocusChain (FocusDirection direction) const
bool removeFromFocusChain (FocusChainRemovalRules rules=FocusChainRemovalRules(), FocusDirection direction=FocusDirection::Next)
bool insertIntoFocusChain (FocusDirection direction, QWidget *position)
bool insertIntoFocusChainBefore (QWidget *position)
bool insertIntoFocusChainAfter (QWidget *position)
void reparentFocusChildren (FocusDirection direction)
QWidget * determineLastFocusChild (QWidget *noFurtherThan)
void initFocusChain ()
bool isInFocusChain () const
bool isFocusChainConsistent () const
void setNetWmWindowTypes (bool skipIfMissing=false)
bool stealKeyboardGrab (bool grab)
bool stealMouseGrab (bool grab)
bool hasChildWithFocusPolicy (Qt::FocusPolicy policy, const QWidget *excludeChildrenOf=nullptr) const
Public Member Functions inherited from QObjectPrivate
void ensureExtraData ()
void setObjectNameWithoutBindings (const QString &name)
 QObjectPrivate (decltype(QObjectPrivateVersion) version=QObjectPrivateVersion)
virtual ~QObjectPrivate ()
void deleteChildren ()
void clearBindingStorage ()
void setParent_helper (QObject *)
void moveToThread_helper ()
void setThreadData_helper (QThreadData *currentData, QThreadData *targetData, QBindingStatus *status)
QObjectList receiverList (const char *signal) 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 void writeToDebugStream (QDebug &) const
QtPrivate::QPropertyAdaptorSlotObject * getPropertyAdaptorSlotObject (const QMetaProperty &property)
Public Member Functions inherited from QObjectData
 QObjectData ()=default
virtual ~QObjectData ()=0
const QMetaObject * dynamicMetaObject () 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 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)

Public Attributes

QStringList watching
QFileSystemModel * model
QString setWindowTitle
QList< HistoryItem > currentHistory
int currentHistoryLocation
QAction * renameAction
QAction * deleteAction
QAction * showHiddenAction
QAction * newFolderAction
bool useDefaultCaption
std::unique_ptr< Ui_QFileDialog > qFileDialogUi
QString acceptLabel
QPointer< QObject > receiverToDisconnectOnClose
QByteArray memberToDisconnectOnClose
QByteArray signalToDisconnectOnClose
QSharedPointer< QFileDialogOptions > options
QByteArray splitterState
QByteArray headerData
QList< QUrl > sidebarUrls
QFileIconProvider defaultIconProvider
Public Attributes inherited from QDialogPrivate
Qt::Orientation orientation
QWidget * extension
bool doShowExtension
QSize size
QSize min
QSize max
QPoint lastRMBPress
int rescode
int resetModalityTo
bool wasModalitySet
QPointer< QEventLoop > eventLoop
bool nativeDialogInUse
Public Attributes inherited from QWidgetPrivate
std::unique_ptr< QWExtra > extra
QWidget * focus_next
QWidget * focus_prev
QWidget * focus_child
QLayout * layout
QRegion * needsFlush
QPaintDevice * redirectDev
QWidgetItemV2 * widgetItem
QPaintEngine * extraPaintEngine
const QMetaObject * polished
QGraphicsEffect * graphicsEffect
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
uint dontSetExplicitShowHide: 1
uint inheritStyleRecursionGuard: 1
Public Attributes inherited from QObjectPrivate
ExtraData * extraData
QAtomicPointer< QThreadData > threadData
QAtomicPointer< ConnectionData > connections
union { 
   QObject *   currentChildBeingDeleted 
   QAbstractDeclarativeData *   declarativeData 
}; 
QAtomicPointer< QtSharedPointer::ExternalRefCountData > sharedRefcount
Public Attributes inherited from QObjectData
QObject * q_ptr
QObject * parent
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 receiveParentEvents: 1
uint unused: 20
QAtomicInt postedEvents
QDynamicMetaObjectData * metaObject
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 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

Detailed Description

Definition at line 79 of file qfiledialog_p.h.

Member Typedef Documentation

◆ PersistentModelIndexList

Constructor & Destructor Documentation

◆ QFileDialogPrivate()

QFileDialogPrivate::QFileDialogPrivate ( )

Definition at line 543 of file qfiledialog.cpp.

◆ ~QFileDialogPrivate()

QFileDialogPrivate::~QFileDialogPrivate ( )

Definition at line 559 of file qfiledialog.cpp.

Member Function Documentation

◆ addDefaultSuffixToFiles()

QStringList QFileDialogPrivate::addDefaultSuffixToFiles ( const QStringList & filesToFix) const

Definition at line 1275 of file qfiledialog.cpp.

◆ addDefaultSuffixToUrls()

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

Definition at line 1302 of file qfiledialog.cpp.

◆ autoCompleteFileName()

void QFileDialogPrivate::autoCompleteFileName ( const QString & text)

Definition at line 3652 of file qfiledialog.cpp.

◆ basename()

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

Definition at line 127 of file qfiledialog_p.h.

◆ canBeNativeDialog()

bool QFileDialogPrivate::canBeNativeDialog ( ) const
overridevirtual

Reimplemented from QDialogPrivate.

Definition at line 723 of file qfiledialog.cpp.

◆ createDirectory()

void QFileDialogPrivate::createDirectory ( )

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

Definition at line 3484 of file qfiledialog.cpp.

◆ createMenuActions()

void QFileDialogPrivate::createMenuActions ( )

Create actions which will be used in the right click.

Definition at line 3310 of file qfiledialog.cpp.

◆ createToolButtons()

void QFileDialogPrivate::createToolButtons ( )

Create tool buttons, set properties and connections

Definition at line 3258 of file qfiledialog.cpp.

◆ createWidgets()

void QFileDialogPrivate::createWidgets ( )

Create the widgets, set properties and connections

Definition at line 2988 of file qfiledialog.cpp.

◆ currentChanged()

void QFileDialogPrivate::currentChanged ( const QModelIndex & index)

Definition at line 3777 of file qfiledialog.cpp.

◆ currentView()

QAbstractItemView * QFileDialogPrivate::currentView ( ) const

Definition at line 1814 of file qfiledialog.cpp.

◆ deleteCurrent()

void QFileDialogPrivate::deleteCurrent ( )

Deletes the currently selected item in the dialog.

Definition at line 3598 of file qfiledialog.cpp.

◆ directory_sys()

QUrl QFileDialogPrivate::directory_sys ( ) const
inline

Definition at line 349 of file qfiledialog_p.h.

◆ emitFilesSelected()

void QFileDialogPrivate::emitFilesSelected ( const QStringList & files)

Definition at line 715 of file qfiledialog.cpp.

◆ emitUrlSelected()

void QFileDialogPrivate::emitUrlSelected ( const QUrl & file)

Definition at line 3959 of file qfiledialog.cpp.

◆ emitUrlsSelected()

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

Definition at line 3967 of file qfiledialog.cpp.

◆ enterDirectory()

void QFileDialogPrivate::enterDirectory ( const QModelIndex & index)

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

Definition at line 3789 of file qfiledialog.cpp.

◆ fileRenamed()

void QFileDialogPrivate::fileRenamed ( const QString & path,
const QString & oldName,
const QString & newName )

Definition at line 3950 of file qfiledialog.cpp.

◆ filterForMode()

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

Definition at line 135 of file qfiledialog_p.h.

◆ getEnvironmentVariable()

QString QFileDialogPrivate::getEnvironmentVariable ( const QString & string)

Definition at line 4031 of file qfiledialog.cpp.

◆ goHome()

void QFileDialogPrivate::goHome ( )

Definition at line 3357 of file qfiledialog.cpp.

◆ goToDirectory()

void QFileDialogPrivate::goToDirectory ( const QString & path)

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

Definition at line 3823 of file qfiledialog.cpp.

◆ goToUrl()

void QFileDialogPrivate::goToUrl ( const QUrl & url)

set the directory to url

Definition at line 927 of file qfiledialog.cpp.

◆ helperDone()

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

Reimplemented from QDialogPrivate.

Definition at line 593 of file qfiledialog.cpp.

◆ helperPrepareShow()

void QFileDialogPrivate::helperPrepareShow ( QPlatformDialogHelper * )
overrideprivatevirtual

Reimplemented from QDialogPrivate.

Definition at line 580 of file qfiledialog.cpp.

◆ init()

void QFileDialogPrivate::init ( const QFileDialogArgs & args)

Create widgets, layout and set default values

Definition at line 2940 of file qfiledialog.cpp.

◆ initHelper()

void QFileDialogPrivate::initHelper ( QPlatformDialogHelper * h)
overrideprivatevirtual

Reimplemented from QDialogPrivate.

Definition at line 563 of file qfiledialog.cpp.

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

◆ lineEdit()

QLineEdit * QFileDialogPrivate::lineEdit ( ) const

Definition at line 1822 of file qfiledialog.cpp.

◆ mapFromSource()

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

Definition at line 325 of file qfiledialog_p.h.

◆ mapToSource()

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

Definition at line 318 of file qfiledialog_p.h.

◆ maxNameLength()

long QFileDialogPrivate::maxNameLength ( const QString & path)
static

Definition at line 1826 of file qfiledialog.cpp.

◆ nativeCurrentChanged()

void QFileDialogPrivate::nativeCurrentChanged ( const QUrl & file)

Definition at line 3979 of file qfiledialog.cpp.

◆ nativeEnterDirectory()

void QFileDialogPrivate::nativeEnterDirectory ( const QUrl & directory)

Definition at line 3987 of file qfiledialog.cpp.

◆ navigate()

void QFileDialogPrivate::navigate ( HistoryItem & historyItem)

Definition at line 3403 of file qfiledialog.cpp.

◆ navigateBackward()

void QFileDialogPrivate::navigateBackward ( )

Navigates to the last directory viewed in the dialog.

Definition at line 3437 of file qfiledialog.cpp.

◆ navigateForward()

void QFileDialogPrivate::navigateForward ( )

Navigates to the last directory viewed in the dialog.

Definition at line 3450 of file qfiledialog.cpp.

◆ navigateToParent()

void QFileDialogPrivate::navigateToParent ( )

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

Definition at line 3464 of file qfiledialog.cpp.

◆ pathChanged()

void QFileDialogPrivate::pathChanged ( const QString & newPath)

Update history with new path, buttons, and combo

Definition at line 3380 of file qfiledialog.cpp.

◆ platformFileDialogHelper()

QPlatformFileDialogHelper * QFileDialogPrivate::platformFileDialogHelper ( ) const
inline

Definition at line 94 of file qfiledialog_p.h.

◆ removeDirectory()

bool QFileDialogPrivate::removeDirectory ( const QString & path)

Definition at line 3587 of file qfiledialog.cpp.

◆ renameCurrent()

void QFileDialogPrivate::renameCurrent ( )

Definition at line 3576 of file qfiledialog.cpp.

◆ restoreWidgetState()

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

Definition at line 2892 of file qfiledialog.cpp.

◆ retranslateStrings()

void QFileDialogPrivate::retranslateStrings ( )

Definition at line 683 of file qfiledialog.cpp.

◆ retranslateWindowTitle()

void QFileDialogPrivate::retranslateWindowTitle ( )

Definition at line 603 of file qfiledialog.cpp.

◆ rootIndex()

QModelIndex QFileDialogPrivate::rootIndex ( ) const
inline

Definition at line 1810 of file qfiledialog.cpp.

◆ rootPath()

QString QFileDialogPrivate::rootPath ( ) const
inline

Definition at line 333 of file qfiledialog_p.h.

◆ rowsInserted()

void QFileDialogPrivate::rowsInserted ( const QModelIndex & parent)

When parent is root and rows have been inserted when none was there before then select the first one.

Definition at line 3940 of file qfiledialog.cpp.

◆ saveHistorySelection()

void QFileDialogPrivate::saveHistorySelection ( )

Definition at line 3364 of file qfiledialog.cpp.

◆ select()

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

Definition at line 1855 of file qfiledialog.cpp.

◆ selectedFiles_sys()

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

Definition at line 367 of file qfiledialog_p.h.

◆ selectedMimeTypeFilter_sys()

QString QFileDialogPrivate::selectedMimeTypeFilter_sys ( ) const
inline

Definition at line 386 of file qfiledialog_p.h.

◆ selectedNameFilter_sys()

QString QFileDialogPrivate::selectedNameFilter_sys ( ) const
inline

Definition at line 400 of file qfiledialog_p.h.

◆ selectFile_sys()

void QFileDialogPrivate::selectFile_sys ( const QUrl & filename)
inline

Definition at line 356 of file qfiledialog_p.h.

◆ selectionChanged()

void QFileDialogPrivate::selectionChanged ( )

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

Definition at line 3897 of file qfiledialog.cpp.

◆ selectMimeTypeFilter_sys()

void QFileDialogPrivate::selectMimeTypeFilter_sys ( const QString & filter)
inline

Definition at line 380 of file qfiledialog_p.h.

◆ selectNameFilter_sys()

void QFileDialogPrivate::selectNameFilter_sys ( const QString & filter)
inline

Definition at line 394 of file qfiledialog_p.h.

◆ setDirectory_sys()

void QFileDialogPrivate::setDirectory_sys ( const QUrl & directory)
inline

Definition at line 338 of file qfiledialog_p.h.

◆ setFilter_sys()

void QFileDialogPrivate::setFilter_sys ( )
inline

Definition at line 374 of file qfiledialog_p.h.

◆ setLabelTextControl()

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

Definition at line 1998 of file qfiledialog.cpp.

◆ setLastVisitedDirectory()

void QFileDialogPrivate::setLastVisitedDirectory ( const QUrl & dir)
static

Definition at line 620 of file qfiledialog.cpp.

◆ setRootIndex()

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

Definition at line 1845 of file qfiledialog.cpp.

◆ setVisible()

void QFileDialogPrivate::setVisible ( bool visible)
overridevirtual

The logic has to live here so that the call to hide() in ~QDialog calls this function; it wouldn't call an override of QDialog::setVisible().

Reimplemented from QDialogPrivate.

Definition at line 887 of file qfiledialog.cpp.

◆ showContextMenu()

void QFileDialogPrivate::showContextMenu ( const QPoint & position)

Show the context menu for the file/dir under position

Definition at line 3536 of file qfiledialog.cpp.

◆ showDetailsView()

void QFileDialogPrivate::showDetailsView ( )

Definition at line 3521 of file qfiledialog.cpp.

◆ showHeader()

void QFileDialogPrivate::showHeader ( QAction * action)

Definition at line 3168 of file qfiledialog.cpp.

◆ showHidden()

void QFileDialogPrivate::showHidden ( )

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

Definition at line 3926 of file qfiledialog.cpp.

◆ showListView()

void QFileDialogPrivate::showListView ( )

Definition at line 3511 of file qfiledialog.cpp.

◆ toInternal()

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

Definition at line 145 of file qfiledialog_p.h.

◆ typedFiles()

QStringList QFileDialogPrivate::typedFiles ( ) const

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

Definition at line 1212 of file qfiledialog.cpp.

◆ updateCancelButtonText()

void QFileDialogPrivate::updateCancelButtonText ( )

Definition at line 677 of file qfiledialog.cpp.

◆ updateFileNameLabel()

void QFileDialogPrivate::updateFileNameLabel ( )
inline

Definition at line 631 of file qfiledialog.cpp.

◆ updateFileTypeLabel()

void QFileDialogPrivate::updateFileTypeLabel ( )
inline

Definition at line 647 of file qfiledialog.cpp.

◆ updateLookInLabel()

void QFileDialogPrivate::updateLookInLabel ( )
inline

Definition at line 625 of file qfiledialog.cpp.

◆ updateOkButton()

void QFileDialogPrivate::updateOkButton ( )

Definition at line 3681 of file qfiledialog.cpp.

◆ updateOkButtonText()

void QFileDialogPrivate::updateOkButtonText ( bool saveAsOnFolder = false)

Definition at line 653 of file qfiledialog.cpp.

◆ useNameFilter()

void QFileDialogPrivate::useNameFilter ( int index)

Sets the current name filter to be nameFilter and update the qFileDialogUi->fileNameEdit when in AcceptSave mode with the new extension.

Definition at line 3861 of file qfiledialog.cpp.

◆ userSelectedFiles()

QList< QUrl > QFileDialogPrivate::userSelectedFiles ( ) const

Definition at line 1253 of file qfiledialog.cpp.

◆ usingWidgets()

bool QFileDialogPrivate::usingWidgets ( ) const
inline

Definition at line 739 of file qfiledialog.cpp.

Member Data Documentation

◆ acceptLabel

QString QFileDialogPrivate::acceptLabel

Definition at line 242 of file qfiledialog_p.h.

◆ currentHistory

QList<HistoryItem> QFileDialogPrivate::currentHistory

Definition at line 212 of file qfiledialog_p.h.

◆ currentHistoryLocation

int QFileDialogPrivate::currentHistoryLocation

Definition at line 213 of file qfiledialog_p.h.

◆ defaultIconProvider

QFileIconProvider QFileDialogPrivate::defaultIconProvider

Definition at line 254 of file qfiledialog_p.h.

◆ deleteAction

QAction* QFileDialogPrivate::deleteAction

Definition at line 216 of file qfiledialog_p.h.

◆ headerData

QByteArray QFileDialogPrivate::headerData

Definition at line 252 of file qfiledialog_p.h.

◆ memberToDisconnectOnClose

QByteArray QFileDialogPrivate::memberToDisconnectOnClose

Definition at line 245 of file qfiledialog_p.h.

◆ model

QFileSystemModel* QFileDialogPrivate::model

Definition at line 204 of file qfiledialog_p.h.

◆ newFolderAction

QAction* QFileDialogPrivate::newFolderAction

Definition at line 218 of file qfiledialog_p.h.

◆ options

◆ qFileDialogUi

std::unique_ptr<Ui_QFileDialog> QFileDialogPrivate::qFileDialogUi

Definition at line 240 of file qfiledialog_p.h.

◆ receiverToDisconnectOnClose

QPointer<QObject> QFileDialogPrivate::receiverToDisconnectOnClose

Definition at line 244 of file qfiledialog_p.h.

◆ renameAction

QAction* QFileDialogPrivate::renameAction

Definition at line 215 of file qfiledialog_p.h.

◆ setWindowTitle

QString QFileDialogPrivate::setWindowTitle

Definition at line 210 of file qfiledialog_p.h.

◆ showHiddenAction

QAction* QFileDialogPrivate::showHiddenAction

Definition at line 217 of file qfiledialog_p.h.

◆ sidebarUrls

QList<QUrl> QFileDialogPrivate::sidebarUrls

Definition at line 253 of file qfiledialog_p.h.

◆ signalToDisconnectOnClose

QByteArray QFileDialogPrivate::signalToDisconnectOnClose

Definition at line 246 of file qfiledialog_p.h.

◆ splitterState

QByteArray QFileDialogPrivate::splitterState

Definition at line 251 of file qfiledialog_p.h.

◆ useDefaultCaption

bool QFileDialogPrivate::useDefaultCaption

Definition at line 220 of file qfiledialog_p.h.

◆ watching

QStringList QFileDialogPrivate::watching

Definition at line 203 of file qfiledialog_p.h.


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