mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-31 21:15:33 +08:00
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:
committed by
Mathew Sutcliffe
parent
81299b4d16
commit
5a03d235cd
@@ -37,6 +37,7 @@ namespace BlackGui
|
||||
connect(ui->comp_Mapping, &CDbMappingComponent::requestUpdatedData, ui->comp_DataInfoArea, &CDataInfoAreaComponent::requestUpdatedData);
|
||||
|
||||
connect(ui->comp_DataInfoArea->getModelComponent(), &CDbModelComponent::requestStash, ui->comp_Mapping, &CDbMappingComponent::stashModels);
|
||||
connect(ui->comp_Log, &CLogComponent::requestAttention, this, &CDataMainInfoAreaComponent::selectLog);
|
||||
}
|
||||
|
||||
CDataMainInfoAreaComponent::~CDataMainInfoAreaComponent()
|
||||
@@ -69,6 +70,11 @@ namespace BlackGui
|
||||
this->getLogComponent()->displayConsole();
|
||||
}
|
||||
|
||||
void CDataMainInfoAreaComponent::selectLog()
|
||||
{
|
||||
this->selectArea(InfoAreaLog);
|
||||
}
|
||||
|
||||
QSize CDataMainInfoAreaComponent::getPreferredSizeWhenFloating(int areaIndex) const
|
||||
{
|
||||
InfoArea area = static_cast<InfoArea>(areaIndex);
|
||||
|
||||
Reference in New Issue
Block a user