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:
Klaus Basan
2014-11-07 19:25:53 +01:00
committed by Roland Winklmeier
parent f4e8b40bf9
commit adba17da0f
5 changed files with 52 additions and 32 deletions

View File

@@ -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