From c0d08f87b6ded7caae01e65c195431e459ea7f8d Mon Sep 17 00:00:00 2001 From: Jordan Sherer Date: Tue, 13 Nov 2018 12:35:39 -0500 Subject: [PATCH] Added keyboard shortcuts to the basic Show actions. Added show action to disable tooltips --- mainwindow.cpp | 9 +++++++++ mainwindow.ui | 24 ++++++++++++++++++++++++ 2 files changed, 33 insertions(+) diff --git a/mainwindow.cpp b/mainwindow.cpp index 9f9d444..fc9d0f2 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -1706,6 +1706,7 @@ void MainWindow::writeSettings() m_settings->setValue("ShowTimeDrift", ui->driftSyncFrame->isVisible()); m_settings->setValue("TimeDrift", ui->driftSpinBox->value()); m_settings->setValue("SelCal", ui->selcalButton->isChecked()); + m_settings->setValue("ShowTooltips", ui->actionShow_Tooltips->isChecked()); m_settings->endGroup(); @@ -1817,6 +1818,7 @@ void MainWindow::readSettings() ui->driftSyncFrame->setVisible(m_settings->value("ShowTimeDrift", false).toBool()); ui->driftSpinBox->setValue(m_settings->value("TimeDrift", 0).toInt()); ui->selcalButton->setChecked(m_settings->value("SelCal", false).toBool()); + ui->actionShow_Tooltips->setChecked(m_settings->value("ShowTooltips", true).toBool()); m_settings->endGroup(); @@ -2729,6 +2731,13 @@ bool MainWindow::eventFilter (QObject * object, QEvent * event) remove_child_from_event_filter (static_cast (event)->child ()); break; + case QEvent::ToolTip: + if(!ui->actionShow_Tooltips->isChecked()){ + return true; + } + + break; + default: break; } return QObject::eventFilter(object, event); diff --git a/mainwindow.ui b/mainwindow.ui index 05aed1a..ade9eb6 100644 --- a/mainwindow.ui +++ b/mainwindow.ui @@ -4854,6 +4854,7 @@ list. The list can be maintained in Settings (F2). &View + @@ -5561,6 +5562,9 @@ list. The list can be maintained in Settings (F2). Show Band Activity + + F7 + @@ -5572,6 +5576,9 @@ list. The list can be maintained in Settings (F2). Show Call Activity + + F8 + @@ -5583,6 +5590,9 @@ list. The list can be maintained in Settings (F2). Show Waterfall + + F4 + @@ -5665,6 +5675,20 @@ list. The list can be maintained in Settings (F2). Show Frequency && Clock + + F3 + + + + + true + + + true + + + Show Tooltips +