mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-31 21:15:33 +08:00
Ref T573, allow different color in XPDR mode component from stylesheet
* changed signal to trigger reload of stylesheet (only way to update dynamic properties) * made infobar left aligned (and not spacer aligned), better scaling * adjusted qss
This commit is contained in:
committed by
Mat Sutcliffe
parent
22d67d31a4
commit
e463689490
@@ -7,6 +7,7 @@
|
||||
*/
|
||||
|
||||
#include "blackgui/components/infobarstatuscomponent.h"
|
||||
#include "blackgui/components/transpondermodecomponent.h"
|
||||
#include "blackgui/guiapplication.h"
|
||||
#include "blackgui/led.h"
|
||||
#include "blackgui/guiutility.h"
|
||||
@@ -49,7 +50,8 @@ namespace BlackGui
|
||||
this->adjustTextSize();
|
||||
|
||||
ui->lbl_Audio->setContextMenuPolicy(Qt::CustomContextMenu);
|
||||
connect(ui->lbl_Audio, &QLabel::customContextMenuRequested, this, &CInfoBarStatusComponent::onCustomAudioContextMenuRequested);
|
||||
connect(ui->lbl_Audio, &QLabel::customContextMenuRequested, this, &CInfoBarStatusComponent::onCustomAudioContextMenuRequested);
|
||||
connect(ui->comp_XpdrMode, &CTransponderModeComponent::changed, this, &CInfoBarStatusComponent::transponderModeChanged);
|
||||
|
||||
Q_ASSERT_X(sGui, Q_FUNC_INFO, "Need sGui");
|
||||
if (sGui->getIContextSimulator())
|
||||
|
||||
Reference in New Issue
Block a user