refs #335, changed info areas

* remove unused methods
* changed ui, preferred size and such
* changed ctor for CEnableForDockWidgetInfoArea and made setParentDockWidgetInfoArea virtual
* adjusted derived classes ctor
* added enum and area methods for cockpitinfoarea
This commit is contained in:
Klaus Basan
2014-10-16 03:06:08 +02:00
committed by Roland Winklmeier
parent 594df164a2
commit e6a5e2960f
13 changed files with 117 additions and 112 deletions

View File

@@ -24,20 +24,12 @@ namespace BlackGui
{
ui->setupUi(this);
initInfoArea();
if (this->statusBar())
{
this->statusBar()->hide();
}
this->ps_setTabBarPosition(QTabWidget::North);
}
CCockpitInfoAreaComponent::~CCockpitInfoAreaComponent()
{ }
void CCockpitInfoAreaComponent::toggleFloating()
{
CInfoArea::toggleFloating();
}
QSize CCockpitInfoAreaComponent::getPreferredSizeWhenFloating(int areaIndex) const
{
Q_UNUSED(areaIndex);
@@ -46,8 +38,16 @@ namespace BlackGui
const QPixmap &CCockpitInfoAreaComponent::indexToPixmap(int areaIndex) const
{
Q_UNUSED(areaIndex);
return CIcons::empty16();
InfoArea area = static_cast<InfoArea>(areaIndex);
switch (area)
{
case InfoAreaAudio:
return CIcons::appAudio16();
case InfoAreaVoiceRooms:
return CIcons::appVoiceRooms16();
default:
return CIcons::empty();
}
}
} // namespace