refs #608, simplified direct main window access.

Just set the corresponding components and you are done.
This commit is contained in:
Klaus Basan
2016-03-13 18:20:52 +00:00
committed by Mathew Sutcliffe
parent 5a03d235cd
commit 8f33896e1c
4 changed files with 74 additions and 4 deletions

View File

@@ -36,6 +36,10 @@ CSwiftCore::CSwiftCore(QWidget *parent) :
setSystemTrayMode(MinimizeToTray | QuitOnClose);
setSystemTrayToolTip(name);
this->m_mwaLogComponent = this->ui->comp_InfoArea->getLogComponent();
this->m_mwaOverlayFrame = nullptr;
this->m_mwaStatusBar = nullptr;
initLogDisplay();
initSlots();
initStyleSheet();

View File

@@ -12,8 +12,9 @@
#ifndef SWIFTCORE_H
#define SWIFTCORE_H
#include "blackcore/corefacade.h"
#include "blackgui/systemtraywindow.h"
#include "blackgui/mainwindowaccess.h"
#include "blackcore/corefacade.h"
#include "blackmisc/statusmessage.h"
#include "blackmisc/identifiable.h"
@@ -24,6 +25,7 @@ namespace Ui { class CSwiftCore; }
//! swift core control
class CSwiftCore :
public BlackGui::CSystemTrayWindow,
public BlackGui::IMainWindowAccess,
public BlackMisc::CIdentifiable
{
Q_OBJECT