diff options
author | Thorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com> | 2009-03-19 16:33:44 +0100 |
---|---|---|
committer | Thorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com> | 2009-03-19 18:08:16 +0100 |
commit | 9c8f4e30a7d4758293afe73392f9cc80f1154e80 (patch) | |
tree | cc47d4f41b2c099d4e8569755179e79b967e800b /src/libs/utils/filenamevalidatinglineedit.h | |
parent | d2f07b967d6b4c5a00bd35cb6ac1d3399698f610 (diff) | |
download | qt-creator-9c8f4e30a7d4758293afe73392f9cc80f1154e80.tar.gz |
Allow specifying the name of a new generic project
The name is used as the base for files like [project].creator,
[project].files, etc. and is displayed in the Projects mode and the
Projects tree.
Diffstat (limited to 'src/libs/utils/filenamevalidatinglineedit.h')
-rw-r--r-- | src/libs/utils/filenamevalidatinglineedit.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/libs/utils/filenamevalidatinglineedit.h b/src/libs/utils/filenamevalidatinglineedit.h index cf37757175..60145bdf4c 100644 --- a/src/libs/utils/filenamevalidatinglineedit.h +++ b/src/libs/utils/filenamevalidatinglineedit.h @@ -35,6 +35,10 @@ namespace Core { namespace Utils { +/** + * A control that let's the user choose a file name, based on a QLineEdit. Has + * some validation logic for embedding into QWizardPage. + */ class QWORKBENCH_UTILS_EXPORT FileNameValidatingLineEdit : public BaseValidatingLineEdit { Q_OBJECT @@ -47,6 +51,10 @@ public: bool allowDirectories = false, QString *errorMessage = 0); + /** + * Sets whether entering directories is allowed. This will enable the user + * to enter slashes in the filename. Default is off. + */ bool allowDirectories() const; void setAllowDirectories(bool v); |