mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-16 18:35:35 +08:00
Ref T573, status bar can resize text and added XPDR mode display
This commit is contained in:
committed by
Mat Sutcliffe
parent
6adfc6b93f
commit
19ac6d9285
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user