aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/qmlprojectmanager/qmlmultilanguageaspect.h
diff options
context:
space:
mode:
authorTim Jenssen <tim.jenssen@qt.io>2020-07-21 13:47:14 +0200
committerTim Jenssen <tim.jenssen@qt.io>2020-07-21 15:37:41 +0000
commitb45b771581860f26a99950954e5c47e614f36943 (patch)
treed98ffa49a29b7e6ceea79850492887a6f526bcbb /src/plugins/qmlprojectmanager/qmlmultilanguageaspect.h
parent3659f5b41d3cf533b7cd7aec67281200a0c5d73f (diff)
qmlproject: add convenience method to QmlMultiLanguageAspect
Change-Id: I88799aa1c5caa5c967b7c680ef9ddcbdd4b01bf5 Reviewed-by: Marco Bubke <marco.bubke@qt.io>
Diffstat (limited to 'src/plugins/qmlprojectmanager/qmlmultilanguageaspect.h')
-rw-r--r--src/plugins/qmlprojectmanager/qmlmultilanguageaspect.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/qmlprojectmanager/qmlmultilanguageaspect.h b/src/plugins/qmlprojectmanager/qmlmultilanguageaspect.h
index 163552caf0..20db028ed2 100644
--- a/src/plugins/qmlprojectmanager/qmlmultilanguageaspect.h
+++ b/src/plugins/qmlprojectmanager/qmlmultilanguageaspect.h
@@ -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);