[UI] Default sizes for dock widgets plus some smaller fixes:

* renamings
* reset all to defaults
* sizes
This commit is contained in:
Klaus Basan
2020-04-15 16:27:39 +02:00
committed by Mat Sutcliffe
parent 465c8fd81d
commit df69ef47a0
6 changed files with 27 additions and 10 deletions

View File

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

View File

@@ -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();

View File

@@ -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);
}
}