summaryrefslogtreecommitdiff
path: root/src/main.cpp
blob: 35328887809b917cba95852428172d32d2b89ce0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/**
  * \file main.cpp
  *
  * The main entry point for the TikZiT executable.
  */

#include "tikzit.h"

#include <QApplication>
#include <QMenuBar>



int main(int argc, char *argv[])
{
    QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
    QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
    //QCoreApplication::setAttribute(Qt::AA_DisableHighDpiScaling);
    QApplication a(argc, argv);
    a.setQuitOnLastWindowClosed(false);
    tikzit = new Tikzit();
    tikzit->init(&a);
	
    if (a.arguments().length() > 1) {
		tikzit->open(a.arguments()[1]);
	}

    return a.exec();
}