[main] some renaming
This commit is contained in:
parent
a20beb6072
commit
f83fb911dd
8
main.cpp
8
main.cpp
@ -6,17 +6,17 @@
|
|||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
QApplication app(argc, argv);
|
QApplication app(argc, argv);
|
||||||
QGuiApplication::setApplicationDisplayName(PylonRecorder::tr("Image Viewer"));
|
QGuiApplication::setApplicationDisplayName(PylonRecorder::tr("Pylon Recorder"));
|
||||||
QCommandLineParser commandLineParser;
|
QCommandLineParser commandLineParser;
|
||||||
commandLineParser.addHelpOption();
|
commandLineParser.addHelpOption();
|
||||||
commandLineParser.addPositionalArgument(PylonRecorder::tr("[file]"), PylonRecorder::tr("Image file to open."));
|
commandLineParser.addPositionalArgument(PylonRecorder::tr("[file]"), PylonRecorder::tr("Image file to open."));
|
||||||
commandLineParser.process(QCoreApplication::arguments());
|
commandLineParser.process(QCoreApplication::arguments());
|
||||||
PylonRecorder imageViewer;
|
PylonRecorder recorder;
|
||||||
if (!commandLineParser.positionalArguments().isEmpty()
|
if (!commandLineParser.positionalArguments().isEmpty()
|
||||||
&& !imageViewer.loadFile(commandLineParser.positionalArguments().front())) {
|
&& !recorder.loadFile(commandLineParser.positionalArguments().front())) {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
imageViewer.show();
|
recorder.show();
|
||||||
int ret = app.exec();
|
int ret = app.exec();
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user