|
static QString | GetSaveFileName (QWidget *parent=nullptr, const QString &caption=QString(), const QString &dir=QString(), const QString &filter=QString(), QString *selectedFilter=nullptr, QFileDialog::Options options=QFileDialog::Options()) |
|
static QString | GetSaveFileName_ (QWidget *parent=nullptr, const QString &caption=QString(), const QString &dir=QString(), const QString &filter=QString(), QString *selectedFilter=nullptr, QFileDialog::Options options=QFileDialog::Options()) |
| Helper function which simply calls the GetSaveFileName function.
|
|
static bool | IsValidFileName (const QString &fileName) |
| Check if the filename has any invalid characters.
|
|
static bool | ApplyMissingExtension (const QString &selectedFilter, QString &filePath) |
|
◆ ApplyMissingExtension()
static bool AzQtComponents::FileDialog::ApplyMissingExtension |
( |
const QString & |
selectedFilter, |
|
|
QString & |
filePath |
|
) |
| |
|
static |
Helper method that parses a selected filter from Qt's QFileDialog::getSaveFileName and applies the selected filter's extension to the filePath if it doesnt already have the extension. This is needed on platforms that do not have a default file dialog (These platforms uses Qt's custom file dialog which will not apply the filter's extension automatically on user entered filenames)
◆ GetSaveFileName()
static QString AzQtComponents::FileDialog::GetSaveFileName |
( |
QWidget * |
parent = nullptr , |
|
|
const QString & |
caption = QString() , |
|
|
const QString & |
dir = QString() , |
|
|
const QString & |
filter = QString() , |
|
|
QString * |
selectedFilter = nullptr , |
|
|
QFileDialog::Options |
options = QFileDialog::Options() |
|
) |
| |
|
static |
Helper method that extends QFileDialog::getSaveFileName to prevent the user from saving a filename with invalid characters (e.g. AP doesn't allow @ characters because they are used for aliases)
The documentation for this class was generated from the following file:
- Code/Framework/AzQtComponents/AzQtComponents/Components/Widgets/FileDialog.h