Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.9, 1.9.1, and 1.9.2

use qtlib.geticon()

Changeset 4a3b72807221

Parent 64f2ab61b1f5

by Johan Samyn

Changes to one file · Browse files at 4a3b72807221 Showing diff from parent 64f2ab61b1f5 Diff from another changeset...

 
14
15
16
17
 
18
19
 
20
21
22
 
41
42
43
44
45
46
47
 
48
49
50
 
94
95
96
97
 
98
99
100
 
14
15
16
 
17
18
19
20
21
22
23
 
42
43
44
 
 
 
 
45
46
47
48
 
92
93
94
 
95
96
97
98
@@ -14,9 +14,10 @@
 import os, sys, urllib2    from PyQt4.QtCore import PYQT_VERSION_STR, QT_VERSION_STR, Qt -from PyQt4.QtGui import QIcon, QPixmap, QDialog +from PyQt4.QtGui import QPixmap, QDialog    from tortoisehg.hgqt.i18n import _ +from tortoisehg.hgqt import qtlib  from tortoisehg.util import version, hglib, shlib, paths    def make_version(tuple): @@ -41,10 +42,7 @@
  self._qui = Ui_AboutDialog()   self._qui.setupUi(self)   - iconfile = paths.get_tortoise_icon('thg_logo.ico') - icon = QIcon() - icon.addPixmap(QPixmap(iconfile), QIcon.Normal, QIcon.Off) - self.setWindowIcon(icon) + self.setWindowIcon(qtlib.geticon('thg_logo'))   self.setWindowTitle(_('About TortoiseHg'))     thglogofile = paths.get_tortoise_icon('thg_logo_92x50.png') @@ -94,7 +92,7 @@
  dlurl = hglib.fromunicode(self._qui.download_url_label.text())   dlurl = dlurl.replace('http://thg-download-url', self._upgradeurl)   self._qui.download_url_label.setText(dlurl) - +   self._qui.license_button.setText(_('&License'))   self._qui.close_button.setText(_('&Close'))