mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Added the left / right shortcuts for moving the handlers around in time.
Added the left / right shortcuts for moving the handlers around in time, this also made me wonder why we have the 'previous dc' on the menu, it got actually to broke my code on the shortcuts for the planner because they are active everytime - should they be active only when the profile's visible or they serve any other purpose? If they serve only for the profile, I'll get them out of the menu and put them in their proper place - the profile view. Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
This commit is contained in:
parent
52fd769efb
commit
bb33be4117
4 changed files with 78 additions and 1 deletions
|
@ -221,13 +221,27 @@ void MainWindow::on_actionPrint_triggered()
|
|||
qDebug("actionPrint");
|
||||
}
|
||||
|
||||
void MainWindow::disableDcShortcuts()
|
||||
{
|
||||
ui->actionPreviousDC->setShortcut(QKeySequence());
|
||||
ui->actionNextDC->setShortcut(QKeySequence());
|
||||
}
|
||||
|
||||
void MainWindow::enableDcShortcuts()
|
||||
{
|
||||
ui->actionPreviousDC->setShortcut(Qt::Key_Left);
|
||||
ui->actionNextDC->setShortcut(Qt::Key_Right);
|
||||
}
|
||||
|
||||
void MainWindow::on_actionDivePlanner_triggered()
|
||||
{
|
||||
disableDcShortcuts();
|
||||
ui->stackedWidget->setCurrentIndex(1);
|
||||
}
|
||||
|
||||
void MainWindow::showProfile()
|
||||
{
|
||||
enableDcShortcuts();
|
||||
ui->stackedWidget->setCurrentIndex(0);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue