Commit 2c6038e6 authored by Dan Pascu's avatar Dan Pascu

Set version and release date on about panel from variables

parent cbf1ea0c
...@@ -9,6 +9,7 @@ from PyQt4 import uic ...@@ -9,6 +9,7 @@ from PyQt4 import uic
from PyQt4.QtCore import QSize from PyQt4.QtCore import QSize
from PyQt4.QtGui import QFontMetrics from PyQt4.QtGui import QFontMetrics
from blink import __date__, __version__
from blink.resources import Resources from blink.resources import Resources
from blink.util import QSingleton from blink.util import QSingleton
...@@ -46,6 +47,8 @@ class AboutPanel(base_class, ui_class): ...@@ -46,6 +47,8 @@ class AboutPanel(base_class, ui_class):
with Resources.directory: with Resources.directory:
self.setupUi(self) self.setupUi(self)
self.version.setText(u'Version %s\n%s' % (__version__, __date__))
credits_width = QFontMetrics(self.credits_text.currentFont()).width("NLNET Foundation" + "http://sipsimpleclient.com") + 40 credits_width = QFontMetrics(self.credits_text.currentFont()).width("NLNET Foundation" + "http://sipsimpleclient.com") + 40
self.credits_text.setMinimumWidth(credits_width) self.credits_text.setMinimumWidth(credits_width)
self.credits_text.document().documentLayout().documentSizeChanged.connect(self._credits_size_changed) self.credits_text.document().documentLayout().documentSizeChanged.connect(self._credits_size_changed)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment