forked from qt-creator/qt-creator
Fixes: Introduce a cpp settingspage containing file naming conventions (lower case and suffixes). Reorder VCS settings pages.
Task: 241959, 248085 RevBy: Optics/Naming checked by con Details: Give IOptionPage an id() to differentiate from trName(). Make showOptionsDialog return a bool (applied) and give it an optional parent. Change Cpp and form class wizards, give them a Configure... button to change those settings.
This commit is contained in:
@@ -46,6 +46,7 @@ class QWORKBENCH_UTILS_EXPORT ClassNameValidatingLineEdit
|
||||
{
|
||||
Q_DISABLE_COPY(ClassNameValidatingLineEdit)
|
||||
Q_PROPERTY(bool namespacesEnabled READ namespacesEnabled WRITE setNamespacesEnabled DESIGNABLE true)
|
||||
Q_PROPERTY(bool lowerCaseFileName READ lowerCaseFileName WRITE setLowerCaseFileName)
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
@@ -55,6 +56,9 @@ public:
|
||||
bool namespacesEnabled() const;
|
||||
void setNamespacesEnabled(bool b);
|
||||
|
||||
bool lowerCaseFileName() const;
|
||||
void setLowerCaseFileName(bool v);
|
||||
|
||||
// Clean an input string to get a valid class name.
|
||||
static QString createClassName(const QString &name);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user