mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-24 10:52:56 +00:00
QGesturePrivate cleanup
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
This commit is contained in:
parent
216c5b26d3
commit
4513c60296
2 changed files with 5 additions and 5 deletions
|
@ -205,13 +205,13 @@ void QGesture::unsetHotSpot()
|
|||
void QGesture::setGestureCancelPolicy(GestureCancelPolicy policy)
|
||||
{
|
||||
Q_D(QGesture);
|
||||
d->gestureCancelPolicy = static_cast<uint>(policy);
|
||||
d->gestureCancelPolicy = policy;
|
||||
}
|
||||
|
||||
QGesture::GestureCancelPolicy QGesture::gestureCancelPolicy() const
|
||||
{
|
||||
Q_D(const QGesture);
|
||||
return static_cast<GestureCancelPolicy>(d->gestureCancelPolicy);
|
||||
return d->gestureCancelPolicy;
|
||||
}
|
||||
|
||||
/*!
|
||||
|
|
|
@ -70,7 +70,7 @@ class QGesturePrivate : public QObjectPrivate
|
|||
public:
|
||||
QGesturePrivate()
|
||||
: gestureType(Qt::CustomGesture), state(Qt::NoGesture),
|
||||
isHotSpotSet(false), gestureCancelPolicy(0)
|
||||
isHotSpotSet(false), gestureCancelPolicy(QGesture::GestureCancelPolicy::CancelNone)
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -78,8 +78,8 @@ public:
|
|||
Qt::GestureState state;
|
||||
QPointF hotSpot;
|
||||
QPointF sceneHotSpot;
|
||||
uint isHotSpotSet : 1;
|
||||
uint gestureCancelPolicy : 2;
|
||||
bool isHotSpotSet;
|
||||
QGesture::GestureCancelPolicy gestureCancelPolicy;
|
||||
};
|
||||
|
||||
class QPanGesturePrivate : public QGesturePrivate
|
||||
|
|
Loading…
Add table
Reference in a new issue