From b4a59896aa32ab917d712dc55d6883c5a405bbbc Mon Sep 17 00:00:00 2001 From: Mark Watkins Date: Fri, 28 Oct 2011 13:50:03 +1000 Subject: [PATCH] I meant just the shift key. :) --- Graphs/gSummaryChart.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Graphs/gSummaryChart.cpp b/Graphs/gSummaryChart.cpp index 0059debe..fa695982 100644 --- a/Graphs/gSummaryChart.cpp +++ b/Graphs/gSummaryChart.cpp @@ -495,7 +495,7 @@ bool SummaryChart::mouseMoveEvent(QMouseEvent *event) bool SummaryChart::mousePressEvent(QMouseEvent * event) { - if (event->modifiers() && Qt::ShiftModifier) { + if (event->modifiers() & Qt::ShiftModifier) { //qDebug() << "Jump to daily view?"; return true; } @@ -512,7 +512,7 @@ bool SummaryChart::keyPressEvent(QKeyEvent * event) extern MainWindow *mainwin; bool SummaryChart::mouseReleaseEvent(QMouseEvent * event) { - if (event->modifiers() && Qt::ShiftModifier) { + if (event->modifiers() & Qt::ShiftModifier) { QDateTime d=QDateTime::fromTime_t(hl_day*86400).toUTC(); mainwin->getDaily()->LoadDate(d.date()); mainwin->JumpDaily();