UI: Remove unneeded Q_GADGET.

This commit is contained in:
Nodir Temirkhodjaev 2021-03-21 15:53:18 +03:00
parent e200aec5d4
commit 5b1671e612
2 changed files with 0 additions and 15 deletions

View File

@ -21,11 +21,6 @@
#define FORT_ERROR_INSTANCE 1
#define FORT_ERROR_CONTROL 2
static void registerMetaTypes(void)
{
qRegisterMetaType<AppInfo>("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();

View File

@ -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