Added click of callsign to open profile

This commit is contained in:
Jordan Sherer 2019-03-23 22:16:01 -04:00
parent 218c5b3d47
commit ce2c045458
2 changed files with 12 additions and 0 deletions

View File

@ -814,6 +814,15 @@ MainWindow::MainWindow(QDir const& temp_directory, bool multiple,
}); });
ui->labDialFreqOffset->installEventFilter(ldmp); ui->labDialFreqOffset->installEventFilter(ldmp);
// Hook up callsign label click to open preferenses
ui->labCallsign->setCursor(QCursor(Qt::PointingHandCursor));
auto clmp = new MousePressEater();
connect(clmp, &MousePressEater::mousePressed, this, [this](QObject *, QMouseEvent * e, bool *pProcessed){
openSettings(0);
if(pProcessed) *pProcessed = true;
});
ui->labCallsign->installEventFilter(clmp);
ui->bandComboBox->setVisible(false); ui->bandComboBox->setVisible(false);
ui->bandComboBox->setModel (m_config.frequencies ()); ui->bandComboBox->setModel (m_config.frequencies ());
ui->bandComboBox->setModelColumn (FrequencyList_v2::frequency_mhz_column); ui->bandComboBox->setModelColumn (FrequencyList_v2::frequency_mhz_column);

View File

@ -401,6 +401,9 @@ color : white;
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="mouseTracking">
<bool>true</bool>
</property>
<property name="styleSheet"> <property name="styleSheet">
<string notr="true">QLabel { <string notr="true">QLabel {
font-family: MS Shell Dlg 2; font-family: MS Shell Dlg 2;