Commits

Boris Glimcher  committed ac2625c

icons: use now qtlib.geticon

  • Participants
  • Parent commits 963013f

Comments (0)

Files changed (3)

File hgcr-gui-qt.py

         self._qui = Ui_CodeREviewDialog()
         self._qui.setupUi(self)
 
+        # window
         self.setWindowTitle(_('CodeReview - %s') % repo.displayname)
         # TODO: choose appropriate icon
         self.setWindowIcon(qtlib.geticon('hg-tag'))
-       
+
+        # icons
+        self._qui.refresh_button.setIcon(qtlib.geticon("refresh_overlays"))
+        self._qui.add_button.setIcon(qtlib.geticon("fileadd"))
+        self._qui.remove_button.setIcon(qtlib.geticon("filedelete"))
+        self._qui.done_button.setIcon(qtlib.geticon("settings_user"))
+        self._qui.commit_button.setIcon(qtlib.geticon("menucommit"))
+        self._qui.email_button.setIcon(qtlib.geticon("menulog"))
+        self._qui.history_button.setIcon(qtlib.geticon("menurevisiongraph"))
+
         # create codereview extension
         self.code_review = CodeReview(self.ui, self.repo, self.rev) 
         
        <property name="text">
         <string>Refresh</string>
        </property>
-       <property name="icon">
-        <iconset>
-         <normaloff>../../../../../Program Files/TortoiseHg/icons/refresh_overlays.ico</normaloff>../../../../../Program Files/TortoiseHg/icons/refresh_overlays.ico</iconset>
-       </property>
       </widget>
      </item>
      <item>
        <property name="text">
         <string>Add</string>
        </property>
-       <property name="icon">
-        <iconset>
-         <normaloff>../../../../../Program Files/TortoiseHg/icons/fileadd.ico</normaloff>../../../../../Program Files/TortoiseHg/icons/fileadd.ico</iconset>
-       </property>
       </widget>
      </item>
      <item>
        <property name="text">
         <string>Remove</string>
        </property>
-       <property name="icon">
-        <iconset>
-         <normaloff>../../../../../Program Files/TortoiseHg/icons/filedelete.ico</normaloff>../../../../../Program Files/TortoiseHg/icons/filedelete.ico</iconset>
-       </property>
       </widget>
      </item>
      <item>
        <property name="text">
         <string>Done</string>
        </property>
-       <property name="icon">
-        <iconset>
-         <normaloff>../thg/icons/settings_user.ico</normaloff>../thg/icons/settings_user.ico</iconset>
-       </property>
       </widget>
      </item>
      <item>
        <property name="text">
         <string>Commit</string>
        </property>
-       <property name="icon">
-        <iconset>
-         <normaloff>../../../../../Program Files/TortoiseHg/icons/menucommit.ico</normaloff>../../../../../Program Files/TortoiseHg/icons/menucommit.ico</iconset>
-       </property>
       </widget>
      </item>
      <item>
        <property name="text">
         <string>Email</string>
        </property>
-       <property name="icon">
-        <iconset>
-         <normaloff>../../../../../Program Files/TortoiseHg/icons/menulog.ico</normaloff>../../../../../Program Files/TortoiseHg/icons/menulog.ico</iconset>
-       </property>
       </widget>
      </item>
      <item>
        <property name="text">
         <string>History</string>
        </property>
-       <property name="icon">
-        <iconset>
-         <normaloff>../../../../../Program Files/TortoiseHg/icons/menurevisiongraph.ico</normaloff>../../../../../Program Files/TortoiseHg/icons/menurevisiongraph.ico</iconset>
-       </property>
       </widget>
      </item>
     </layout>
 
 # Form implementation generated from reading ui file 'C:\Users\Boris\Documents\Projects\thg\tortoisehg\hgqt\hgcr.ui'
 #
-# Created: Fri Oct 07 17:07:07 2011
+# Created: Mon Oct 10 23:22:15 2011
 #      by: PyQt4 UI code generator 4.8.4
 #
 # WARNING! All changes made in this file will be lost!
         self.buttons_layout = QtGui.QHBoxLayout()
         self.buttons_layout.setObjectName(_fromUtf8("buttons_layout"))
         self.refresh_button = QtGui.QPushButton(CodeREviewDialog)
-        icon = QtGui.QIcon()
-        icon.addPixmap(QtGui.QPixmap(_fromUtf8("../../../../../Program Files/TortoiseHg/icons/refresh_overlays.ico")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
-        self.refresh_button.setIcon(icon)
         self.refresh_button.setObjectName(_fromUtf8("refresh_button"))
         self.buttons_layout.addWidget(self.refresh_button)
         self.add_button = QtGui.QPushButton(CodeREviewDialog)
         self.add_button.setStyleSheet(_fromUtf8(""))
-        icon1 = QtGui.QIcon()
-        icon1.addPixmap(QtGui.QPixmap(_fromUtf8("../../../../../Program Files/TortoiseHg/icons/fileadd.ico")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
-        self.add_button.setIcon(icon1)
         self.add_button.setObjectName(_fromUtf8("add_button"))
         self.buttons_layout.addWidget(self.add_button)
         self.remove_button = QtGui.QPushButton(CodeREviewDialog)
-        icon2 = QtGui.QIcon()
-        icon2.addPixmap(QtGui.QPixmap(_fromUtf8("../../../../../Program Files/TortoiseHg/icons/filedelete.ico")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
-        self.remove_button.setIcon(icon2)
         self.remove_button.setObjectName(_fromUtf8("remove_button"))
         self.buttons_layout.addWidget(self.remove_button)
         self.done_button = QtGui.QPushButton(CodeREviewDialog)
-        icon3 = QtGui.QIcon()
-        icon3.addPixmap(QtGui.QPixmap(_fromUtf8("../thg/icons/settings_user.ico")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
-        self.done_button.setIcon(icon3)
         self.done_button.setObjectName(_fromUtf8("done_button"))
         self.buttons_layout.addWidget(self.done_button)
         self.commit_button = QtGui.QPushButton(CodeREviewDialog)
-        icon4 = QtGui.QIcon()
-        icon4.addPixmap(QtGui.QPixmap(_fromUtf8("../../../../../Program Files/TortoiseHg/icons/menucommit.ico")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
-        self.commit_button.setIcon(icon4)
         self.commit_button.setObjectName(_fromUtf8("commit_button"))
         self.buttons_layout.addWidget(self.commit_button)
         self.email_button = QtGui.QPushButton(CodeREviewDialog)
-        icon5 = QtGui.QIcon()
-        icon5.addPixmap(QtGui.QPixmap(_fromUtf8("../../../../../Program Files/TortoiseHg/icons/menulog.ico")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
-        self.email_button.setIcon(icon5)
         self.email_button.setObjectName(_fromUtf8("email_button"))
         self.buttons_layout.addWidget(self.email_button)
         self.history_button = QtGui.QPushButton(CodeREviewDialog)
-        icon6 = QtGui.QIcon()
-        icon6.addPixmap(QtGui.QPixmap(_fromUtf8("../../../../../Program Files/TortoiseHg/icons/menurevisiongraph.ico")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
-        self.history_button.setIcon(icon6)
         self.history_button.setObjectName(_fromUtf8("history_button"))
         self.buttons_layout.addWidget(self.history_button)
         self.dialog_layout.addLayout(self.buttons_layout)