forked from qt-creator/qt-creator
		
	Make QtWidgets wizard work with namespaced Qt
Fixes: QTCREATORBUG-19590 Change-Id: Ic003b2b1f580d9a6708e144b690c4cee8d94ff69 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
		| @@ -60,6 +60,11 @@ QStringList CppToolsJsExtension::namespaces(const QString &klass) const | ||||
|     return result; | ||||
| } | ||||
|  | ||||
| bool CppToolsJsExtension::hasNamespaces(const QString &klass) const | ||||
| { | ||||
|     return !namespaces(klass).empty(); | ||||
| } | ||||
|  | ||||
| QString CppToolsJsExtension::className(const QString &klass) const | ||||
| { | ||||
|     QStringList result = parts(klass); | ||||
|   | ||||
| @@ -47,6 +47,7 @@ public: | ||||
|  | ||||
|     // Work with classes: | ||||
|     Q_INVOKABLE QStringList namespaces(const QString &klass) const; | ||||
|     Q_INVOKABLE bool hasNamespaces(const QString &klass) const; | ||||
|     Q_INVOKABLE QString className(const QString &klass) const; | ||||
|     // Fix the filename casing as configured in C++/File Naming: | ||||
|     Q_INVOKABLE QString classToFileName(const QString &klass, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user