refs #608, allow to select log component (attention) when required. This is needed for direct window access to display console messages directly.

This commit is contained in:
Klaus Basan
2016-03-02 18:54:31 +01:00
committed by Mathew Sutcliffe
parent 81299b4d16
commit 5a03d235cd
6 changed files with 31 additions and 6 deletions

View File

@@ -26,8 +26,9 @@ namespace BlackGui
ui(new Ui::CMainInfoAreaComponent)
{
ui->setupUi(this);
initInfoArea(); // init base class
this->setWindowIcon(CIcons::swift24());
CInfoArea::initInfoArea(); // init base class
this->setWindowIcon(CIcons::swift48());
connect(this->getLogComponent(), &CLogComponent::requestAttention, this, &CMainInfoAreaComponent::selectLog);
}
CMainInfoAreaComponent::~CMainInfoAreaComponent()
@@ -95,6 +96,11 @@ namespace BlackGui
this->selectArea(InfoAreaLog);
}
void CMainInfoAreaComponent::selectLog()
{
this->selectArea(InfoAreaLog);
}
QSize CMainInfoAreaComponent::getPreferredSizeWhenFloating(int areaIndex) const
{
InfoArea area = static_cast<InfoArea>(areaIndex);