Changeset 1299ea5b49 in tspsg for src
- Timestamp:
- Jul 10, 2012, 5:34:54 PM (12 years ago)
- Branches:
- appveyor, imgbot, master, readme
- Children:
- b26801b000
- Parents:
- 7ba743d983
- Location:
- src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main.cpp
r7ba743d983 r1299ea5b49 42 42 { 43 43 #ifdef Q_WS_S60 44 // No enough memory for solution graph generation with tasks44 // Not enough memory for solution graph generation with tasks 45 45 // of 20 and more cities if we use non-raster graphics system. 46 46 QApplication::setGraphicsSystem("raster"); -
src/mainwindow.cpp
r7ba743d983 r1299ea5b49 552 552 about += QString(" %1: <b>%2</b><br>").arg(tr("Runtime"), qVersion()); 553 553 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>"; 554 QString 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>"; 555 559 about += QString("%1: <b>%2</b><br>").arg(tr("Algorithm"), CTSPSolver::getVersionId()); 556 560 about += "<br>"; -
src/version.h
r7ba743d983 r1299ea5b49 49 49 /*! 50 50 * \def BUILD_STATUS 51 * \brief TSPSG build status 51 * \brief TSPSG build status (e.g., alpha1, beta3) 52 52 */ 53 53 #ifdef DEBUG 54 # ifndef BUILD_STATUS _TYPE55 # define BUILD_STATUS (debug build BUILD_NUMBER)54 # ifndef BUILD_STATUS 55 # define BUILD_STATUS_STR (debug build) 56 56 # else 57 # define BUILD_STATUS (debug BUILD_STATUS_TYPE BUILD_STATUS_NUMBER)57 # define BUILD_STATUS_STR (debug BUILD_STATUS) 58 58 # endif 59 59 #else 60 60 # if !defined(TSPSG_RELEASE_BUILD) 61 # define BUILD_STATUS (nightly build)62 # elif !defined(BUILD_STATUS _TYPE)63 # define BUILD_STATUS (build BUILD_NUMBER)61 # define BUILD_STATUS_STR (nightly build) 62 # elif !defined(BUILD_STATUS) 63 # define BUILD_STATUS_STR (build BUILD_NUMBER) 64 64 # else 65 # define BUILD_STATUS (BUILD_STATUS_TYPE BUILD_STATUS_NUMBER)65 # define BUILD_STATUS_STR (BUILD_STATUS) 66 66 # endif // TSPSG_RELEASE_BUILD 67 67 #endif // DEBUG … … 73 73 74 74 //! Full version of TSPSG in the form: \c major.minor.release.build \c status. 75 #define BUILD_VERSION QUOTE(BUILD_VERSION_MAJOR.BUILD_VERSION_MINOR.BUILD_RELEASE BUILD_STATUS) 75 #define BUILD_VERSION QUOTE(BUILD_VERSION_MAJOR.BUILD_VERSION_MINOR.BUILD_RELEASE BUILD_STATUS_STR) 76 77 /*! 78 * \def REVISION_STR 79 * \brief Git revision from which build was made 80 */ 81 #ifdef REVISION 82 # define REVISION_STR QUOTE(REVISION) 83 #else 84 # define REVISION_STR "$Format:%H$" 85 #endif 76 86 77 87 #endif // VERSION_H
Note: See TracChangeset
for help on using the changeset viewer.