Added CodeView interface and QtCodeView implementation for showing syntax highlighted code snippets. This change avoids using the GuiElement hierarchy by using directly using QtClasses and creating QtCodeView in the QtElementFactory.
22 lines
504 B
C++
22 lines
504 B
C++
#include <memory>
|
|
|
|
#include <QApplication>
|
|
|
|
#include "Application.h"
|
|
#include "includes.h"
|
|
#include "qt/QtElementFactory.h"
|
|
#include "qt/QtWindow.h"
|
|
|
|
int main(int argc, char *argv[])
|
|
{
|
|
QApplication qtApp(argc, argv);
|
|
std::shared_ptr<GuiElementFactory> elementFactory = std::make_shared<QtElementFactory>();
|
|
|
|
std::shared_ptr<QtWindow> window = std::make_shared<QtWindow>();
|
|
|
|
std::shared_ptr<Application> app = Application::create(elementFactory, window);
|
|
app->loadProject();
|
|
|
|
return qtApp.exec();
|
|
}
|