Documentation/Source/eric5.E5Gui.E5LineEditButton.html

changeset 643
719db11dd4df
child 945
8cd4d08fa9f6
child 1278
fb0460fd00b9
equal deleted inserted replaced
641:b06d4df23797 643:719db11dd4df
1 <?xml version="1.0" encoding="utf-8"?>
2 <!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN'
3 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'>
4 <html><head>
5 <title>eric5.E5Gui.E5LineEditButton</title>
6 <style>
7 body {
8 background: #EDECE6;
9 margin: 0em 1em 10em 1em;
10 color: black;
11 }
12
13 h1 { color: white; background: #85774A; }
14 h2 { color: white; background: #85774A; }
15 h3 { color: white; background: #9D936E; }
16 h4 { color: white; background: #9D936E; }
17
18 a { color: #BA6D36; }
19
20 </style>
21 </head>
22 <body><a NAME="top" ID="top"></a>
23 <h1>eric5.E5Gui.E5LineEditButton</h1>
24 <p>
25 Module implementing a button class to be used with E5LineEdit.
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="#E5LineEditButton">E5LineEditButton</a></td>
35 <td>Class implementing a button to be used with E5LineEdit.</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="E5LineEditButton" ID="E5LineEditButton"></a>
44 <h2>E5LineEditButton</h2>
45 <p>
46 Class implementing a button to be used with E5LineEdit.
47 </p>
48 <h3>Derived from</h3>
49 QAbstractButton
50 <h3>Class Attributes</h3>
51 <table>
52 <tr><td>None</td></tr>
53 </table>
54 <h3>Methods</h3>
55 <table>
56 <tr>
57 <td><a href="#E5LineEditButton.__init__">E5LineEditButton</a></td>
58 <td>Constructor</td>
59 </tr><tr>
60 <td><a href="#E5LineEditButton.__clicked">__clicked</a></td>
61 <td>Private slot to handle a button click.</td>
62 </tr><tr>
63 <td><a href="#E5LineEditButton.menu">menu</a></td>
64 <td>Public method to get a reference to the menu.</td>
65 </tr><tr>
66 <td><a href="#E5LineEditButton.paintEvent">paintEvent</a></td>
67 <td>Protected method handling a paint event.</td>
68 </tr><tr>
69 <td><a href="#E5LineEditButton.setIcon">setIcon</a></td>
70 <td>Public method to set the button icon.</td>
71 </tr><tr>
72 <td><a href="#E5LineEditButton.setMenu">setMenu</a></td>
73 <td>Public method to set the button menu.</td>
74 </tr>
75 </table>
76 <a NAME="E5LineEditButton.__init__" ID="E5LineEditButton.__init__"></a>
77 <h4>E5LineEditButton (Constructor)</h4>
78 <b>E5LineEditButton</b>(<i>parent = None</i>)
79 <p>
80 Constructor
81 </p><dl>
82 <dt><i>parent</i></dt>
83 <dd>
84 reference to the parent widget (QWidget)
85 </dd>
86 </dl><a NAME="E5LineEditButton.__clicked" ID="E5LineEditButton.__clicked"></a>
87 <h4>E5LineEditButton.__clicked</h4>
88 <b>__clicked</b>(<i></i>)
89 <p>
90 Private slot to handle a button click.
91 </p><a NAME="E5LineEditButton.menu" ID="E5LineEditButton.menu"></a>
92 <h4>E5LineEditButton.menu</h4>
93 <b>menu</b>(<i></i>)
94 <p>
95 Public method to get a reference to the menu.
96 </p><dl>
97 <dt>Returns:</dt>
98 <dd>
99 reference to the associated menu (QMenu)
100 </dd>
101 </dl><a NAME="E5LineEditButton.paintEvent" ID="E5LineEditButton.paintEvent"></a>
102 <h4>E5LineEditButton.paintEvent</h4>
103 <b>paintEvent</b>(<i>evt</i>)
104 <p>
105 Protected method handling a paint event.
106 </p><dl>
107 <dt><i>evt</i></dt>
108 <dd>
109 reference to the paint event (QPaintEvent)
110 </dd>
111 </dl><a NAME="E5LineEditButton.setIcon" ID="E5LineEditButton.setIcon"></a>
112 <h4>E5LineEditButton.setIcon</h4>
113 <b>setIcon</b>(<i>icon</i>)
114 <p>
115 Public method to set the button icon.
116 </p><dl>
117 <dt><i>icon</i></dt>
118 <dd>
119 icon to be set (QIcon)
120 </dd>
121 </dl><a NAME="E5LineEditButton.setMenu" ID="E5LineEditButton.setMenu"></a>
122 <h4>E5LineEditButton.setMenu</h4>
123 <b>setMenu</b>(<i>menu</i>)
124 <p>
125 Public method to set the button menu.
126 </p><dl>
127 <dt><i>menu</i></dt>
128 <dd>
129 reference to the menu (QMenu)
130 </dd>
131 </dl>
132 <div align="right"><a href="#top">Up</a></div>
133 <hr />
134 </body></html>

eric ide

mercurial