HexOffsets/main.cpp

21 lines
390 B
C++
Raw Permalink Normal View History

2017-05-06 18:21:45 +02:00
#include "mainwindow.hpp"
#include <QApplication>
int main(int argc, char *argv[])
{
int entriesNumber = UIEntry::MIN_ENTRIES_NUMBER, temp;
bool ok;
if (argc == 2)
{
temp = QString(argv[1]).toInt(&ok);
if (ok)
entriesNumber = temp;
}
QApplication a(argc, argv);
MainWindow w(0, entriesNumber);
w.show();
return a.exec();
}