mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-14 08:45:36 +08:00
refs #335, improved size handling for cockpit
* minimum values set to avoid issues when docked * no manual values when just toggled floating
This commit is contained in:
committed by
Roland Winklmeier
parent
f4e8b40bf9
commit
adba17da0f
@@ -48,13 +48,18 @@ namespace BlackGui
|
||||
//! Show or hide cockpit details
|
||||
void ps_onToggleShowHideDetails(bool show);
|
||||
|
||||
//! Toogle floating
|
||||
//! Toggle floating
|
||||
void ps_onToggleFloating(bool floating);
|
||||
|
||||
private:
|
||||
|
||||
// toggle area on show/hide details
|
||||
void toggleShowHideDetails(bool show, bool considerCurrentSize);
|
||||
|
||||
QScopedPointer<Ui::CCockpitComponent> ui;
|
||||
QSize m_sizeFloatingShown; //! size when info area is shown
|
||||
QSize m_sizeFloatingHidden; //! size when info area is hidden
|
||||
int m_minHeightInfoArea = -1; //! minimum height of the info area
|
||||
};
|
||||
|
||||
} // namespace
|
||||
|
||||
Reference in New Issue
Block a user