Remove (set but) unused member from QTimerPrivate
Change-Id: I004fef8ce84cdc74837f674239c05901000bee33 Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
This commit is contained in:
parent
755b0aa681
commit
26082a0dd2
@ -1,6 +1,6 @@
|
|||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
**
|
**
|
||||||
** Copyright (C) 2016 The Qt Company Ltd.
|
** Copyright (C) 2022 The Qt Company Ltd.
|
||||||
** Copyright (C) 2016 Intel Corporation.
|
** Copyright (C) 2016 Intel Corporation.
|
||||||
** Contact: https://www.qt.io/licensing/
|
** Contact: https://www.qt.io/licensing/
|
||||||
**
|
**
|
||||||
@ -60,7 +60,6 @@ public:
|
|||||||
int id = INV_TIMER;
|
int id = INV_TIMER;
|
||||||
Q_OBJECT_COMPAT_PROPERTY_WITH_ARGS(QTimerPrivate, int, inter, &QTimerPrivate::setInterval, 0)
|
Q_OBJECT_COMPAT_PROPERTY_WITH_ARGS(QTimerPrivate, int, inter, &QTimerPrivate::setInterval, 0)
|
||||||
Q_OBJECT_BINDABLE_PROPERTY_WITH_ARGS(QTimerPrivate, bool, single, false)
|
Q_OBJECT_BINDABLE_PROPERTY_WITH_ARGS(QTimerPrivate, bool, single, false)
|
||||||
bool nulltimer = false;
|
|
||||||
Q_OBJECT_BINDABLE_PROPERTY_WITH_ARGS(QTimerPrivate, Qt::TimerType, type, Qt::CoarseTimer)
|
Q_OBJECT_BINDABLE_PROPERTY_WITH_ARGS(QTimerPrivate, Qt::TimerType, type, Qt::CoarseTimer)
|
||||||
Q_OBJECT_COMPUTED_PROPERTY(QTimerPrivate, bool, isActiveData,
|
Q_OBJECT_COMPUTED_PROPERTY(QTimerPrivate, bool, isActiveData,
|
||||||
&QTimerPrivate::isActiveActualCalculation)
|
&QTimerPrivate::isActiveActualCalculation)
|
||||||
@ -239,7 +238,6 @@ void QTimer::start()
|
|||||||
Q_D(QTimer);
|
Q_D(QTimer);
|
||||||
if (d->id != INV_TIMER) // stop running timer
|
if (d->id != INV_TIMER) // stop running timer
|
||||||
stop();
|
stop();
|
||||||
d->nulltimer = (!d->inter && d->single);
|
|
||||||
d->id = QObject::startTimer(d->inter, d->type);
|
d->id = QObject::startTimer(d->inter, d->type);
|
||||||
d->isActiveData.notify();
|
d->isActiveData.notify();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user