|
1 <!DOCTYPE html> |
|
2 <html><head> |
|
3 <title>eric7.WebBrowser.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> |
|
22 <a NAME="top" ID="top"></a> |
|
23 <h1>eric7.WebBrowser.GreaseMonkey.GreaseMonkeyConfiguration.GreaseMonkeyConfigurationListDelegate</h1> |
|
24 |
|
25 <p> |
|
26 Module implementing a delegate for the special list widget for GreaseMonkey |
|
27 scripts. |
|
28 </p> |
|
29 <h3>Global Attributes</h3> |
|
30 |
|
31 <table> |
|
32 <tr><td>None</td></tr> |
|
33 </table> |
|
34 <h3>Classes</h3> |
|
35 |
|
36 <table> |
|
37 |
|
38 <tr> |
|
39 <td><a href="#GreaseMonkeyConfigurationListDelegate">GreaseMonkeyConfigurationListDelegate</a></td> |
|
40 <td>Class implementing a delegate for the special list widget for GreaseMonkey scripts.</td> |
|
41 </tr> |
|
42 </table> |
|
43 <h3>Functions</h3> |
|
44 |
|
45 <table> |
|
46 <tr><td>None</td></tr> |
|
47 </table> |
|
48 <hr /> |
|
49 <hr /> |
|
50 <a NAME="GreaseMonkeyConfigurationListDelegate" ID="GreaseMonkeyConfigurationListDelegate"></a> |
|
51 <h2>GreaseMonkeyConfigurationListDelegate</h2> |
|
52 |
|
53 <p> |
|
54 Class implementing a delegate for the special list widget for GreaseMonkey |
|
55 scripts. |
|
56 </p> |
|
57 <h3>Derived from</h3> |
|
58 QStyledItemDelegate |
|
59 <h3>Class Attributes</h3> |
|
60 |
|
61 <table> |
|
62 <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> |
|
63 </table> |
|
64 <h3>Class Methods</h3> |
|
65 |
|
66 <table> |
|
67 <tr><td>None</td></tr> |
|
68 </table> |
|
69 <h3>Methods</h3> |
|
70 |
|
71 <table> |
|
72 |
|
73 <tr> |
|
74 <td><a href="#GreaseMonkeyConfigurationListDelegate.__init__">GreaseMonkeyConfigurationListDelegate</a></td> |
|
75 <td>Constructor</td> |
|
76 </tr> |
|
77 <tr> |
|
78 <td><a href="#GreaseMonkeyConfigurationListDelegate.padding">padding</a></td> |
|
79 <td>Public method to get the padding used.</td> |
|
80 </tr> |
|
81 <tr> |
|
82 <td><a href="#GreaseMonkeyConfigurationListDelegate.paint">paint</a></td> |
|
83 <td>Public method to paint the specified list item.</td> |
|
84 </tr> |
|
85 <tr> |
|
86 <td><a href="#GreaseMonkeyConfigurationListDelegate.sizeHint">sizeHint</a></td> |
|
87 <td>Public method to get a size hint for the specified list item.</td> |
|
88 </tr> |
|
89 </table> |
|
90 <h3>Static Methods</h3> |
|
91 |
|
92 <table> |
|
93 <tr><td>None</td></tr> |
|
94 </table> |
|
95 |
|
96 <a NAME="GreaseMonkeyConfigurationListDelegate.__init__" ID="GreaseMonkeyConfigurationListDelegate.__init__"></a> |
|
97 <h4>GreaseMonkeyConfigurationListDelegate (Constructor)</h4> |
|
98 <b>GreaseMonkeyConfigurationListDelegate</b>(<i>parent=None</i>) |
|
99 |
|
100 <p> |
|
101 Constructor |
|
102 </p> |
|
103 <dl> |
|
104 |
|
105 <dt><i>parent</i></dt> |
|
106 <dd> |
|
107 reference to the parent object (QObject) |
|
108 </dd> |
|
109 </dl> |
|
110 <a NAME="GreaseMonkeyConfigurationListDelegate.padding" ID="GreaseMonkeyConfigurationListDelegate.padding"></a> |
|
111 <h4>GreaseMonkeyConfigurationListDelegate.padding</h4> |
|
112 <b>padding</b>(<i></i>) |
|
113 |
|
114 <p> |
|
115 Public method to get the padding used. |
|
116 </p> |
|
117 <dl> |
|
118 <dt>Return:</dt> |
|
119 <dd> |
|
120 padding used (integer) |
|
121 </dd> |
|
122 </dl> |
|
123 <a NAME="GreaseMonkeyConfigurationListDelegate.paint" ID="GreaseMonkeyConfigurationListDelegate.paint"></a> |
|
124 <h4>GreaseMonkeyConfigurationListDelegate.paint</h4> |
|
125 <b>paint</b>(<i>painter, option, index</i>) |
|
126 |
|
127 <p> |
|
128 Public method to paint the specified list item. |
|
129 </p> |
|
130 <dl> |
|
131 |
|
132 <dt><i>painter</i></dt> |
|
133 <dd> |
|
134 painter object to paint to (QPainter) |
|
135 </dd> |
|
136 <dt><i>option</i></dt> |
|
137 <dd> |
|
138 style option used for painting (QStyleOptionViewItem) |
|
139 </dd> |
|
140 <dt><i>index</i></dt> |
|
141 <dd> |
|
142 model index of the item (QModelIndex) |
|
143 </dd> |
|
144 </dl> |
|
145 <a NAME="GreaseMonkeyConfigurationListDelegate.sizeHint" ID="GreaseMonkeyConfigurationListDelegate.sizeHint"></a> |
|
146 <h4>GreaseMonkeyConfigurationListDelegate.sizeHint</h4> |
|
147 <b>sizeHint</b>(<i>option, index</i>) |
|
148 |
|
149 <p> |
|
150 Public method to get a size hint for the specified list item. |
|
151 </p> |
|
152 <dl> |
|
153 |
|
154 <dt><i>option</i></dt> |
|
155 <dd> |
|
156 style option used for painting (QStyleOptionViewItem) |
|
157 </dd> |
|
158 <dt><i>index</i></dt> |
|
159 <dd> |
|
160 model index of the item (QModelIndex) |
|
161 </dd> |
|
162 </dl> |
|
163 <dl> |
|
164 <dt>Return:</dt> |
|
165 <dd> |
|
166 size hint (QSize) |
|
167 </dd> |
|
168 </dl> |
|
169 <div align="right"><a href="#top">Up</a></div> |
|
170 <hr /> |
|
171 </body></html> |