src/eric7/Documentation/Source/eric7.WebBrowser.GreaseMonkey.GreaseMonkeyConfiguration.GreaseMonkeyConfigurationListDelegate.html

Sat, 26 Apr 2025 12:34:32 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 26 Apr 2025 12:34:32 +0200
branch
eric7
changeset 11240
c48c615c04a3
parent 10479
856476537696
permissions
-rw-r--r--

MicroPython
- Added a configuration option to disable the support for the no longer produced Pimoroni Pico Wireless Pack.

<!DOCTYPE html>
<html><head>
<title>eric7.WebBrowser.GreaseMonkey.GreaseMonkeyConfiguration.GreaseMonkeyConfigurationListDelegate</title>
<meta charset="UTF-8">
<link rel="stylesheet" href="styles.css">
</head>
<body>
<a NAME="top" ID="top"></a>
<h1>eric7.WebBrowser.GreaseMonkey.GreaseMonkeyConfiguration.GreaseMonkeyConfigurationListDelegate</h1>
<p>
Module implementing a delegate for the special list widget for GreaseMonkey
scripts.
</p>

<h3>Global Attributes</h3>
<table>
<tr><td>None</td></tr>
</table>

<h3>Classes</h3>
<table>
<tr>
<td><a href="#GreaseMonkeyConfigurationListDelegate">GreaseMonkeyConfigurationListDelegate</a></td>
<td>Class implementing a delegate for the special list widget for GreaseMonkey scripts.</td>
</tr>
</table>

<h3>Functions</h3>
<table>
<tr><td>None</td></tr>
</table>

<hr />
<hr />
<a NAME="GreaseMonkeyConfigurationListDelegate" ID="GreaseMonkeyConfigurationListDelegate"></a>
<h2>GreaseMonkeyConfigurationListDelegate</h2>
<p>
    Class implementing a delegate for the special list widget for GreaseMonkey
    scripts.
</p>

<h3>Derived from</h3>
QStyledItemDelegate
<h3>Class Attributes</h3>
<table>
<tr><td>CheckBoxSize</td></tr>
<tr><td>IconSize</td></tr>
<tr><td>ItemWidth</td></tr>
<tr><td>MinPadding</td></tr>
<tr><td>RemoveIconSize</td></tr>
</table>

<h3>Class Methods</h3>
<table>
<tr><td>None</td></tr>
</table>

<h3>Methods</h3>
<table>
<tr>
<td><a href="#GreaseMonkeyConfigurationListDelegate.__init__">GreaseMonkeyConfigurationListDelegate</a></td>
<td>Constructor</td>
</tr>
<tr>
<td><a href="#GreaseMonkeyConfigurationListDelegate.padding">padding</a></td>
<td>Public method to get the padding used.</td>
</tr>
<tr>
<td><a href="#GreaseMonkeyConfigurationListDelegate.paint">paint</a></td>
<td>Public method to paint the specified list item.</td>
</tr>
<tr>
<td><a href="#GreaseMonkeyConfigurationListDelegate.sizeHint">sizeHint</a></td>
<td>Public method to get a size hint for the specified list item.</td>
</tr>
</table>

<h3>Static Methods</h3>
<table>
<tr><td>None</td></tr>
</table>


<a NAME="GreaseMonkeyConfigurationListDelegate.__init__" ID="GreaseMonkeyConfigurationListDelegate.__init__"></a>
<h4>GreaseMonkeyConfigurationListDelegate (Constructor)</h4>
<b>GreaseMonkeyConfigurationListDelegate</b>(<i>parent=None</i>)
<p>
        Constructor
</p>

<dl>

<dt><i>parent</i> (QObject)</dt>
<dd>
reference to the parent object
</dd>
</dl>
<a NAME="GreaseMonkeyConfigurationListDelegate.padding" ID="GreaseMonkeyConfigurationListDelegate.padding"></a>
<h4>GreaseMonkeyConfigurationListDelegate.padding</h4>
<b>padding</b>(<i></i>)
<p>
        Public method to get the padding used.
</p>

<dl>
<dt>Return:</dt>
<dd>
padding used
</dd>
</dl>
<dl>
<dt>Return Type:</dt>
<dd>
int
</dd>
</dl>
<a NAME="GreaseMonkeyConfigurationListDelegate.paint" ID="GreaseMonkeyConfigurationListDelegate.paint"></a>
<h4>GreaseMonkeyConfigurationListDelegate.paint</h4>
<b>paint</b>(<i>painter, option, index</i>)
<p>
        Public method to paint the specified list item.
</p>

<dl>

<dt><i>painter</i> (QPainter)</dt>
<dd>
painter object to paint to
</dd>
<dt><i>option</i> (QStyleOptionViewItem)</dt>
<dd>
style option used for painting
</dd>
<dt><i>index</i> (QModelIndex)</dt>
<dd>
model index of the item
</dd>
</dl>
<a NAME="GreaseMonkeyConfigurationListDelegate.sizeHint" ID="GreaseMonkeyConfigurationListDelegate.sizeHint"></a>
<h4>GreaseMonkeyConfigurationListDelegate.sizeHint</h4>
<b>sizeHint</b>(<i>option, index</i>)
<p>
        Public method to get a size hint for the specified list item.
</p>

<dl>

<dt><i>option</i> (QStyleOptionViewItem)</dt>
<dd>
style option used for painting
</dd>
<dt><i>index</i> (QModelIndex)</dt>
<dd>
model index of the item
</dd>
</dl>
<dl>
<dt>Return:</dt>
<dd>
size hint
</dd>
</dl>
<dl>
<dt>Return Type:</dt>
<dd>
QSize
</dd>
</dl>
<div align="right"><a href="#top">Up</a></div>
<hr />
</body></html>

eric ide

mercurial