mirror of
https://github.com/tnodir/fort
synced 2024-11-15 06:35:23 +00:00
UI: Remove unneeded Q_GADGET.
This commit is contained in:
parent
e200aec5d4
commit
5b1671e612
@ -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();
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user