[main] some renaming

This commit is contained in:
Jan Grewe 2021-02-15 18:15:33 +01:00
parent a20beb6072
commit f83fb911dd

View File

@ -6,17 +6,17 @@
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
QGuiApplication::setApplicationDisplayName(PylonRecorder::tr("Image Viewer"));
QGuiApplication::setApplicationDisplayName(PylonRecorder::tr("Pylon Recorder"));
QCommandLineParser commandLineParser;
commandLineParser.addHelpOption();
commandLineParser.addPositionalArgument(PylonRecorder::tr("[file]"), PylonRecorder::tr("Image file to open."));
commandLineParser.process(QCoreApplication::arguments());
PylonRecorder imageViewer;
PylonRecorder recorder;
if (!commandLineParser.positionalArguments().isEmpty()
&& !imageViewer.loadFile(commandLineParser.positionalArguments().front())) {
&& !recorder.loadFile(commandLineParser.positionalArguments().front())) {
return -1;
}
imageViewer.show();
recorder.show();
int ret = app.exec();
return ret;
}