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:
Klaus Basan
2019-03-19 19:03:21 +01:00
committed by Mat Sutcliffe
parent 22d67d31a4
commit e463689490
9 changed files with 44 additions and 17 deletions

View File

@@ -48,14 +48,18 @@ namespace BlackGui
//! Set the spacing
void setSpacing(int spacing);
signals:
//! Mode changed
void transponderModeChanged();
protected:
//! \copydoc QWidget::resizeEvent
virtual void resizeEvent(QResizeEvent *event) override;
private:
QScopedPointer<Ui::CInfoBarStatusComponent> ui;
BlackCore::CActionBind m_actionPtt { "/Voice/Activate push-to-talk", BlackMisc::CIcons::radio16(), this, &CInfoBarStatusComponent::onPttChanged };
BlackMisc::CDigestSignal m_dsResize { this, &CInfoBarStatusComponent::adjustTextSize, 1000, 25 };
BlackCore::CActionBind m_actionPtt { "/Voice/Activate push-to-talk", BlackMisc::CIcons::radio16(), this, &CInfoBarStatusComponent::onPttChanged };
BlackMisc::CDigestSignal m_dsResize { this, &CInfoBarStatusComponent::adjustTextSize, 1000, 50 };
//! Init the LEDs
void initLeds();