Changeset 7f60402257e8…
Parent cd3f24cbf2b3…
by
Changes to 4 files · Browse files at 7f60402257e8 Showing diff from parent cd3f24cbf2b3 Diff from another changeset...
|
@@ -16,6 +16,7 @@ from PyQt4.QtGui import QWidget, QVBoxLayout
from tortoisehg.hgqt.i18n import _
+from tortoisehg.hgqt import icon as geticon
connect = QtCore.QObject.connect
@@ -107,7 +108,7 @@ def columnCount(self):
return 2
- def data(self, column):
+ def data(self, column, role):
return QVariant()
def setData(self, column, value):
@@ -164,7 +165,12 @@ def rootpath(self):
return self._root
- def data(self, column):
+ def data(self, column, role):
+ if role == Qt.DecorationRole:
+ if column == 0:
+ ico = geticon('hg')
+ return QVariant(ico)
+ return QVariant()
if column == 0:
return QVariant(os.path.basename(self._root))
elif column == 1:
@@ -198,7 +204,9 @@ else:
self.name = QString()
- def data(self, column):
+ def data(self, column, role):
+ if role == Qt.DecorationRole:
+ return QVariant()
if column == 0:
return QVariant(self.name)
return QVariant()
@@ -317,10 +325,11 @@ def data(self, index, role):
if not index.isValid():
return QVariant()
- if role != Qt.DisplayRole and role != Qt.EditRole:
- return QVariant();
+ if (role != Qt.DisplayRole
+ and role != Qt.EditRole and role != Qt.DecorationRole):
+ return QVariant()
item = index.internalPointer()
- return item.data(index.column())
+ return item.data(index.column(), role)
def headerData(self, section, orientation, role):
if role == Qt.DisplayRole:
|
@@ -20,5 +20,6 @@ <file>icons/mqpatch.svg</file>
<file>icons/plus.png</file>
<file>icons/minus.png</file>
+ <file>icons/hg.ico</file>
</qresource>
</RCC>
|
|
@@ -2,7 +2,7 @@
# Resource object code
#
-# Created: ? 5 19 18:11:55 2010
+# Created: Fr 21. Mai 23:38:34 2010
# by: The Resource Compiler for PyQt (Qt v4.6.2)
#
# WARNING! All changes made in this file will be lost!
@@ -6102,6 +6102,123 @@\x09\x09\x43\x37\x33\x2e\x37\x30\x35\x2c\x32\x2e\x39\x2c\x37\x32\
\x2e\x38\x30\x35\x2c\x32\x2c\x37\x31\x2e\x37\x30\x35\x2c\x32\x7a\
\x22\x2f\x3e\x0d\x0a\x3c\x2f\x73\x76\x67\x3e\x0d\x0a\
+\x00\x00\x07\x26\
+\x00\
+\x00\x01\x00\x02\x00\x10\x10\x00\x00\x01\x00\x20\x00\x68\x04\x00\
+\x00\x26\x00\x00\x00\x0c\x0c\x00\x00\x01\x00\x20\x00\x98\x02\x00\
+\x00\x8e\x04\x00\x00\x28\x00\x00\x00\x10\x00\x00\x00\x20\x00\x00\
+\x00\x01\x00\x20\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
+\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
+\x00\x00\x00\x00\x00\x00\x00\x00\x00\xd4\xd3\xd4\x2a\xac\xac\xac\
+\x5a\xdc\xdc\xdc\x21\x00\x00\x00\x00\x00\x00\x00\x00\xbf\xbf\xbf\
+\x57\x4c\x4b\x4c\xeb\x89\x89\x89\xef\xa2\xa1\xa2\x9d\xe8\xe8\xe8\
+\x19\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
+\x00\x00\x00\x00\x00\xba\xb9\xba\x62\x67\x67\x67\xfc\x78\x78\x78\
+\xff\x77\x77\x77\xf8\xc9\xc9\xc9\x4c\x00\x00\x00\x00\xb1\xb1\xb1\
+\xc5\x69\x69\x69\xff\x52\x52\x52\xff\x5b\x5b\x5b\xff\x89\x89\x89\
+\xe7\xd9\xd9\xd9\x2e\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
+\x00\x00\x00\x00\x00\x95\x95\x95\xe8\x99\x99\x99\xff\xcc\xcc\xcc\
+\xff\xd3\xd3\xd3\xff\x74\x74\x74\xdb\x00\x00\x00\x00\xc9\xc9\xc9\
+\x90\xcc\xcc\xcc\xff\xed\xed\xed\xff\xc5\xc5\xc5\xff\x3f\x3f\x3f\
+\xff\x83\x83\x83\xe5\xec\xec\xec\x18\x00\x00\x00\x00\x00\x00\x00\
+\x00\xf9\xf9\xf9\x02\x9c\x9c\x9c\xf7\x99\x99\x99\xff\x99\x99\x99\
+\xff\xc4\xc4\xc4\xff\x68\x68\x68\xfb\xfc\xfc\xfc\x04\xe9\xe9\xe9\
+\x29\xac\xac\xac\xfd\xea\xea\xea\xff\xf3\xf3\xf3\xff\xc1\xc1\xc1\
+\xff\x3b\x3b\x3b\xff\xa2\xa2\xa2\xb1\x00\x00\x00\x00\x00\x00\x00\
+\x00\x00\x00\x00\x00\xc6\xc6\xc6\xa2\x99\x99\x99\xff\x99\x99\x99\
+\xff\x9a\x9a\x9a\xff\xaa\xaa\xaa\xba\x00\x00\x00\x00\x00\x00\x00\
+\x00\xaf\xaf\xaf\xc3\xa1\xa1\xa1\xff\xb9\xb9\xb9\xff\xdf\xdf\xdf\
+\xff\x87\x87\x87\xff\x49\x49\x49\xfe\xe5\xe5\xe5\x40\x00\x00\x00\
+\x00\x00\x00\x00\x00\xf9\xf9\xf9\x0d\xcd\xcd\xcd\x9e\xb3\xb3\xb3\
+\xdd\xc6\xc6\xc6\xab\xf7\xf7\xf7\x18\x00\x00\x00\x00\x00\x00\x00\
+\x00\xb8\xb8\xb8\xa2\x9a\x9a\x9a\xff\x99\x99\x99\xff\x9f\x9f\x9f\
+\xff\xd1\xd1\xd1\xff\x38\x38\x38\xff\xaf\xaf\xaf\xa3\x00\x00\x00\
+\x00\xdf\xdf\xdf\x18\xf9\xf9\xf9\x02\x00\x00\x00\x00\x00\x00\x00\
+\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xcd\xcc\xcd\
+\x33\x91\x91\x91\xef\x9d\x9d\x9d\xff\x99\x99\x99\xff\x99\x99\x99\
+\xff\xba\xba\xba\xff\x7b\x7b\x7b\xff\x6b\x6b\x6b\xdf\x98\x98\x98\
+\x96\x5b\x5b\x5b\xfe\x6f\x6f\x6f\xcc\xf2\xf2\xf2\x0a\x00\x00\x00\
+\x00\xf9\xf9\xf9\x03\xb4\xb3\xb4\x57\x8d\x8c\x8d\xb4\x79\x79\x79\
+\xfc\x96\x96\x96\xff\x99\x99\x99\xff\x99\x99\x99\xff\x99\x99\x99\
+\xff\x9b\x9b\x9b\xff\xbd\xbd\xbd\xff\x3b\x3b\x3b\xfa\x8f\x8f\x8f\
+\xf7\xc2\xc2\xc2\xff\xca\xca\xca\xff\xba\xba\xba\x4f\xe3\xe2\xe3\
+\x18\x53\x52\x53\xc8\x58\x58\x58\xff\x71\x71\x71\xff\x8d\x8d\x8d\
+\xff\x9b\x9b\x9b\xff\x99\x99\x99\xff\x99\x99\x99\xff\x99\x99\x99\
+\xff\x99\x99\x99\xff\xb8\xb8\xb8\xff\x4b\x4b\x4b\xf5\xbd\xbd\xbd\
+\xad\x9a\x9a\x9a\xff\xaa\xaa\xaa\xf7\xdf\xdf\xdf\x27\x60\x60\x60\
+\xc5\x72\x72\x72\xff\x9f\x9f\x9f\xff\x99\x99\x99\xff\x99\x99\x99\
+\xff\x99\x99\x99\xff\x99\x99\x99\xff\x99\x99\x99\xff\x99\x99\x99\
+\xff\x99\x99\x99\xff\x9f\x9f\x9f\xff\x6f\x6f\x6f\xd5\xfb\xfb\xfb\
+\x08\xe5\xe5\xe5\x56\xf1\xf1\xf1\x2a\xcb\xcb\xcb\x40\x71\x71\x71\
+\xff\x9c\x9c\x9c\xff\x99\x99\x99\xff\x99\x99\x99\xff\x99\x99\x99\
+\xff\x99\x99\x99\xff\x99\x99\x99\xff\x99\x99\x99\xff\x99\x99\x99\
+\xff\x99\x99\x99\xff\xa1\xa1\xa1\xff\x95\x95\x95\x98\x00\x00\x00\
+\x00\x00\x00\x00\x00\x00\x00\x00\x00\xbe\xbe\xbe\x6d\xa8\xa8\xa8\
+\xff\x99\x99\x99\xff\x99\x99\x99\xff\x99\x99\x99\xff\x99\x99\x99\
+\xff\x99\x99\x99\xff\x99\x99\x99\xff\x99\x99\x99\xff\x99\x99\x99\
+\xff\x99\x99\x99\xff\x84\x84\x84\xfe\xdd\xdd\xdd\x3b\x00\x00\x00\
+\x00\x00\x00\x00\x00\x00\x00\x00\x00\xd7\xd7\xd7\x53\xae\xae\xae\
+\xff\x99\x99\x99\xff\x99\x99\x99\xff\x99\x99\x99\xff\x99\x99\x99\
+\xff\x99\x99\x99\xff\x99\x99\x99\xff\x99\x99\x99\xff\x99\x99\x99\
+\xff\x9b\x9b\x9b\xff\x9a\x9a\x9a\xb9\x00\x00\x00\x00\x00\x00\x00\
+\x00\x00\x00\x00\x00\x00\x00\x00\x00\xf7\xf7\xf7\x0a\xbd\xbd\xbd\
+\xe4\x99\x99\x99\xff\x99\x99\x99\xff\x99\x99\x99\xff\x99\x99\x99\
+\xff\x99\x99\x99\xff\x99\x99\x99\xff\x99\x99\x99\xff\x99\x99\x99\
+\xff\x95\x95\x95\xe7\xef\xef\xef\x1e\x00\x00\x00\x00\x00\x00\x00\
+\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xee\xee\xee\
+\x3b\xb4\xb4\xb4\xee\x9a\x9a\x9a\xff\x99\x99\x99\xff\x99\x99\x99\
+\xff\x99\x99\x99\xff\x99\x99\x99\xff\x9c\x9c\x9c\xff\xba\xba\xba\
+\xdb\xee\xee\xee\x2a\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
+\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
+\x00\xf6\xf6\xf6\x1a\xd6\xd6\xd6\x8c\xb8\xb8\xb8\xd6\xaa\xaa\xaa\
+\xf8\xab\xab\xab\xf6\xbc\xbc\xbc\xcc\xdd\xdd\xdd\x74\xfb\xfb\xfb\
+\x0a\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xe3\x07\x9c\
+\x41\xc1\x03\x9c\x41\xc1\x01\x9c\x41\x80\x01\x9c\x41\xc1\x80\x9c\
+\x41\xc1\x80\x9c\x41\x9f\x00\x9c\x41\x08\x00\x9c\x41\x00\x00\x9c\
+\x41\x00\x00\x9c\x41\x00\x00\x9c\x41\xe0\x00\x9c\x41\xe0\x01\x9c\
+\x41\xe0\x01\x9c\x41\xf0\x03\x9c\x41\xf8\x07\x9c\x41\x28\x00\x00\
+\x00\x0c\x00\x00\x00\x18\x00\x00\x00\x01\x00\x20\x00\x00\x00\x00\
+\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
+\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x47\x46\x47\
+\x4f\x4e\x4e\x4e\xae\x45\x44\x45\x1c\x00\x00\x00\x00\x60\x5f\x60\
+\xa0\x57\x57\x57\xfd\x82\x82\x82\xf2\x55\x55\x55\x4b\x00\x00\x00\
+\x00\x00\x00\x00\x00\x00\x00\x00\x00\x4e\x4d\x4e\x44\x9a\x9a\x9a\
+\xff\xbd\xbd\xbd\xff\x84\x84\x84\xfc\x8f\x8f\x8f\x08\x94\x94\x94\
+\xe6\xbd\xbd\xbd\xff\x89\x89\x89\xff\x61\x61\x61\xff\x6e\x6e\x6e\
+\x4e\x00\x00\x00\x00\x00\x00\x00\x00\x77\x76\x77\x99\x99\x99\x99\
+\xff\xa4\xa4\xa4\xff\xb3\xb3\xb3\xff\x65\x65\x65\x46\x7f\x7f\x7f\
+\x9c\xc3\xc3\xc3\xff\xed\xed\xed\xff\xa2\xa2\xa2\xff\x5f\x5e\x5f\
+\xfd\x6a\x6a\x6a\x13\x00\x00\x00\x00\x6b\x6b\x6b\x3b\xa3\xa3\xa3\
+\xfe\x9a\x9a\x9a\xff\x9c\x9b\x9c\xf5\xbf\xbf\xbf\x08\x4b\x4a\x4b\
+\x1b\xa1\xa1\xa1\xff\xab\xab\xab\xff\xca\xca\xca\xff\x4d\x4d\x4d\
+\xff\x6f\x6e\x6f\xae\x00\x00\x00\x00\x00\x00\x00\x00\x8c\x8c\x8c\
+\x28\x98\x98\x98\x63\xb7\xb7\xb7\x13\x00\x00\x00\x00\x3d\x3c\x3d\
+\x3e\xac\xac\xac\xff\x99\x99\x99\xff\xa0\xa0\xa0\xff\xb2\xb2\xb2\
+\xff\x5b\x5b\x5b\xf0\x5e\x5e\x5e\xa5\x65\x65\x65\xee\x55\x55\x55\
+\x3f\x00\x00\x00\x00\x1b\x1a\x1b\x06\x6a\x6a\x6a\xbe\x6b\x6b\x6b\
+\xff\xa5\xa5\xa5\xff\x99\x99\x99\xff\x99\x99\x99\xff\xc2\xc2\xc2\
+\xff\x46\x46\x46\xfd\x9d\x9d\x9d\xfd\xbe\xbe\xbe\xff\x66\x66\x66\
+\xb8\x3c\x3b\x3c\x5a\x40\x40\x40\xfa\x8d\x8d\x8d\xff\x9e\x9e\x9e\
+\xff\x99\x99\x99\xff\x99\x99\x99\xff\x99\x99\x99\xff\xa4\xa4\xa4\
+\xff\x62\x62\x62\xfb\x8c\x8b\x8c\x98\x9d\x9c\x9d\xe2\x90\x90\x90\
+\x21\x69\x69\x69\xfb\xa1\xa1\xa1\xff\x99\x99\x99\xff\x99\x99\x99\
+\xff\x99\x99\x99\xff\x99\x99\x99\xff\x99\x99\x99\xff\x99\x99\x99\
+\xff\x68\x68\x68\xe0\x00\x00\x00\x00\x00\x00\x00\x00\x4c\x4b\x4c\
+\x4b\xa8\xa8\xa8\xff\x99\x99\x99\xff\x99\x99\x99\xff\x99\x99\x99\
+\xff\x99\x99\x99\xff\x99\x99\x99\xff\x99\x99\x99\xff\xa1\xa1\xa1\
+\xff\x65\x65\x65\x9b\x00\x00\x00\x00\x00\x00\x00\x00\x6c\x6c\x6c\
+\x26\xaa\xaa\xaa\xff\x99\x99\x99\xff\x99\x99\x99\xff\x99\x99\x99\
+\xff\x99\x99\x99\xff\x99\x99\x99\xff\x99\x99\x99\xff\x8a\x8a\x8a\
+\xf3\xae\xae\xae\x0b\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
+\x00\x91\x91\x91\xca\x9d\x9d\x9d\xff\x99\x99\x99\xff\x99\x99\x99\
+\xff\x99\x99\x99\xff\x99\x99\x99\xff\xa2\xa1\xa2\xf8\x6a\x6a\x6a\
+\x20\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
+\x00\xbf\xbf\xbf\x01\x90\x90\x90\x6b\x9d\x9d\x9d\xed\xa7\xa7\xa7\
+\xfe\xa8\xa8\xa8\xfb\x99\x99\x99\xce\x97\x97\x97\x21\x00\x00\x00\
+\x00\x00\x00\x00\x00\xc4\x30\x9c\x41\x80\x10\x9c\x41\x80\x00\x9c\
+\x41\x80\x00\x9c\x41\xc4\x00\x9c\x41\x10\x00\x9c\x41\x00\x00\x9c\
+\x41\x00\x00\x9c\x41\xc0\x00\x9c\x41\xc0\x00\x9c\x41\xe0\x10\x9c\
+\x41\xe0\x30\x9c\x41\
\x00\x00\x23\x9a\
\x3c\
\x3f\x78\x6d\x6c\x20\x76\x65\x72\x73\x69\x6f\x6e\x3d\x22\x31\x2e\
@@ -13213,6 +13330,10 @@\x0c\x07\x55\xc7\
\x00\x71\
\x00\x75\x00\x69\x00\x74\x00\x2e\x00\x73\x00\x76\x00\x67\
+\x00\x06\
+\x06\xea\x4f\x9f\
+\x00\x68\
+\x00\x67\x00\x2e\x00\x69\x00\x63\x00\x6f\
\x00\x07\
\x03\x5a\x5a\x27\
\x00\x6c\
@@ -13261,27 +13382,28 @@
qt_resource_struct = "\
\x00\x00\x00\x00\x00\x02\x00\x00\x00\x01\x00\x00\x00\x01\
-\x00\x00\x00\x00\x00\x02\x00\x00\x00\x14\x00\x00\x00\x02\
+\x00\x00\x00\x00\x00\x02\x00\x00\x00\x15\x00\x00\x00\x02\
\x00\x00\x00\x10\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\
\x00\x00\x00\xa0\x00\x00\x00\x00\x00\x01\x00\x00\xb7\x00\
-\x00\x00\x00\xe6\x00\x00\x00\x00\x00\x01\x00\x01\x7b\x8f\
+\x00\x00\x00\xf8\x00\x00\x00\x00\x00\x01\x00\x01\x82\xb9\
\x00\x00\x00\x8a\x00\x00\x00\x00\x00\x01\x00\x00\xb6\x40\
-\x00\x00\x01\x44\x00\x00\x00\x00\x00\x01\x00\x02\x8b\x54\
-\x00\x00\x01\xd8\x00\x00\x00\x00\x00\x01\x00\x03\x33\x26\
+\x00\x00\x01\x56\x00\x00\x00\x00\x00\x01\x00\x02\x92\x7e\
+\x00\x00\x01\xea\x00\x00\x00\x00\x00\x01\x00\x03\x3a\x50\
\x00\x00\x00\x26\x00\x00\x00\x00\x00\x01\x00\x00\x3d\x90\
\x00\x00\x00\x3e\x00\x00\x00\x00\x00\x01\x00\x00\x41\x9b\
-\x00\x00\x01\xa8\x00\x00\x00\x00\x00\x01\x00\x02\xe0\x18\
-\x00\x00\x01\x2e\x00\x00\x00\x00\x00\x01\x00\x02\x6c\x05\
+\x00\x00\x01\xba\x00\x00\x00\x00\x00\x01\x00\x02\xe7\x42\
+\x00\x00\x00\xe6\x00\x00\x00\x00\x00\x01\x00\x01\x7b\x8f\
+\x00\x00\x01\x40\x00\x00\x00\x00\x00\x01\x00\x02\x73\x2f\
\x00\x00\x00\xbe\x00\x00\x00\x00\x00\x01\x00\x01\x34\x6e\
-\x00\x00\x00\xfa\x00\x00\x00\x00\x00\x01\x00\x01\x9f\x2d\
+\x00\x00\x01\x0c\x00\x00\x00\x00\x00\x01\x00\x01\xa6\x57\
\x00\x00\x00\x54\x00\x00\x00\x00\x00\x01\x00\x00\x98\xf0\
-\x00\x00\x01\x5e\x00\x00\x00\x00\x00\x01\x00\x02\xa6\xdc\
-\x00\x00\x01\x16\x00\x00\x00\x00\x00\x01\x00\x01\xbd\xfd\
+\x00\x00\x01\x70\x00\x00\x00\x00\x00\x01\x00\x02\xae\x06\
+\x00\x00\x01\x28\x00\x00\x00\x00\x00\x01\x00\x01\xc5\x27\
\x00\x00\x00\x74\x00\x00\x00\x00\x00\x01\x00\x00\xa9\x63\
\x00\x00\x00\xd0\x00\x00\x00\x00\x00\x01\x00\x01\x54\x6d\
-\x00\x00\x01\x7a\x00\x00\x00\x00\x00\x01\x00\x02\xc6\xdb\
-\x00\x00\x01\x90\x00\x00\x00\x00\x00\x01\x00\x02\xd3\x32\
-\x00\x00\x01\xbe\x00\x00\x00\x00\x00\x01\x00\x03\x00\x88\
+\x00\x00\x01\x8c\x00\x00\x00\x00\x00\x01\x00\x02\xce\x05\
+\x00\x00\x01\xa2\x00\x00\x00\x00\x00\x01\x00\x02\xda\x5c\
+\x00\x00\x01\xd0\x00\x00\x00\x00\x00\x01\x00\x03\x07\xb2\
"
def qInitResources():
|
Loading...