Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qfiledialog.cpp File Reference

(0f77aff05fa6eb059d7f8517c94c88f889b44e6e)

#include <qvariant.h>
#include <private/qwidgetitemdata_p.h>
#include "qfiledialog.h"
#include "qfiledialog_p.h"
#include <private/qapplication_p.h>
#include <private/qguiapplication_p.h>
#include <qfontmetrics.h>
#include <qaction.h>
#include <qactiongroup.h>
#include <qheaderview.h>
#include <qgridlayout.h>
#include <stdlib.h>
#include <qdebug.h>
#include <qapplication.h>
#include <qstylepainter.h>
#include "ui_qfiledialog.h"
#include <algorithm>
#include <QMetaEnum>
#include "moc_qfiledialog.cpp"
+ Include dependency graph for qfiledialog.cpp:

Go to the source code of this file.

Macros

#define QT_NO_URL_CAST_FROM_STRING
 

Functions

static bool isCaseSensitiveFileSystem (const QString &path)
 
static QString fileFromPath (const QString &rootPath, QString path)
 
QStringList qt_make_filter_list (const QString &filter)
 
QStringList qt_strip_filters (const QStringList &filters)
 
static QUrl _qt_get_directory (const QUrl &url, const QFileInfo &local)
 

Variables

static const qint32 QFileDialogMagic = 0xbe
 

Macro Definition Documentation

◆ QT_NO_URL_CAST_FROM_STRING

#define QT_NO_URL_CAST_FROM_STRING

Definition at line 4 of file qfiledialog.cpp.

Function Documentation

◆ _qt_get_directory()

static QUrl _qt_get_directory ( const QUrl & url,
const QFileInfo & local )
inlinestatic

Definition at line 2625 of file qfiledialog.cpp.

References QDir::cleanPath(), QDir::current(), QUrl::fromLocalFile(), info, QFileInfo::isAbsolute(), QUrl::isLocalFile(), QUrl::toLocalFile(), and url.

Referenced by QFileDialogArgs::QFileDialogArgs().

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

◆ fileFromPath()

static QString fileFromPath ( const QString & rootPath,
QString path )
inlinestatic

Definition at line 1044 of file qfiledialog.cpp.

References Qt::CaseInsensitive, Qt::CaseSensitive, isCaseSensitiveFileSystem(), QDir::separator(), and QString::size().

Referenced by QFileDialog::selectFile().

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

◆ isCaseSensitiveFileSystem()

static bool isCaseSensitiveFileSystem ( const QString & path)
inlinestatic

Definition at line 1028 of file qfiledialog.cpp.

References QFile::encodeName(), and Q_UNUSED.

Referenced by fileFromPath().

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

◆ qt_make_filter_list()

QStringList qt_make_filter_list ( const QString & filter)

Definition at line 1348 of file qfiledialog.cpp.

References sep.

Referenced by QFileDialog::selectNameFilter(), and QFileDialog::setNameFilter().

+ Here is the caller graph for this function:

◆ qt_strip_filters()

QStringList qt_strip_filters ( const QStringList & filters)

Definition at line 1386 of file qfiledialog.cpp.

References QPlatformFileDialogHelper::filterRegExp, filters, QString::fromLatin1(), and match().

Referenced by QFileDialog::selectedMimeTypeFilter(), QFileDialog::selectNameFilter(), and QFileDialog::setNameFilters().

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

Variable Documentation

◆ QFileDialogMagic

const qint32 QFileDialogMagic = 0xbe
static

Definition at line 415 of file qfiledialog.cpp.

Referenced by QFileDialog::restoreState(), and QFileDialog::saveState().