Added keyboard shortcuts to the basic Show actions. Added show action to disable tooltips
This commit is contained in:
parent
f92b3db5ea
commit
c0d08f87b6
@ -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<QChildEvent *> (event)->child ());
|
||||
break;
|
||||
|
||||
case QEvent::ToolTip:
|
||||
if(!ui->actionShow_Tooltips->isChecked()){
|
||||
return true;
|
||||
}
|
||||
|
||||
break;
|
||||
|
||||
default: break;
|
||||
}
|
||||
return QObject::eventFilter(object, event);
|
||||
|
@ -4854,6 +4854,7 @@ list. The list can be maintained in Settings (F2).</string>
|
||||
<property name="title">
|
||||
<string>&View</string>
|
||||
</property>
|
||||
<addaction name="actionShow_Tooltips"/>
|
||||
<addaction name="actionShow_Frequency_Clock"/>
|
||||
<addaction name="separator"/>
|
||||
<addaction name="actionShow_Band_Activity"/>
|
||||
@ -5561,6 +5562,9 @@ list. The list can be maintained in Settings (F2).</string>
|
||||
<property name="text">
|
||||
<string>Show Band Activity</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string>F7</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionShow_Call_Activity">
|
||||
<property name="checkable">
|
||||
@ -5572,6 +5576,9 @@ list. The list can be maintained in Settings (F2).</string>
|
||||
<property name="text">
|
||||
<string>Show Call Activity</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string>F8</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionShow_Waterfall">
|
||||
<property name="checkable">
|
||||
@ -5583,6 +5590,9 @@ list. The list can be maintained in Settings (F2).</string>
|
||||
<property name="text">
|
||||
<string>Show Waterfall</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string>F4</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionReset_Window_Sizes">
|
||||
<property name="text">
|
||||
@ -5665,6 +5675,20 @@ list. The list can be maintained in Settings (F2).</string>
|
||||
<property name="text">
|
||||
<string>Show Frequency && Clock</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string>F3</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionShow_Tooltips">
|
||||
<property name="checkable">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="checked">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Show Tooltips</string>
|
||||
</property>
|
||||
</action>
|
||||
</widget>
|
||||
<layoutdefault spacing="6" margin="11"/>
|
||||
|
Loading…
Reference in New Issue
Block a user