Added callsign label to main window
This commit is contained in:
parent
ceaa76c497
commit
fa00e0dfd6
@ -1318,6 +1318,8 @@ void MainWindow::readSettings()
|
|||||||
{
|
{
|
||||||
m_settings->beginGroup("MainWindow");
|
m_settings->beginGroup("MainWindow");
|
||||||
restoreGeometry (m_settings->value ("geometry", saveGeometry ()).toByteArray ());
|
restoreGeometry (m_settings->value ("geometry", saveGeometry ()).toByteArray ());
|
||||||
|
setMinimumSize(800, 545);
|
||||||
|
|
||||||
m_geometryNoControls = m_settings->value ("geometryNoControls",saveGeometry()).toByteArray();
|
m_geometryNoControls = m_settings->value ("geometryNoControls",saveGeometry()).toByteArray();
|
||||||
restoreState (m_settings->value ("state", saveState ()).toByteArray ());
|
restoreState (m_settings->value ("state", saveState ()).toByteArray ());
|
||||||
ui->dxCallEntry->setText (m_settings->value ("DXcall", QString {}).toString ());
|
ui->dxCallEntry->setText (m_settings->value ("DXcall", QString {}).toString ());
|
||||||
@ -4223,6 +4225,7 @@ void MainWindow::guiUpdate()
|
|||||||
auto delta = t.secsTo(m_nextBeacon);
|
auto delta = t.secsTo(m_nextBeacon);
|
||||||
auto beacon = ui->beaconButton->isChecked() ? delta > 0 ? QString("%1 s").arg(delta) : "queued!" : m_nextBeaconPaused ? "paused" : "disabled";
|
auto beacon = ui->beaconButton->isChecked() ? delta > 0 ? QString("%1 s").arg(delta) : "queued!" : m_nextBeaconPaused ? "paused" : "disabled";
|
||||||
ui->labBeacon->setText(QString("Next Beacon: %1").arg(beacon));
|
ui->labBeacon->setText(QString("Next Beacon: %1").arg(beacon));
|
||||||
|
ui->labCallsign->setText(m_config.my_callsign());
|
||||||
|
|
||||||
if(!m_monitoring and !m_diskData) {
|
if(!m_monitoring and !m_diskData) {
|
||||||
ui->signal_meter_widget->setValue(0,0);
|
ui->signal_meter_widget->setValue(0,0);
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>960</width>
|
<width>960</width>
|
||||||
<height>544</height>
|
<height>545</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
@ -320,6 +320,20 @@ o</string>
|
|||||||
</property>
|
</property>
|
||||||
</spacer>
|
</spacer>
|
||||||
</item>
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QLabel" name="labCallsign">
|
||||||
|
<property name="styleSheet">
|
||||||
|
<string notr="true">QLabel { color:white; }
|
||||||
|
</string>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string/>
|
||||||
|
</property>
|
||||||
|
<property name="alignment">
|
||||||
|
<set>Qt::AlignCenter</set>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QLabel" name="labUTC">
|
<widget class="QLabel" name="labUTC">
|
||||||
<property name="sizePolicy">
|
<property name="sizePolicy">
|
||||||
@ -328,6 +342,12 @@ o</string>
|
|||||||
<verstretch>0</verstretch>
|
<verstretch>0</verstretch>
|
||||||
</sizepolicy>
|
</sizepolicy>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="font">
|
||||||
|
<font>
|
||||||
|
<family>MS Shell Dlg 2</family>
|
||||||
|
<pointsize>14</pointsize>
|
||||||
|
</font>
|
||||||
|
</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;
|
||||||
|
Loading…
Reference in New Issue
Block a user