forked from qt-creator/qt-creator
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user