Commit c86ef46f authored by Tobias Hunger's avatar Tobias Hunger

QtSupport: Add method to query UI class name

Change-Id: Idc1cfd87415093dab4245d84797b0971ec496b45
Reviewed-by: default avatarDaniel Teske <>
parent 08227991
......@@ -34,6 +34,7 @@
#include <coreplugin/icore.h>
#include <utils/codegeneration.h>
#include <utils/qtcassert.h>
#include <QDomDocument>
#include <QSettings>
......@@ -181,6 +182,14 @@ bool CodeGenerator::uiData(const QString &uiXml, QString *formBaseClass, QString
return false;
QString CodeGenerator::uiClassName(const QString &uiXml)
QString base;
QString klass;
QTC_ASSERT(uiData(uiXml, &base, &klass), return QString());
return klass;
QString CodeGenerator::qtIncludes(const QStringList &qt4, const QStringList &qt5)
CodeGenSettings settings;
......@@ -51,6 +51,8 @@ public:
// Low level method to get everything at the same time:
static bool uiData(const QString &uiXml, QString *formBaseClass, QString *uiClassName);
Q_INVOKABLE static QString uiClassName(const QString &uiXml);
// Generic Qt:
Q_INVOKABLE static QString qtIncludes(const QStringList &qt4, const QStringList &qt5);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment