[cmake, qml] refactor: cmake reorg, match grid behavior to carousel

Signed-off-by: crueter <crueter@eden-emu.dev>
This commit is contained in:
crueter 2025-09-14 16:00:54 -04:00
parent 1604c102eb
commit 649d48c096
Signed by: crueter
GPG key ID: 425ACD2D4830EBC6
114 changed files with 867 additions and 865 deletions

View file

@ -0,0 +1,22 @@
#ifndef METAOBJECTHELPER_H
#define METAOBJECTHELPER_H
#include <QMetaObject>
#include <QObject>
#include <QQmlProperty>
class MetaObjectHelper : public QObject {
Q_OBJECT
QML_ELEMENT
QML_SINGLETON
public:
using QObject::QObject;
Q_INVOKABLE QString typeName(QObject* object, const QString& property) const
{
QQmlProperty qmlProperty(object, property);
QMetaProperty metaProperty = qmlProperty.property();
return metaProperty.typeName();
}
};
#endif // METAOBJECTHELPER_H