qmlproject: add convenience method to QmlMultiLanguageAspect

Change-Id: I88799aa1c5caa5c967b7c680ef9ddcbdd4b01bf5
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
This commit is contained in:
Tim Jenssen
2020-07-21 13:47:14 +02:00
parent 3659f5b41d
commit b45b771581
4 changed files with 35 additions and 17 deletions

View File

@@ -45,6 +45,10 @@ public:
void toMap(QVariantMap &map) const final;
void fromMap(const QVariantMap &map) final;
static QmlMultiLanguageAspect *current();
static QmlMultiLanguageAspect *current(ProjectExplorer::Project *project);
static QmlMultiLanguageAspect *current(ProjectExplorer::Target *target);
public slots:
void setLastUsedLanguage(const QString &language);