mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-31 04:25:35 +08:00
[UI] Default sizes for dock widgets plus some smaller fixes:
* renamings * reset all to defaults * sizes
This commit is contained in:
committed by
Mat Sutcliffe
parent
465c8fd81d
commit
df69ef47a0
@@ -75,7 +75,7 @@ namespace BlackGui
|
||||
if (!this->isParentDockWidgetFloating()) { return; }
|
||||
|
||||
// manually setting size, all other approaches failed
|
||||
static const QSize defaultSizeShown(300, 400);
|
||||
static const QSize defaultSizeShown(500, 600);
|
||||
static const QSize defaultSizeHidden(300, 150);
|
||||
|
||||
// keep old size
|
||||
|
||||
@@ -35,13 +35,14 @@ namespace BlackGui
|
||||
|
||||
QSize CCockpitInfoAreaComponent::getPreferredSizeWhenFloating(int areaIndex) const
|
||||
{
|
||||
// see also CMainInfoAreaComponent::getPreferredSizeWhenFloating
|
||||
Q_UNUSED(areaIndex)
|
||||
return QSize(600, 400);
|
||||
}
|
||||
|
||||
const QPixmap &CCockpitInfoAreaComponent::indexToPixmap(int areaIndex) const
|
||||
{
|
||||
InfoArea area = static_cast<InfoArea>(areaIndex);
|
||||
const InfoArea area = static_cast<InfoArea>(areaIndex);
|
||||
switch (area)
|
||||
{
|
||||
case InfoAreaAudio: return CIcons::appAudio16();
|
||||
|
||||
@@ -156,7 +156,6 @@ namespace BlackGui
|
||||
case InfoAreaUsers:
|
||||
case InfoAreaLog:
|
||||
case InfoAreaSimulator:
|
||||
return QSize(400, 300);
|
||||
case InfoAreaMapping:
|
||||
case InfoAreaInterpolation:
|
||||
case InfoAreaSettings:
|
||||
@@ -165,9 +164,9 @@ namespace BlackGui
|
||||
case InfoAreaRadar:
|
||||
return QSize(600, 400);
|
||||
case InfoAreaFlightPlan:
|
||||
return QSize(625, 500);
|
||||
return QSize(800, 600);
|
||||
default:
|
||||
return QSize(400, 300);
|
||||
return QSize(600, 400);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user