Initial commit
This commit is contained in:
20
main.cpp
Normal file
20
main.cpp
Normal file
@@ -0,0 +1,20 @@
|
||||
#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();
|
||||
}
|
||||
Reference in New Issue
Block a user