diff options
author | hjk <hjk@qt.io> | 2021-09-27 09:58:54 +0200 |
---|---|---|
committer | hjk <hjk@qt.io> | 2021-09-27 11:16:20 +0000 |
commit | 95907b0f7dc9b3dd69c70e4c0ccba3b33203b0c7 (patch) | |
tree | c85719de7e50d380111e511456dfcb026d6d8c92 /src/libs/utils/filewizardpage.cpp | |
parent | fdb5c7a8a36d37ad0fa30da999366d9ed0f3e5fc (diff) |
Utils: Allow full file paths with directory parts
... when creating a new empty file.
This simplifies file creation with file paths cut&paste from external
applications as it removes the need to split it into a directory part
and the file name.
Change-Id: I3f81db89d5ae7db4117c29a4f947cdf92dc4d50c
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Diffstat (limited to 'src/libs/utils/filewizardpage.cpp')
-rw-r--r-- | src/libs/utils/filewizardpage.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libs/utils/filewizardpage.cpp b/src/libs/utils/filewizardpage.cpp index d280cf2dbb..130c40395e 100644 --- a/src/libs/utils/filewizardpage.cpp +++ b/src/libs/utils/filewizardpage.cpp @@ -95,6 +95,11 @@ void FileWizardPage::setFileName(const QString &name) d->m_ui.nameLineEdit->setText(name); } +void FileWizardPage::setAllowDirectoriesInFileSelector(bool allow) +{ + d->m_ui.nameLineEdit->setAllowDirectories(allow); +} + bool FileWizardPage::isComplete() const { return d->m_complete; |