|
1 <!DOCTYPE html> |
|
2 <html><head> |
|
3 <title>eric6.E5Gui.E5LineEditButton</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.E5Gui.E5LineEditButton</h1> |
|
23 <p> |
|
24 Module implementing a button class to be used with E5LineEdit. |
|
25 </p> |
|
26 <h3>Global Attributes</h3> |
|
27 <table> |
|
28 <tr><td>None</td></tr> |
|
29 </table> |
|
30 <h3>Classes</h3> |
|
31 <table> |
|
32 <tr> |
|
33 <td><a href="#E5LineEditButton">E5LineEditButton</a></td> |
|
34 <td>Class implementing a button to be used with E5LineEdit.</td> |
|
35 </tr> |
|
36 </table> |
|
37 <h3>Functions</h3> |
|
38 <table> |
|
39 <tr><td>None</td></tr> |
|
40 </table> |
|
41 <hr /><hr /> |
|
42 <a NAME="E5LineEditButton" ID="E5LineEditButton"></a> |
|
43 <h2>E5LineEditButton</h2> |
|
44 <p> |
|
45 Class implementing a button to be used with E5LineEdit. |
|
46 </p> |
|
47 <h3>Derived from</h3> |
|
48 QAbstractButton |
|
49 <h3>Class Attributes</h3> |
|
50 <table> |
|
51 <tr><td>None</td></tr> |
|
52 </table> |
|
53 <h3>Class Methods</h3> |
|
54 <table> |
|
55 <tr><td>None</td></tr> |
|
56 </table> |
|
57 <h3>Methods</h3> |
|
58 <table> |
|
59 <tr> |
|
60 <td><a href="#E5LineEditButton.__init__">E5LineEditButton</a></td> |
|
61 <td>Constructor</td> |
|
62 </tr><tr> |
|
63 <td><a href="#E5LineEditButton.__clicked">__clicked</a></td> |
|
64 <td>Private slot to handle a button click.</td> |
|
65 </tr><tr> |
|
66 <td><a href="#E5LineEditButton.menu">menu</a></td> |
|
67 <td>Public method to get a reference to the menu.</td> |
|
68 </tr><tr> |
|
69 <td><a href="#E5LineEditButton.paintEvent">paintEvent</a></td> |
|
70 <td>Protected method handling a paint event.</td> |
|
71 </tr><tr> |
|
72 <td><a href="#E5LineEditButton.setIcon">setIcon</a></td> |
|
73 <td>Public method to set the button icon.</td> |
|
74 </tr><tr> |
|
75 <td><a href="#E5LineEditButton.setMenu">setMenu</a></td> |
|
76 <td>Public method to set the button menu.</td> |
|
77 </tr> |
|
78 </table> |
|
79 <h3>Static Methods</h3> |
|
80 <table> |
|
81 <tr><td>None</td></tr> |
|
82 </table> |
|
83 <a NAME="E5LineEditButton.__init__" ID="E5LineEditButton.__init__"></a> |
|
84 <h4>E5LineEditButton (Constructor)</h4> |
|
85 <b>E5LineEditButton</b>(<i>parent=None</i>) |
|
86 <p> |
|
87 Constructor |
|
88 </p><dl> |
|
89 <dt><i>parent</i></dt> |
|
90 <dd> |
|
91 reference to the parent widget (QWidget) |
|
92 </dd> |
|
93 </dl><a NAME="E5LineEditButton.__clicked" ID="E5LineEditButton.__clicked"></a> |
|
94 <h4>E5LineEditButton.__clicked</h4> |
|
95 <b>__clicked</b>(<i></i>) |
|
96 <p> |
|
97 Private slot to handle a button click. |
|
98 </p><a NAME="E5LineEditButton.menu" ID="E5LineEditButton.menu"></a> |
|
99 <h4>E5LineEditButton.menu</h4> |
|
100 <b>menu</b>(<i></i>) |
|
101 <p> |
|
102 Public method to get a reference to the menu. |
|
103 </p><dl> |
|
104 <dt>Returns:</dt> |
|
105 <dd> |
|
106 reference to the associated menu (QMenu) |
|
107 </dd> |
|
108 </dl><a NAME="E5LineEditButton.paintEvent" ID="E5LineEditButton.paintEvent"></a> |
|
109 <h4>E5LineEditButton.paintEvent</h4> |
|
110 <b>paintEvent</b>(<i>evt</i>) |
|
111 <p> |
|
112 Protected method handling a paint event. |
|
113 </p><dl> |
|
114 <dt><i>evt</i></dt> |
|
115 <dd> |
|
116 reference to the paint event (QPaintEvent) |
|
117 </dd> |
|
118 </dl><a NAME="E5LineEditButton.setIcon" ID="E5LineEditButton.setIcon"></a> |
|
119 <h4>E5LineEditButton.setIcon</h4> |
|
120 <b>setIcon</b>(<i>icon</i>) |
|
121 <p> |
|
122 Public method to set the button icon. |
|
123 </p><dl> |
|
124 <dt><i>icon</i></dt> |
|
125 <dd> |
|
126 icon to be set (QIcon) |
|
127 </dd> |
|
128 </dl><a NAME="E5LineEditButton.setMenu" ID="E5LineEditButton.setMenu"></a> |
|
129 <h4>E5LineEditButton.setMenu</h4> |
|
130 <b>setMenu</b>(<i>menu</i>) |
|
131 <p> |
|
132 Public method to set the button menu. |
|
133 </p><dl> |
|
134 <dt><i>menu</i></dt> |
|
135 <dd> |
|
136 reference to the menu (QMenu) |
|
137 </dd> |
|
138 </dl> |
|
139 <div align="right"><a href="#top">Up</a></div> |
|
140 <hr /> |
|
141 </body></html> |