Fixes some issues with navigator widget to avoid Qt size warnings.

Remarks: Some but not all warnings are gone
This commit is contained in:
Klaus Basan
2015-05-02 00:37:38 +02:00
committed by Mathew Sutcliffe
parent 018c5ae1bf
commit 91f0b99cc5
9 changed files with 59 additions and 60 deletions

View File

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