Package node_manager_fkie :: Module html_delegate :: Class HTMLDelegate
[frames] | no frames]

Class HTMLDelegate

source code

           object --+                    
                    |                    
    sip.simplewrapper --+                
                        |                
              sip.wrapper --+            
                            |            
         PyQt4.QtCore.QObject --+        
                                |        
PyQt4.QtGui.QAbstractItemDelegate --+    
                                    |    
      PyQt4.QtGui.QStyledItemDelegate --+
                                        |
                                       HTMLDelegate

A class to display the HTML text in QTreeView.

Nested Classes

Inherited from PyQt4.QtGui.QAbstractItemDelegate: EndEditHint

Instance Methods
 
paint(self, painter, option, index)
Use the QTextDokument to represent the HTML text.
source code
 
sizeHint(self, option, index)
Determines and returns the size of the text after the format.
source code

Inherited from PyQt4.QtGui.QStyledItemDelegate: createEditor, displayText, editorEvent, eventFilter, initStyleOption, itemEditorFactory, setEditorData, setItemEditorFactory, setModelData, updateEditorGeometry

Inherited from PyQt4.QtGui.QAbstractItemDelegate: closeEditor, commitData, elidedText, helpEvent, sizeHintChanged

Inherited from PyQt4.QtCore.QObject: __getattr__, blockSignals, childEvent, children, connect, connectNotify, customEvent, deleteLater, destroyed, disconnect, disconnectNotify, dumpObjectInfo, dumpObjectTree, dynamicPropertyNames, emit, event, findChild, findChildren, inherits, installEventFilter, isWidgetType, killTimer, metaObject, moveToThread, objectName, parent, property, pyqtConfigure, receivers, removeEventFilter, sender, senderSignalIndex, setObjectName, setParent, setProperty, signalsBlocked, startTimer, thread, timerEvent, tr, trUtf8

Inherited from sip.simplewrapper: __init__, __new__

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Methods
str
toHTML(cls, text)
Creates a HTML representation of the given text.
source code
Class Variables

Inherited from PyQt4.QtGui.QAbstractItemDelegate: EditNextItem, EditPreviousItem, NoHint, RevertModelCache, SubmitModelCache

Inherited from PyQt4.QtCore.QObject: staticMetaObject

Properties

Inherited from object: __class__

Method Details

paint(self, painter, option, index)

source code 

Use the QTextDokument to represent the HTML text.

Overrides: PyQt4.QtGui.QAbstractItemDelegate.paint

sizeHint(self, option, index)

source code 

Determines and returns the size of the text after the format.

Overrides: PyQt4.QtGui.QAbstractItemDelegate.sizeHint

toHTML(cls, text)
Class Method

source code 

Creates a HTML representation of the given text. It could be a node, topic service or group name.

Parameters:
  • text (str) - a name with ROS representation
Returns: str
the HTML representation of the given name