mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-05 10:40:42 +00:00
I meant just the shift key. :)
This commit is contained in:
parent
32482c6083
commit
b4a59896aa
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user