17 lines
337 B
C++
17 lines
337 B
C++
#include <QApplication>
|
|
|
|
#include "api.hxx"
|
|
#include "main_window.hxx"
|
|
|
|
extern "C" int run(int argc, char* argv[], ICoreFactory* factory) {
|
|
// only X11 is supported so, use XCB unless overriden
|
|
setenv("QT_QPA_PLATFORM", "xcb", 0);
|
|
|
|
QApplication app(argc, argv);
|
|
|
|
auto w = new PROJECTNAME(factory);
|
|
w->show();
|
|
|
|
return app.exec();
|
|
}
|