mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-01 21:56:43 +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
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user