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:
parent
531860884e
commit
e3442ec208
@ -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)
|
||||
|
||||
|
@ -13,8 +13,8 @@ namespace ScreenPlay {
|
||||
|
||||
class InstalledListFilter : public QSortFilterProxyModel {
|
||||
Q_OBJECT
|
||||
QML_ELEMENT
|
||||
|
||||
QML_UNCREATABLE("")
|
||||
|
||||
public:
|
||||
InstalledListFilter(const std::shared_ptr<InstalledListModel>& ilm);
|
||||
|
||||
|
@ -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)
|
||||
|
||||
|
@ -22,7 +22,7 @@ struct Profile;
|
||||
|
||||
class ProfileListModel : public QAbstractListModel {
|
||||
Q_OBJECT
|
||||
QML_ELEMENT
|
||||
QML_UNCREATABLE("")
|
||||
|
||||
public:
|
||||
explicit ProfileListModel(
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user