Changeset 1299ea5b49 in tspsg for src/mainwindow.cpp


Ignore:
Timestamp:
Jul 10, 2012, 5:34:54 PM (12 years ago)
Author:
Oleksii Serdiuk
Branches:
appveyor, imgbot, master, readme
Children:
b26801b000
Parents:
7ba743d983
Message:

Updated version info to be set based on git tags.

'git describe' is now used for version definition. Major, minor and
release are taken from the latest git tag. Build is defined as number of
commits since the latest tag. If we're out of source, then .tag file
should contain output of 'git describe --abbrev=40' command.

Also, moved version related code from tspsg.pro to version.pri.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mainwindow.cpp

    r7ba743d983 r1299ea5b49  
    552552    about += QString("&nbsp;&nbsp;&nbsp;&nbsp;%1: <b>%2</b><br>").arg(tr("Runtime"), qVersion());
    553553    about.append(QString("%1: <b>%2x%3</b><br>").arg(tr("Logical screen DPI")).arg(logicalDpiX()).arg(logicalDpiY()));
    554     about += tr("Buid <b>%1</b>, built on <b>%2</b> at <b>%3</b> with <b>%4</b> compiler.").arg(BUILD_NUMBER).arg(__DATE__).arg(__TIME__).arg(COMPILER) + "<br>";
     554QString tag;
     555#ifdef REVISION_STR
     556    tag = tr(" from git revision <b>%1</b>").arg(REVISION_STR);
     557#endif
     558    about += tr("Build <b>%1</b>, built%5 on <b>%2</b> at <b>%3</b> with <b>%4</b> compiler.").arg(BUILD_NUMBER).arg(__DATE__).arg(__TIME__).arg(COMPILER).arg(tag) + "<br>";
    555559    about += QString("%1: <b>%2</b><br>").arg(tr("Algorithm"), CTSPSolver::getVersionId());
    556560    about += "<br>";
Note: See TracChangeset for help on using the changeset viewer.