version number now fetched from VERSION set by configure

git-svn-id: http://svn.osgeo.org/qgis/trunk@951 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
gsherman 2004-02-27 05:42:25 +00:00
parent 011a97d30c
commit e2f0d015be
2 changed files with 5 additions and 2 deletions

View File

@ -16,9 +16,11 @@ namespace QGis
// Version constants // Version constants
// //
// Version string // Version string
static const char *qgisVersion = "0.2 Development 'Pumpkin'"; static const char *qgisVersion = VERSION;
// Version number used for comparing versions using the "Check QGIS Version" function // Version number used for comparing versions using the "Check QGIS Version" function
static const int qgisVersionInt =200; static const int qgisVersionInt =200;
// Release name
static const char *qgisReleaseName = "Pumpkin";
// Enumerations // Enumerations
// //

View File

@ -260,7 +260,8 @@ QgisApp::QgisApp(QWidget * parent, const char *name, WFlags fl):QgisAppBase(pare
mapLegend->setMapCanvas(mapCanvas); mapLegend->setMapCanvas(mapCanvas);
mapLegend->setResizeMode(QListView::AllColumns); mapLegend->setResizeMode(QListView::AllColumns);
QString caption = tr("Quantum GIS - "); QString caption = tr("Quantum GIS - ");
caption += QGis::qgisVersion; caption += QString("%1 ('%2')").arg(QGis::qgisVersion).arg(QGis::qgisReleaseName);
setCaption(caption); setCaption(caption);
connect(mapCanvas, SIGNAL(xyCoordinates(QgsPoint &)), this, SLOT(showMouseCoordinate(QgsPoint &))); connect(mapCanvas, SIGNAL(xyCoordinates(QgsPoint &)), this, SLOT(showMouseCoordinate(QgsPoint &)));
connect(mapLegend, SIGNAL(doubleClicked(QListViewItem *)), this, SLOT(layerProperties(QListViewItem *))); connect(mapLegend, SIGNAL(doubleClicked(QListViewItem *)), this, SLOT(layerProperties(QListViewItem *)));