QKeySequenceEdit: remove RESET function from keySequence Q_PROPERTY
A RESET function is only needed if the default value of the property cannot be set with the normal setter. This is not the case here, as clear() is the same as setKeySequence(QKeySequence()). Change-Id: Ib751677436ebdcec0a7951dceae1e0f0323500ff Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com> Reviewed-by: Lars Knoll <lars.knoll@digia.com>
This commit is contained in:
parent
3396ba5612
commit
6b8c5ba678
@ -53,7 +53,7 @@ class QKeySequenceEditPrivate;
|
|||||||
class Q_WIDGETS_EXPORT QKeySequenceEdit : public QWidget
|
class Q_WIDGETS_EXPORT QKeySequenceEdit : public QWidget
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
Q_PROPERTY(QKeySequence keySequence READ keySequence WRITE setKeySequence RESET clear NOTIFY keySequenceChanged USER true)
|
Q_PROPERTY(QKeySequence keySequence READ keySequence WRITE setKeySequence NOTIFY keySequenceChanged USER true)
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit QKeySequenceEdit(QWidget *parent = 0);
|
explicit QKeySequenceEdit(QWidget *parent = 0);
|
||||||
|
Loading…
Reference in New Issue
Block a user