Added click of callsign to open profile
This commit is contained in:
parent
218c5b3d47
commit
ce2c045458
@ -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);
|
||||
|
@ -401,6 +401,9 @@ color : white;
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="mouseTracking">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="styleSheet">
|
||||
<string notr="true">QLabel {
|
||||
font-family: MS Shell Dlg 2;
|
||||
|
Loading…
Reference in New Issue
Block a user