Correct datatype to qint64 for value returned from QElapsedTimer::elapsed
Was incorrectly passed to a quint64.
This commit is contained in:
parent
a64fd14f9a
commit
89b28c32da
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue