mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-29 12:45:40 +08:00
Ref T731, moved AFV station model and client to BlackCore::Afv
* the QML map can also be used in dialog * ATC station list also can be used in BlackCore
This commit is contained in:
committed by
Mat Sutcliffe
parent
66b02e61c5
commit
992d624c18
@@ -8,8 +8,15 @@
|
||||
|
||||
//! \file
|
||||
|
||||
#include "blackcore/afv/clients/afvclient.h"
|
||||
#include "blackcore/afv/model/afvmapreader.h"
|
||||
|
||||
#include "afvmapdialog.h"
|
||||
#include "ui_afvmapdialog.h"
|
||||
#include <QQmlContext>
|
||||
|
||||
using namespace BlackCore::Afv::Model;
|
||||
using namespace BlackCore::Afv::Clients;
|
||||
|
||||
namespace BlackGui
|
||||
{
|
||||
@@ -20,6 +27,13 @@ namespace BlackGui
|
||||
ui(new Ui::CAfvMapDialog)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
m_afvMapReader = new CAfvMapReader(this);
|
||||
m_afvMapReader->updateFromMap();
|
||||
m_afvClient = new CAfvClient("https://voice1.vatsim.uk");
|
||||
|
||||
QQmlContext *ctxt = ui->qw_AfvMap->rootContext();
|
||||
ctxt->setContextProperty("afvMapReader", m_afvMapReader);
|
||||
ctxt->setContextProperty("voiceClient", m_afvClient);
|
||||
}
|
||||
|
||||
CAfvMapDialog::~CAfvMapDialog() { }
|
||||
|
||||
Reference in New Issue
Block a user