I meant just the shift key. :)

This commit is contained in:
Mark Watkins 2011-10-28 13:50:03 +10:00
parent 32482c6083
commit b4a59896aa

View File

@ -495,7 +495,7 @@ bool SummaryChart::mouseMoveEvent(QMouseEvent *event)
bool SummaryChart::mousePressEvent(QMouseEvent * event) bool SummaryChart::mousePressEvent(QMouseEvent * event)
{ {
if (event->modifiers() && Qt::ShiftModifier) { if (event->modifiers() & Qt::ShiftModifier) {
//qDebug() << "Jump to daily view?"; //qDebug() << "Jump to daily view?";
return true; return true;
} }
@ -512,7 +512,7 @@ bool SummaryChart::keyPressEvent(QKeyEvent * event)
extern MainWindow *mainwin; extern MainWindow *mainwin;
bool SummaryChart::mouseReleaseEvent(QMouseEvent * event) bool SummaryChart::mouseReleaseEvent(QMouseEvent * event)
{ {
if (event->modifiers() && Qt::ShiftModifier) { if (event->modifiers() & Qt::ShiftModifier) {
QDateTime d=QDateTime::fromTime_t(hl_day*86400).toUTC(); QDateTime d=QDateTime::fromTime_t(hl_day*86400).toUTC();
mainwin->getDaily()->LoadDate(d.date()); mainwin->getDaily()->LoadDate(d.date());
mainwin->JumpDaily(); mainwin->JumpDaily();