AppInfo.h 389 B

12345678910111213141516171819
  1. #ifndef APPINFO_H
  2. #define APPINFO_H
  3. #include <QObject>
  4. #include "lang/Lang.h"
  5. #include "stdafx.h"
  6. class AppInfo : public QObject
  7. {
  8. Q_OBJECT
  9. Q_PROPERTY_AUTO(QString,version)
  10. Q_PROPERTY_AUTO(Lang*,lang)
  11. public:
  12. explicit AppInfo(QObject *parent = nullptr);
  13. Q_INVOKABLE void changeLang(const QString& locale);
  14. Q_SIGNAL void activeWindow();
  15. };
  16. #endif // APPINFO_H