![]() |
Qt 6.x
The Qt SDK
|
#include <qfiledialog_p.h>
Classes | |
struct | HistoryItem |
Public Types | |
using | PersistentModelIndexList = QList< QPersistentModelIndex > |
![]() | |
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 } |
![]() | |
typedef void(* | StaticMetaCallFunction) (QObject *, QMetaObject::Call, int, void **) |
using | ConnectionDataPointer = QExplicitlySharedDataPointer< ConnectionData > |
Static Public Member Functions | |
static long | maxNameLength (const QString &path) |
static QString | toInternal (const QString &path) |
static void | setLastVisitedDirectory (const QUrl &dir) |
![]() | |
static 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 | removeConnection (Connection *c) |
static QObjectPrivate * | get (QObject *o) |
static const QObjectPrivate * | get (const QObject *o) |
template<typename Func1 , typename Func2 > | |
static QMetaObject::Connection | connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot, Qt::ConnectionType type=Qt::AutoConnection) |
template<typename Func1 , typename Func2 > | |
static bool | disconnect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot) |
static QMetaObject::Connection | connectImpl (const QObject *sender, int signal_index, const QObject *receiver, void **slot, QtPrivate::QSlotObjectBase *slotObj, int type, const int *types, const QMetaObject *senderMetaObject) |
static QMetaObject::Connection | connect (const QObject *sender, int signal_index, QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType type) |
static QMetaObject::Connection | connect (const QObject *sender, int signal_index, const QObject *receiver, QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType type) |
static bool | disconnect (const QObject *sender, int signal_index, void **slot) |
static bool | disconnect (const QObject *sender, int signal_index, const QObject *receiver, void **slot) |
Private Member Functions | |
virtual void | initHelper (QPlatformDialogHelper *) override |
virtual void | helperPrepareShow (QPlatformDialogHelper *) override |
virtual void | helperDone (QDialog::DialogCode, QPlatformDialogHelper *) override |
Additional Inherited Members | |
![]() | |
static QWidgetMapper * | mapper = nullptr |
static QWidgetSet * | allWidgets = nullptr |
static int | instanceCounter = 0 |
static int | maxInstances = 0 |
![]() | |
virtual int | dialogCode () const |
Definition at line 77 of file qfiledialog_p.h.
Definition at line 82 of file qfiledialog_p.h.
QFileDialogPrivate::QFileDialogPrivate | ( | ) |
Definition at line 504 of file qfiledialog.cpp.
QFileDialogPrivate::~QFileDialogPrivate | ( | ) |
Definition at line 520 of file qfiledialog.cpp.
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().
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().
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().
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().
Definition at line 3900 of file qfiledialog.cpp.
Referenced by initHelper().
Definition at line 3908 of file qfiledialog.cpp.
References emit, file, and files.
Referenced by initHelper().
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().
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().
void QFileDialogPrivate::_q_goHome | ( | ) |
Definition at line 3302 of file qfiledialog.cpp.
References QDir::homePath().
Referenced by createMenuActions().
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().
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().
Definition at line 3920 of file qfiledialog.cpp.
Referenced by initHelper().
Definition at line 3928 of file qfiledialog.cpp.
References directory, emit, and QString::isEmpty().
Referenced by initHelper().
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().
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().
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().
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().
void QFileDialogPrivate::_q_renameCurrent | ( | ) |
Definition at line 3521 of file qfiledialog.cpp.
References QFileDialog::List, and qFileDialogUi.
Referenced by createMenuActions().
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().
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().
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().
void QFileDialogPrivate::_q_showDetailsView | ( | ) |
Definition at line 3466 of file qfiledialog.cpp.
References qFileDialogUi.
Referenced by createToolButtons().
Definition at line 3122 of file qfiledialog.cpp.
References QActionGroup::actions(), QListSpecialMethodsBase< T >::indexOf(), QAction::isChecked(), and qFileDialogUi.
Referenced by createWidgets().
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().
void QFileDialogPrivate::_q_showListView | ( | ) |
Definition at line 3456 of file qfiledialog.cpp.
References qFileDialogUi.
Referenced by createToolButtons().
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().
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().
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().
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().
Definition at line 125 of file qfiledialog_p.h.
References QString::lastIndexOf(), QDir::separator(), and QDir::toNativeSeparators().
|
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.
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().
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().
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().
QAbstractItemView * QFileDialogPrivate::currentView | ( | ) | const |
Definition at line 1775 of file qfiledialog.cpp.
References qFileDialogUi.
Referenced by _q_createDirectory().
|
inline |
Definition at line 349 of file qfiledialog_p.h.
References platformFileDialogHelper().
void QFileDialogPrivate::emitFilesSelected | ( | const QStringList & | files | ) |
Definition at line 670 of file qfiledialog.cpp.
|
inline |
Definition at line 133 of file qfiledialog_p.h.
References QDir::AllDirs, QDir::Dirs, QDir::Drives, QDir::Files, filters, and QFileDialog::ShowDirsOnly.
Definition at line 3976 of file qfiledialog.cpp.
References QString::fromLocal8Bit(), QStringView::mid(), qgetenv(), and QDialogPrivate::size.
Referenced by _q_goToDirectory(), and _q_updateOkButton().
|
overrideprivatevirtual |
Reimplemented from QDialogPrivate.
Definition at line 548 of file qfiledialog.cpp.
References QDialog::Accepted, QFileDialogOptions::history(), options, QFileDialogOptions::sidebarUrls(), and QFileDialogOptions::viewMode().
|
overrideprivatevirtual |
Reimplemented from QDialogPrivate.
Definition at line 535 of file qfiledialog.cpp.
References QFileDialogOptions::initiallySelectedFiles(), QFileDialogOptions::initiallySelectedNameFilter(), QString::isEmpty(), QList< T >::isEmpty(), options, qFileDialogUi, QFileDialogOptions::setHistory(), QFileDialogOptions::setInitiallySelectedFiles(), QFileDialogOptions::setInitiallySelectedNameFilter(), QFileDialogOptions::setSidebarUrls(), QFileDialogOptions::setWindowTitle(), userSelectedFiles(), and usingWidgets().
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().
|
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.
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().
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().
|
inline |
Definition at line 325 of file qfiledialog_p.h.
Referenced by _q_goToDirectory(), select(), and setRootIndex().
|
inline |
Definition at line 318 of file qfiledialog_p.h.
Referenced by _q_deleteCurrent(), _q_enterDirectory(), _q_selectionChanged(), _q_showContextMenu(), and rootIndex().
|
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().
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().
|
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().
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().
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.
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().
void QFileDialogPrivate::retranslateWindowTitle | ( | ) |
Definition at line 558 of file qfiledialog.cpp.
References QFileDialog::AcceptOpen, QFileDialog::Directory, setWindowTitle, and useDefaultCaption.
|
inline |
Definition at line 1771 of file qfiledialog.cpp.
References mapToSource(), and qFileDialogUi.
Referenced by _q_createDirectory().
|
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().
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().
|
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().
Definition at line 367 of file qfiledialog_p.h.
References platformFileDialogHelper().
Referenced by userSelectedFiles().
|
inline |
Definition at line 386 of file qfiledialog_p.h.
References platformFileDialogHelper().
|
inline |
Definition at line 400 of file qfiledialog_p.h.
References platformFileDialogHelper().
Definition at line 356 of file qfiledialog_p.h.
References QPlatformFileDialogHelper::isSupportedUrl(), platformFileDialogHelper(), and QPlatformFileDialogHelper::selectFile().
Definition at line 380 of file qfiledialog_p.h.
References platformFileDialogHelper().
Definition at line 394 of file qfiledialog_p.h.
References platformFileDialogHelper().
Definition at line 338 of file qfiledialog_p.h.
References directory, QPlatformFileDialogHelper::isSupportedUrl(), platformFileDialogHelper(), and QPlatformFileDialogHelper::setDirectory().
|
inline |
Definition at line 374 of file qfiledialog_p.h.
References platformFileDialogHelper().
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().
Definition at line 575 of file qfiledialog.cpp.
References dir.
Referenced by QFileDialog::setDirectory(), and QFileDialog::setDirectoryUrl().
|
inline |
Definition at line 1806 of file qfiledialog.cpp.
References mapFromSource(), model, Q_ASSERT, and qFileDialogUi.
Definition at line 143 of file qfiledialog_p.h.
Referenced by addDefaultSuffixToFiles(), and 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().
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().
|
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().
|
inline |
Definition at line 602 of file qfiledialog.cpp.
References QFileDialogOptions::FileType, QFileDialog::FileType, QFileDialogOptions::isLabelExplicitlySet(), QFileDialogOptions::labelText(), options, and setLabelTextControl().
Referenced by retranslateStrings().
|
inline |
Definition at line 580 of file qfiledialog.cpp.
References QFileDialogOptions::isLabelExplicitlySet(), QFileDialogOptions::labelText(), QFileDialogOptions::LookIn, QFileDialog::LookIn, options, and setLabelTextControl().
Referenced by retranslateStrings().
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().
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().
|
inline |
Definition at line 694 of file qfiledialog.cpp.
References QDialogPrivate::nativeDialogInUse, and qFileDialogUi.
Referenced by helperPrepareShow(), retranslateStrings(), and userSelectedFiles().
QString QFileDialogPrivate::acceptLabel |
Definition at line 239 of file qfiledialog_p.h.
QList<HistoryItem> QFileDialogPrivate::currentHistory |
Definition at line 210 of file qfiledialog_p.h.
Referenced by _q_navigateBackward(), _q_navigateForward(), _q_pathChanged(), and saveHistorySelection().
int QFileDialogPrivate::currentHistoryLocation |
Definition at line 211 of file qfiledialog_p.h.
Referenced by _q_navigateBackward(), _q_navigateForward(), _q_pathChanged(), and saveHistorySelection().
QFileIconProvider QFileDialogPrivate::defaultIconProvider |
Definition at line 251 of file qfiledialog_p.h.
Referenced by createWidgets().
QAction* QFileDialogPrivate::deleteAction |
Definition at line 214 of file qfiledialog_p.h.
Referenced by _q_showContextMenu(), createMenuActions(), and retranslateStrings().
QByteArray QFileDialogPrivate::headerData |
Definition at line 249 of file qfiledialog_p.h.
Referenced by restoreWidgetState().
QByteArray QFileDialogPrivate::memberToDisconnectOnClose |
Definition at line 242 of file qfiledialog_p.h.
QFileSystemModel* QFileDialogPrivate::model |
Definition at line 202 of file qfiledialog_p.h.
Referenced by _q_autoCompleteFileName(), _q_createDirectory(), _q_deleteCurrent(), _q_enterDirectory(), _q_goToDirectory(), _q_goToUrl(), _q_navigateToParent(), _q_pathChanged(), _q_selectionChanged(), _q_showContextMenu(), _q_updateOkButton(), _q_useNameFilter(), createWidgets(), removeDirectory(), restoreWidgetState(), retranslateStrings(), rootPath(), select(), QFileDialogComboBox::setFileDialogPrivate(), QFileDialogComboBox::setHistory(), setRootIndex(), and QFileDialogComboBox::showPopup().
QAction* QFileDialogPrivate::newFolderAction |
Definition at line 216 of file qfiledialog_p.h.
Referenced by _q_showContextMenu(), createMenuActions(), and retranslateStrings().
QSharedPointer<QFileDialogOptions> QFileDialogPrivate::options |
Definition at line 245 of file qfiledialog_p.h.
Referenced by _q_useNameFilter(), addDefaultSuffixToFiles(), addDefaultSuffixToUrls(), canBeNativeDialog(), createWidgets(), helperDone(), helperPrepareShow(), initHelper(), retranslateStrings(), updateCancelButtonText(), updateFileNameLabel(), updateFileTypeLabel(), updateLookInLabel(), and updateOkButtonText().
QScopedPointer<Ui_QFileDialog> QFileDialogPrivate::qFileDialogUi |
Definition at line 237 of file qfiledialog_p.h.
Referenced by _q_autoCompleteFileName(), _q_createDirectory(), _q_deleteCurrent(), _q_enterDirectory(), _q_goToDirectory(), _q_pathChanged(), _q_renameCurrent(), _q_rowsInserted(), _q_selectionChanged(), _q_showContextMenu(), _q_showDetailsView(), _q_showHeader(), _q_showListView(), _q_updateOkButton(), _q_useNameFilter(), createToolButtons(), createWidgets(), currentView(), helperPrepareShow(), init(), lineEdit(), navigate(), restoreWidgetState(), retranslateStrings(), rootIndex(), saveHistorySelection(), select(), setLabelTextControl(), setRootIndex(), userSelectedFiles(), and usingWidgets().
Definition at line 241 of file qfiledialog_p.h.
QAction* QFileDialogPrivate::renameAction |
Definition at line 213 of file qfiledialog_p.h.
Referenced by _q_showContextMenu(), createMenuActions(), and retranslateStrings().
QString QFileDialogPrivate::setWindowTitle |
Definition at line 208 of file qfiledialog_p.h.
Referenced by init(), and retranslateWindowTitle().
QAction* QFileDialogPrivate::showHiddenAction |
Definition at line 215 of file qfiledialog_p.h.
Referenced by _q_showContextMenu(), _q_showHidden(), createMenuActions(), and retranslateStrings().
Definition at line 250 of file qfiledialog_p.h.
Referenced by restoreWidgetState().
QByteArray QFileDialogPrivate::signalToDisconnectOnClose |
Definition at line 243 of file qfiledialog_p.h.
QByteArray QFileDialogPrivate::splitterState |
Definition at line 248 of file qfiledialog_p.h.
Referenced by restoreWidgetState().
bool QFileDialogPrivate::useDefaultCaption |
Definition at line 218 of file qfiledialog_p.h.
Referenced by init(), and retranslateWindowTitle().
QStringList QFileDialogPrivate::watching |
Definition at line 201 of file qfiledialog_p.h.