[QGIS Commit] r15319 - trunk/qgis/python/plugins/fTools

svn_qgis at osgeo.org svn_qgis at osgeo.org
Thu Mar 3 07:20:35 EST 2011


Author: alexbruy
Date: 2011-03-03 04:20:34 -0800 (Thu, 03 Mar 2011)
New Revision: 15319

Modified:
   trunk/qgis/python/plugins/fTools/doAbout.py
Log:
display correct fTools version in About dialog


Modified: trunk/qgis/python/plugins/fTools/doAbout.py
===================================================================
--- trunk/qgis/python/plugins/fTools/doAbout.py	2011-03-03 11:38:33 UTC (rev 15318)
+++ trunk/qgis/python/plugins/fTools/doAbout.py	2011-03-03 12:20:34 UTC (rev 15319)
@@ -1,16 +1,16 @@
 # -*- coding: utf-8 -*-
 # licensed under the terms of GNU GPL 2
-# 
+#
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
 # the Free Software Foundation; either version 2 of the License, or
 # (at your option) any later version.
-# 
+#
 # This program is distributed in the hope that it will be useful,
 # but WITHOUT ANY WARRANTY; without even the implied warranty of
 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 # GNU General Public License for more details.
-# 
+#
 # You should have received a copy of the GNU General Public License along
 # with this program; if not, write to the Free Software Foundation, Inc.,
 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
@@ -22,6 +22,7 @@
 import webbrowser, os
 from ui_frmAbout import Ui_Dialog
 import resources_rc
+from __init__ import version
 currentPath = os.path.dirname(__file__)
 
 class Dialog(QDialog, Ui_Dialog):
@@ -33,7 +34,7 @@
 		QObject.connect(self.btnWeb, SIGNAL("clicked()"), self.openWeb)
 		QObject.connect(self.btnHelp, SIGNAL("clicked()"), self.openHelp)
 		self.fToolsLogo.setPixmap(QPixmap(":/icons/default/ftools_logo.png"))
-		self.label_3.setText("fTools 0.5.10")
+		self.label_3.setText( "fTools " + version() )
 		self.textEdit.setText(self.getText())
 
 	def getText(self):



More information about the QGIS-commit mailing list