Files
Sourcetrail/src/app/main.cpp
T
Eberhard Graether 73b74cb618 ui: basic CodeView with syntax highlighting
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.
2014-06-30 13:50:19 +02:00

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();
}