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>
This commit is contained in:
hjk
2021-09-27 09:58:54 +02:00
parent fdb5c7a8a3
commit 95907b0f7d
3 changed files with 18 additions and 11 deletions

View File

@@ -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;