mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-03 07:35:48 +08:00
Fixes some issues with navigator widget to avoid Qt size warnings.
Remarks: Some but not all warnings are gone
This commit is contained in:
committed by
Mathew Sutcliffe
parent
018c5ae1bf
commit
91f0b99cc5
@@ -42,25 +42,20 @@ namespace BlackGui
|
||||
InfoArea area = static_cast<InfoArea>(areaIndex);
|
||||
switch (area)
|
||||
{
|
||||
case InfoAreaHorizontalNavigator:
|
||||
return QSize(400, 50);
|
||||
case InfoAreaVerticalNavigator:
|
||||
return QSize(50, 400);
|
||||
case InfoAreaNavigator:
|
||||
{
|
||||
return this->ui->comp_Navigator->minimumSize();
|
||||
}
|
||||
default:
|
||||
Q_ASSERT_X(false, Q_FUNC_INFO, "Unknown index for invisible info area");
|
||||
return QSize(0, 0);
|
||||
}
|
||||
}
|
||||
|
||||
const QPixmap &CInvisibleInfoAreaComponent::indexToPixmap(int areaIndex) const
|
||||
{
|
||||
InfoArea area = static_cast<InfoArea>(areaIndex);
|
||||
switch (area)
|
||||
{
|
||||
case InfoAreaHorizontalNavigator:
|
||||
case InfoAreaVerticalNavigator:
|
||||
default:
|
||||
return CIcons::empty();
|
||||
}
|
||||
Q_UNUSED(areaIndex);
|
||||
return CIcons::empty();
|
||||
}
|
||||
|
||||
CNavigatorDockWidget *CInvisibleInfoAreaComponent::getNavigatorComponent()
|
||||
|
||||
Reference in New Issue
Block a user