forked from qt-creator/qt-creator
Core: Add function to expose the "IdeVersion"
Change-Id: Ic6c8fc4de59ee46baa616928c845632d3a1b8809 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -29,6 +29,11 @@ QString UtilsJsExtension::qtCreatorVersion() const
|
||||
return appInfo().displayVersion;
|
||||
}
|
||||
|
||||
QString UtilsJsExtension::qtCreatorIdeVersion() const
|
||||
{
|
||||
return QCoreApplication::applicationVersion();
|
||||
}
|
||||
|
||||
QString UtilsJsExtension::toNativeSeparators(const QString &in) const
|
||||
{
|
||||
return QDir::toNativeSeparators(in);
|
||||
|
@@ -20,6 +20,7 @@ public:
|
||||
// General information
|
||||
Q_INVOKABLE QString qtVersion() const;
|
||||
Q_INVOKABLE QString qtCreatorVersion() const;
|
||||
Q_INVOKABLE QString qtCreatorIdeVersion() const;
|
||||
|
||||
// File name conversions:
|
||||
Q_INVOKABLE QString toNativeSeparators(const QString &in) const;
|
||||
|
Reference in New Issue
Block a user