HexOffsets/main.cpp

21 lines
390 B
C++

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