|
1 <!DOCTYPE html> |
|
2 <html><head> |
|
3 <title>eric6.Helpviewer.GreaseMonkey.GreaseMonkeyConfiguration.GreaseMonkeyConfigurationListDelegate</title> |
|
4 <meta charset="UTF-8"> |
|
5 <style> |
|
6 body { |
|
7 background: #EDECE6; |
|
8 margin: 0em 1em 10em 1em; |
|
9 color: black; |
|
10 } |
|
11 |
|
12 h1 { color: white; background: #85774A; } |
|
13 h2 { color: white; background: #85774A; } |
|
14 h3 { color: white; background: #9D936E; } |
|
15 h4 { color: white; background: #9D936E; } |
|
16 |
|
17 a { color: #BA6D36; } |
|
18 |
|
19 </style> |
|
20 </head> |
|
21 <body><a NAME="top" ID="top"></a> |
|
22 <h1>eric6.Helpviewer.GreaseMonkey.GreaseMonkeyConfiguration.GreaseMonkeyConfigurationListDelegate</h1> |
|
23 <p> |
|
24 Module implementing a delegate for the special list widget for GreaseMonkey |
|
25 scripts. |
|
26 </p> |
|
27 <h3>Global Attributes</h3> |
|
28 <table> |
|
29 <tr><td>None</td></tr> |
|
30 </table> |
|
31 <h3>Classes</h3> |
|
32 <table> |
|
33 <tr> |
|
34 <td><a href="#GreaseMonkeyConfigurationListDelegate">GreaseMonkeyConfigurationListDelegate</a></td> |
|
35 <td>Class implementing a delegate for the special list widget for GreaseMonkey scripts.</td> |
|
36 </tr> |
|
37 </table> |
|
38 <h3>Functions</h3> |
|
39 <table> |
|
40 <tr><td>None</td></tr> |
|
41 </table> |
|
42 <hr /><hr /> |
|
43 <a NAME="GreaseMonkeyConfigurationListDelegate" ID="GreaseMonkeyConfigurationListDelegate"></a> |
|
44 <h2>GreaseMonkeyConfigurationListDelegate</h2> |
|
45 <p> |
|
46 Class implementing a delegate for the special list widget for GreaseMonkey |
|
47 scripts. |
|
48 </p> |
|
49 <h3>Derived from</h3> |
|
50 QStyledItemDelegate |
|
51 <h3>Class Attributes</h3> |
|
52 <table> |
|
53 <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> |
|
54 </table> |
|
55 <h3>Class Methods</h3> |
|
56 <table> |
|
57 <tr><td>None</td></tr> |
|
58 </table> |
|
59 <h3>Methods</h3> |
|
60 <table> |
|
61 <tr> |
|
62 <td><a href="#GreaseMonkeyConfigurationListDelegate.__init__">GreaseMonkeyConfigurationListDelegate</a></td> |
|
63 <td>Constructor</td> |
|
64 </tr><tr> |
|
65 <td><a href="#GreaseMonkeyConfigurationListDelegate.padding">padding</a></td> |
|
66 <td>Public method to get the padding used.</td> |
|
67 </tr><tr> |
|
68 <td><a href="#GreaseMonkeyConfigurationListDelegate.paint">paint</a></td> |
|
69 <td>Public method to paint the specified list item.</td> |
|
70 </tr><tr> |
|
71 <td><a href="#GreaseMonkeyConfigurationListDelegate.sizeHint">sizeHint</a></td> |
|
72 <td>Public method to get a size hint for the specified list item.</td> |
|
73 </tr> |
|
74 </table> |
|
75 <h3>Static Methods</h3> |
|
76 <table> |
|
77 <tr><td>None</td></tr> |
|
78 </table> |
|
79 <a NAME="GreaseMonkeyConfigurationListDelegate.__init__" ID="GreaseMonkeyConfigurationListDelegate.__init__"></a> |
|
80 <h4>GreaseMonkeyConfigurationListDelegate (Constructor)</h4> |
|
81 <b>GreaseMonkeyConfigurationListDelegate</b>(<i>parent=None</i>) |
|
82 <p> |
|
83 Constructor |
|
84 </p><dl> |
|
85 <dt><i>parent</i></dt> |
|
86 <dd> |
|
87 reference to the parent object (QObject) |
|
88 </dd> |
|
89 </dl><a NAME="GreaseMonkeyConfigurationListDelegate.padding" ID="GreaseMonkeyConfigurationListDelegate.padding"></a> |
|
90 <h4>GreaseMonkeyConfigurationListDelegate.padding</h4> |
|
91 <b>padding</b>(<i></i>) |
|
92 <p> |
|
93 Public method to get the padding used. |
|
94 </p><dl> |
|
95 <dt>Returns:</dt> |
|
96 <dd> |
|
97 padding used (integer) |
|
98 </dd> |
|
99 </dl><a NAME="GreaseMonkeyConfigurationListDelegate.paint" ID="GreaseMonkeyConfigurationListDelegate.paint"></a> |
|
100 <h4>GreaseMonkeyConfigurationListDelegate.paint</h4> |
|
101 <b>paint</b>(<i>painter, option, index</i>) |
|
102 <p> |
|
103 Public method to paint the specified list item. |
|
104 </p><dl> |
|
105 <dt><i>painter</i></dt> |
|
106 <dd> |
|
107 painter object to paint to (QPainter) |
|
108 </dd><dt><i>option</i></dt> |
|
109 <dd> |
|
110 style option used for painting (QStyleOptionViewItem) |
|
111 </dd><dt><i>index</i></dt> |
|
112 <dd> |
|
113 model index of the item (QModelIndex) |
|
114 </dd> |
|
115 </dl><a NAME="GreaseMonkeyConfigurationListDelegate.sizeHint" ID="GreaseMonkeyConfigurationListDelegate.sizeHint"></a> |
|
116 <h4>GreaseMonkeyConfigurationListDelegate.sizeHint</h4> |
|
117 <b>sizeHint</b>(<i>option, index</i>) |
|
118 <p> |
|
119 Public method to get a size hint for the specified list item. |
|
120 </p><dl> |
|
121 <dt><i>option</i></dt> |
|
122 <dd> |
|
123 style option used for painting (QStyleOptionViewItem) |
|
124 </dd><dt><i>index</i></dt> |
|
125 <dd> |
|
126 model index of the item (QModelIndex) |
|
127 </dd> |
|
128 </dl><dl> |
|
129 <dt>Returns:</dt> |
|
130 <dd> |
|
131 size hint (QSize) |
|
132 </dd> |
|
133 </dl> |
|
134 <div align="right"><a href="#top">Up</a></div> |
|
135 <hr /> |
|
136 </body></html> |