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

Class HTMLDelegate

source code

               object --+                    
                        |                    
        sip.simplewrapper --+                
                            |                
                  sip.wrapper --+            
                                |            
             PyQt5.QtCore.QObject --+        
                                    |        
PyQt5.QtWidgets.QAbstractItemDelegate --+    
                                        |    
      PyQt5.QtWidgets.QStyledItemDelegate --+
                                            |
                                           HTMLDelegate

A class to display the HTML text in QTreeView.

Nested Classes

Inherited from PyQt5.QtWidgets.QAbstractItemDelegate: EndEditHint

Instance Methods
 
__init__(self, parent=None, check_for_ros_names=True, dec_ascent=False, is_node=False)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
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 PyQt5.QtWidgets.QStyledItemDelegate: createEditor, displayText, editorEvent, eventFilter, initStyleOption, itemEditorFactory, setEditorData, setItemEditorFactory, setModelData, updateEditorGeometry

Inherited from PyQt5.QtWidgets.QAbstractItemDelegate: closeEditor, commitData, destroyEditor, helpEvent, sizeHintChanged

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

Inherited from sip.simplewrapper: __new__

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

Class Methods
 
toHTML(cls, text, check_for_ros_names=True, is_node=False)
Creates a HTML representation of the given text.
source code
Class Variables

Inherited from PyQt5.QtWidgets.QAbstractItemDelegate: EditNextItem, EditPreviousItem, NoHint, RevertModelCache, SubmitModelCache

Inherited from PyQt5.QtCore.QObject: staticMetaObject

Properties

Inherited from object: __class__

Method Details

__init__(self, parent=None, check_for_ros_names=True, dec_ascent=False, is_node=False)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

paint(self, painter, option, index)

source code 

Use the QTextDokument to represent the HTML text.

Overrides: PyQt5.QtWidgets.QAbstractItemDelegate.paint

sizeHint(self, option, index)

source code 

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

Overrides: PyQt5.QtWidgets.QAbstractItemDelegate.sizeHint

toHTML(cls, text, check_for_ros_names=True, is_node=False)
Class Method

source code 

Creates a HTML representation of the given text. It could be a node, topic service or group name. :param str text: a name with ROS representation :return: the HTML representation of the given name :rtype: str