|
@ -27,15 +27,16 @@ |
|
|
#include <QQmlComponent> |
|
|
#include <QQmlComponent> |
|
|
#include <QQmlContext> |
|
|
#include <QQmlContext> |
|
|
#include <QQmlApplicationEngine> |
|
|
#include <QQmlApplicationEngine> |
|
|
#include <QQuickWindow> |
|
|
#include <QWindow> |
|
|
#include "CodeModel.h" |
|
|
#include "CodeModel.h" |
|
|
#include "FileIo.h" |
|
|
#include "FileIo.h" |
|
|
#include "ClientModel.h" |
|
|
#include "ClientModel.h" |
|
|
#include "CodeEditorExtensionManager.h" |
|
|
#include "CodeEditorExtensionManager.h" |
|
|
#include "Exceptions.h" |
|
|
#include "Exceptions.h" |
|
|
#include "AppContext.h" |
|
|
|
|
|
#include "QEther.h" |
|
|
#include "QEther.h" |
|
|
|
|
|
#include "QVariableDefinition.h" |
|
|
#include "HttpServer.h" |
|
|
#include "HttpServer.h" |
|
|
|
|
|
#include "AppContext.h" |
|
|
|
|
|
|
|
|
using namespace dev; |
|
|
using namespace dev; |
|
|
using namespace dev::eth; |
|
|
using namespace dev::eth; |
|
@ -82,7 +83,7 @@ void AppContext::load() |
|
|
qmlRegisterType<CodeEditorExtensionManager>("CodeEditorExtensionManager", 1, 0, "CodeEditorExtensionManager"); |
|
|
qmlRegisterType<CodeEditorExtensionManager>("CodeEditorExtensionManager", 1, 0, "CodeEditorExtensionManager"); |
|
|
qmlRegisterType<HttpServer>("HttpServer", 1, 0, "HttpServer"); |
|
|
qmlRegisterType<HttpServer>("HttpServer", 1, 0, "HttpServer"); |
|
|
m_applicationEngine->load(QUrl("qrc:/qml/main.qml")); |
|
|
m_applicationEngine->load(QUrl("qrc:/qml/main.qml")); |
|
|
QQuickWindow *window = qobject_cast<QQuickWindow *>(m_applicationEngine->rootObjects().at(0)); |
|
|
QWindow *window = qobject_cast<QWindow *>(m_applicationEngine->rootObjects().at(0)); |
|
|
window->setIcon(QIcon(":/res/mix_256x256x32.png")); |
|
|
window->setIcon(QIcon(":/res/mix_256x256x32.png")); |
|
|
appLoaded(); |
|
|
appLoaded(); |
|
|
} |
|
|
} |
|
|