mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-05 01:05:34 +08:00
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:
committed by
Roland Winklmeier
parent
594df164a2
commit
e6a5e2960f
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user