diff --git a/mainwindow.cpp b/mainwindow.cpp index a2ff5a4..79fee3e 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -814,6 +814,15 @@ MainWindow::MainWindow(QDir const& temp_directory, bool multiple, }); 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->setModel (m_config.frequencies ()); ui->bandComboBox->setModelColumn (FrequencyList_v2::frequency_mhz_column); diff --git a/mainwindow.ui b/mainwindow.ui index b48fc41..eaa32ab 100644 --- a/mainwindow.ui +++ b/mainwindow.ui @@ -401,6 +401,9 @@ color : white; 0 + + true + QLabel { font-family: MS Shell Dlg 2;