X-Git-Url: http://git.onelab.eu/?p=sface.git;a=blobdiff_plain;f=sface%2Fxmlwidget.py;h=b11f1edcf9b4e613bbcbbe411e2db975bf909ed0;hp=a2d3ec2312d6a9a24c484e843ba4c68df92e5779;hb=51c6beef7779eeb4a1e8565f8107b2899bf7a814;hpb=5ca19693a97294cff7be4a2e3cbb92ce5a039794
diff --git a/sface/xmlwidget.py b/sface/xmlwidget.py
index a2d3ec2..b11f1ed 100644
--- a/sface/xmlwidget.py
+++ b/sface/xmlwidget.py
@@ -263,9 +263,9 @@ class ElemNodeDelegate(QAbstractItemDelegate):
highGlobPattern = '<%s%s>'
highAttPattern = ' %s="%s"'
def getHtmlText(plainText, globPattern, attPattern):
- print "PLAIN TEXT:", plainText
+# print "PLAIN TEXT:", plainText
tmp = plainText.split(' ', 1)
- print "TMP:", tmp
+# print "TMP:", tmp
elemName = tmp[0]
AttListHtml = ''
if len(tmp) > 1:
@@ -281,7 +281,7 @@ class ElemNodeDelegate(QAbstractItemDelegate):
def colorize(color, text):
return '' + text + ''
text = str(index.model().data(index).property('content').toString())
- print "TEXT:", text
+# print "TEXT:", text
if option.state & QStyle.State_Selected:
htmlText = colorize(palette.highlightedText().color().name(),
getHtmlText(text, highGlobPattern, highAttPattern))
@@ -293,7 +293,7 @@ class ElemNodeDelegate(QAbstractItemDelegate):
if option.state & QStyle.State_Selected \
else palette.base().color()
painter.save()
- print "COLOR:", color.name()
+# print "COLOR:", color.name()
# voodoo: if not highlighted, filling the rect
# with the base color makes no difference
painter.fillRect(option.rect, color)