mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-18 11:25:33 +08:00
Fixed several issues detected during testing / review (refs #304)
* MS report 1-5 https://dev.vatsim-germany.org/issues/304#change-1800 * Clang warning https://dev.vatsim-germany.org/boards/22/topics/1982?r=1997#message-1997 * Wrong indexes for dockable widgets, RW: https://dev.vatsim-germany.org/issues/304#note-13 * Fixed wrong offset in Fsuipc class * Improved position handling for floating widgets opened 1st time
This commit is contained in:
@@ -139,11 +139,8 @@ namespace BlackGui
|
||||
//! Corresponding dockable widgets
|
||||
QList<CDockWidgetInfoArea *> dockableWidgets() const;
|
||||
|
||||
//! Corresponding dockable widget
|
||||
CDockWidgetInfoArea *getDockableWidgetByIndex(int index) const;
|
||||
|
||||
//! Selected dockable widget
|
||||
CDockWidgetInfoArea *selectedDockableWidget() const;
|
||||
//! Corresponding dockable widget for given tab index
|
||||
CDockWidgetInfoArea *getDockableWidgetByTabIndex(int tabBarIndex) const;
|
||||
|
||||
//! Features of the dockable widgets
|
||||
void setFeaturesForDockableWidgets(QDockWidget::DockWidgetFeatures features);
|
||||
@@ -167,14 +164,14 @@ namespace BlackGui
|
||||
void setMarginsWhenDocked(int left, int top, int right, int bottom);
|
||||
|
||||
//! Set window sizes when floating
|
||||
void setPreferredSizesWhenFloating();
|
||||
static QSize getPreferredSizeWhenFloating(InfoArea area);
|
||||
|
||||
//! Info area to icon
|
||||
static const QPixmap &infoAreaToPixmap(InfoArea infoArea);
|
||||
|
||||
private slots:
|
||||
//! Tab bar has been double clicked
|
||||
void ps_tabBarDoubleClicked(int index);
|
||||
void ps_tabBarDoubleClicked(int tabBarIndex);
|
||||
|
||||
//! A widget has changed its top level
|
||||
void ps_onWidgetTopLevelChanged(CDockWidget *widget, bool topLevel);
|
||||
|
||||
Reference in New Issue
Block a user