usdmanager.linenumbers module¶
Line numbers widget for optimized display of line numbers on the left side of a text widget.
-
class
usdmanager.linenumbers.
LineNumbers
(parent)[source]¶ Bases:
usdmanager.linenumbers.PlainTextLineNumbers
Line number widget for QTextBrowser and QTextEdit widgets. Currently does not support QPlainTextEdit widgets.
-
class
usdmanager.linenumbers.
PlainTextLineNumbers
(parent)[source]¶ Bases:
sphinx.ext.autodoc.importer._MockObject
Line number widget for QPlainTextEdit widgets.
-
highlightCurrentLine
()[source]¶ Highlight the line the cursor is on.
Returns: If highlighting was enabled or not. Rtype: bool
-
lineWidth
(count=0)[source]¶ Calculate the width of the widget based on the block count.
Parameters: - count : int
Block count. Defaults to current block count.
-
mouseMoveEvent
(event)[source]¶ Track mouse movement to select more lines if press is active.
Parameters: - event : QMouseEvent
Mouse move event
-