Fix snippet bug in State Machine Overview
Cherry-pick of b0facd481a2fc119d87c85481d97357d814a5fd2 from the qtdoc repository. Task-number: QTBUG-25314 Change-Id: I2166db46399ea6da8cadf02a7f65738c0c252142 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
parent
b4adefd572
commit
0e59c75e7c
@ -55,12 +55,14 @@ struct StringEvent : public QEvent
|
||||
//![1]
|
||||
class StringTransition : public QAbstractTransition
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
StringTransition(const QString &value)
|
||||
: m_value(value) {}
|
||||
|
||||
protected:
|
||||
virtual bool eventTest(QEvent *e) const
|
||||
virtual bool eventTest(QEvent *e)
|
||||
{
|
||||
if (e->type() != QEvent::Type(QEvent::User+1)) // StringEvent
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user