1
0
mirror of https://gitlab.com/kelteseth/ScreenPlay.git synced 2024-11-07 03:22:33 +01:00

Fix classes that should not be creatable in qml

This commit is contained in:
Elias Steurer 2023-02-24 16:52:49 +01:00
parent 531860884e
commit e3442ec208
5 changed files with 6 additions and 6 deletions

View File

@ -24,7 +24,7 @@ namespace ScreenPlay {
class CreateImportVideo : public QObject {
Q_OBJECT
QML_ELEMENT
QML_UNCREATABLE("")
Q_PROPERTY(float progress READ progress WRITE setProgress NOTIFY progressChanged)

View File

@ -13,8 +13,8 @@ namespace ScreenPlay {
class InstalledListFilter : public QSortFilterProxyModel {
Q_OBJECT
QML_ELEMENT
QML_UNCREATABLE("")
public:
InstalledListFilter(const std::shared_ptr<InstalledListModel>& ilm);

View File

@ -33,7 +33,7 @@ namespace ScreenPlay {
class InstalledListModel : public QAbstractListModel {
Q_OBJECT
QML_ELEMENT
QML_UNCREATABLE("")
Q_PROPERTY(int count READ count WRITE setCount NOTIFY countChanged)

View File

@ -22,7 +22,7 @@ struct Profile;
class ProfileListModel : public QAbstractListModel {
Q_OBJECT
QML_ELEMENT
QML_UNCREATABLE("")
public:
explicit ProfileListModel(

View File

@ -43,7 +43,7 @@ class ActiveProfile;
class Settings : public QObject {
Q_OBJECT
QML_ELEMENT
QML_UNCREATABLE("")
Q_PROPERTY(bool anonymousTelemetry READ anonymousTelemetry WRITE setAnonymousTelemetry NOTIFY anonymousTelemetryChanged)
Q_PROPERTY(bool silentStart READ silentStart WRITE setSilentStart NOTIFY silentStartChanged)