comparison src/main.cpp @ 222:5406b8664f00

Add keyboard shortcut ctrl+t for opening the transactions list.
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 07 Mar 2018 14:47:25 +0200
parents c3f47d489097
children c0dfbbd67692
comparison
equal deleted inserted replaced
221:4612cf95007b 222:5406b8664f00
457 new QShortcut(QKeySequence(Qt::Key_PageDown), this, SLOT(selectRowNext())); 457 new QShortcut(QKeySequence(Qt::Key_PageDown), this, SLOT(selectRowNext()));
458 458
459 new QShortcut(QKeySequence(Qt::CTRL + Qt::Key_Return), this, SLOT(focusDebtEdit())); 459 new QShortcut(QKeySequence(Qt::CTRL + Qt::Key_Return), this, SLOT(focusDebtEdit()));
460 460
461 new QShortcut(QKeySequence(Qt::CTRL + Qt::Key_P), this, SLOT(on_button_Print_clicked())); 461 new QShortcut(QKeySequence(Qt::CTRL + Qt::Key_P), this, SLOT(on_button_Print_clicked()));
462 new QShortcut(QKeySequence(Qt::CTRL + Qt::Key_T), this, SLOT(on_button_ViewTransactions_clicked()));
462 463
463 // Check for latest successful backup time 464 // Check for latest successful backup time
464 qint64 threshold = 7; 465 qint64 threshold = 7;
465 qint64 delta = settings.dbLastBackup.msecsTo(QDateTime::currentDateTimeUtc()); 466 qint64 delta = settings.dbLastBackup.msecsTo(QDateTime::currentDateTimeUtc());
466 if (settings.dbBackupMode != BACKUP_NONE && 467 if (settings.dbBackupMode != BACKUP_NONE &&