Adjust to QObjectCompatProperty API changes
Change-Id: I600415cc7e472fb753e83fafbc89f074d13676d7 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
This commit is contained in:
parent
2da53b0916
commit
a6cde06936
|
@ -9241,14 +9241,14 @@ struct ClassWithQCompatProperty : public QObject
|
|||
Q_PROPERTY(int value2 READ value2 WRITE setValue2 BINDABLE bindableValue2)
|
||||
public:
|
||||
QBindable<int> bindableValue() {return &m_value;}
|
||||
void resetValue() { m_value.setValue(2); }
|
||||
void resetValue() { m_value = 2; m_value.notify(); }
|
||||
int value() { return m_value; }
|
||||
void setValue(int i) { m_value.setValue(i); }
|
||||
void setValue(int i) { m_value = i; m_value.notify(); }
|
||||
Q_OBJECT_COMPAT_PROPERTY(ClassWithQCompatProperty, int, m_value, &ClassWithQCompatProperty::setValue);
|
||||
|
||||
QBindable<int> bindableValue2() {return &m_value2;}
|
||||
int value2() { return m_value2; }
|
||||
void setValue2(int i) { m_value2.setValue(i); }
|
||||
void setValue2(int i) { m_value2 = i; m_value2.notify(); }
|
||||
Q_OBJECT_COMPAT_PROPERTY(ClassWithQCompatProperty, int, m_value2, &ClassWithQCompatProperty::setValue2);
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue