You've already forked nodeeditor
mirror of
https://github.com/AxioDL/nodeeditor.git
synced 2026-03-30 11:48:31 -07:00
db51d90253
* add basic test support * fix travis.yml * fix-travis-osx * fix .appveyor.yml * Added some dragging tests * remove failing test * Improve naming, reuse of code * fix bug
21 lines
384 B
C++
21 lines
384 B
C++
#pragma once
|
|
|
|
#include <memory>
|
|
|
|
#include <QApplication>
|
|
|
|
|
|
inline std::unique_ptr<QApplication>
|
|
applicationSetup()
|
|
{
|
|
static int Argc = 0;
|
|
static char ArgvVal = '\0';
|
|
static char* ArgvValPtr = &ArgvVal;
|
|
static char** Argv = &ArgvValPtr;
|
|
|
|
auto app = std::make_unique<QApplication>(Argc, Argv);
|
|
app->setAttribute(Qt::AA_Use96Dpi, true);
|
|
|
|
return app;
|
|
}
|