Ref T573, status bar can resize text and added XPDR mode display

This commit is contained in:
Klaus Basan
2019-03-19 05:39:36 +01:00
committed by Mat Sutcliffe
parent 6adfc6b93f
commit 19ac6d9285
3 changed files with 53 additions and 18 deletions

View File

@@ -48,13 +48,21 @@ namespace BlackGui
//! Set the spacing
void setSpacing(int spacing);
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 };
//! Init the LEDs
void initLeds();
//! Init labels
void adjustTextSize();
//! Simulator connection has been changed
void onSimulatorStatusChanged(int status);
@@ -84,4 +92,5 @@ namespace BlackGui
};
} // ns
} // ns
#endif // guard