mirror of
https://github.com/leozide/leocad
synced 2025-01-17 18:11:42 +01:00
Also print continuous build on the command line.
This commit is contained in:
parent
c68ce5fff8
commit
fb0bcc48ec
2 changed files with 6 additions and 1 deletions
|
@ -369,6 +369,11 @@ bool lcApplication::Initialize(QList<QPair<QString, bool>>& LibraryPaths, bool&
|
|||
ParseInteger(PartImagesHeight);
|
||||
else if (Param == QLatin1String("-v") || Param == QLatin1String("--version"))
|
||||
{
|
||||
#ifdef LC_CONTINUOUS_BUILD
|
||||
printf("LeoCAD Continuous Build " QT_STRINGIFY(LC_CONTINUOUS_BUILD) "\n");
|
||||
#else
|
||||
printf("LeoCAD Version " LC_VERSION_TEXT "\n");
|
||||
#endif
|
||||
printf("LeoCAD Version " LC_VERSION_TEXT "\n");
|
||||
printf("Compiled " __DATE__ "\n");
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@ lcQAboutDialog::lcQAboutDialog(QWidget *parent) :
|
|||
ui->setupUi(this);
|
||||
|
||||
#ifdef LC_CONTINUOUS_BUILD
|
||||
ui->version->setText(tr("LeoCAD Continuous Build\nfrom commit %1").arg(QString::fromLatin1(QT_STRINGIFY(LC_CONTINUOUS_BUILD))));
|
||||
ui->version->setText(tr("LeoCAD Continuous Build %1").arg(QString::fromLatin1(QT_STRINGIFY(LC_CONTINUOUS_BUILD))));
|
||||
#else
|
||||
ui->version->setText(tr("LeoCAD Version %1").arg(QString::fromLatin1(LC_VERSION_TEXT)));
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue