Correct datatype to qint64 for value returned from QElapsedTimer::elapsed

Was incorrectly passed to a quint64.
This commit is contained in:
Martin Gräßlin 2016-06-29 10:52:43 +02:00
parent a64fd14f9a
commit 89b28c32da

View file

@ -1462,7 +1462,7 @@ bool AbstractClient::processDecorationButtonPress(QMouseEvent *event, bool ignor
// check whether it is a double click
if (event->button() == Qt::LeftButton && titlebarPositionUnderMouse()) {
if (m_decoration.doubleClickTimer.isValid()) {
const quint64 interval = m_decoration.doubleClickTimer.elapsed();
const qint64 interval = m_decoration.doubleClickTimer.elapsed();
m_decoration.doubleClickTimer.invalidate();
if (interval > QGuiApplication::styleHints()->mouseDoubleClickInterval()) {
m_decoration.doubleClickTimer.invalidate(); // expired -> new first click and pot. init