Migration of QtMvvm from github
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
545 B

#include "samplecoreapp.h"
#include "sampleviewmodel.h"
#include <QtCore/QCommandLineParser>
SampleCoreApp::SampleCoreApp(QObject *parent) :
CoreApp(parent)
{}
int SampleCoreApp::startApp(const QStringList &arguments)
{
QCommandLineParser parser;
parser.addVersionOption();
parser.addHelpOption();
parser.addOption({
{QStringLiteral("n"), QStringLiteral("nothing")},
QStringLiteral("Pointless action")
});
if(!autoParse(parser, arguments))
return EXIT_SUCCESS;
7 years ago
show<SampleViewModel>();
return EXIT_SUCCESS;
}