mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-12 23:35:33 +08:00
refs #608, simplified direct main window access.
Just set the corresponding components and you are done.
This commit is contained in:
committed by
Mathew Sutcliffe
parent
5a03d235cd
commit
8f33896e1c
@@ -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();
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user