diff --git a/src/ui/main.cpp b/src/ui/main.cpp index a3f74762..a1f892f1 100644 --- a/src/ui/main.cpp +++ b/src/ui/main.cpp @@ -21,11 +21,6 @@ #define FORT_ERROR_INSTANCE 1 #define FORT_ERROR_CONTROL 2 -static void registerMetaTypes(void) -{ - qRegisterMetaType("AppInfo"); -} - int main(int argc, char *argv[]) { #if QT_VERSION < QT_VERSION_CHECK(6, 0, 0) @@ -69,8 +64,6 @@ int main(int argc, char *argv[]) QApplication::setStyle(fusionStyle); QApplication::setPalette(fusionStyle->standardPalette()); - registerMetaTypes(); - FortManager fortManager(&fortSettings); fortManager.launch(); diff --git a/src/ui/util/app/appinfo.h b/src/ui/util/app/appinfo.h index 7d1e4087..18f4141a 100644 --- a/src/ui/util/app/appinfo.h +++ b/src/ui/util/app/appinfo.h @@ -6,12 +6,6 @@ class AppInfo { - Q_GADGET - Q_PROPERTY(QString fileDescription MEMBER fileDescription CONSTANT) - Q_PROPERTY(QString companyName MEMBER companyName CONSTANT) - Q_PROPERTY(QString productName MEMBER productName CONSTANT) - Q_PROPERTY(QString productVersion MEMBER productVersion CONSTANT) - public: bool isFileModified(const QString &appPath) const; @@ -28,6 +22,4 @@ public: QString productVersion; }; -Q_DECLARE_METATYPE(AppInfo) - #endif // APPINFO_H