109 Class method to get the list of default accept languages. |
109 Class method to get the list of default accept languages. |
110 </p> |
110 </p> |
111 <dl> |
111 <dl> |
112 <dt>Return:</dt> |
112 <dt>Return:</dt> |
113 <dd> |
113 <dd> |
114 list of acceptable languages (list of strings) |
114 list of acceptable languages |
|
115 </dd> |
|
116 </dl> |
|
117 <dl> |
|
118 <dt>Return Type:</dt> |
|
119 <dd> |
|
120 list of str |
115 </dd> |
121 </dd> |
116 </dl> |
122 </dl> |
117 <a NAME="WebBrowserLanguagesDialog.expand" ID="WebBrowserLanguagesDialog.expand"></a> |
123 <a NAME="WebBrowserLanguagesDialog.expand" ID="WebBrowserLanguagesDialog.expand"></a> |
118 <h4>WebBrowserLanguagesDialog.expand (class method)</h4> |
124 <h4>WebBrowserLanguagesDialog.expand (class method)</h4> |
119 <b>expand</b>(<i>language</i>) |
125 <b>expand</b>(<i>language</i>) |
122 Class method to expand a language enum to a readable languages |
128 Class method to expand a language enum to a readable languages |
123 list. |
129 list. |
124 </p> |
130 </p> |
125 <dl> |
131 <dl> |
126 |
132 |
127 <dt><i>language</i></dt> |
133 <dt><i>language</i> (QLocale.Language)</dt> |
128 <dd> |
134 <dd> |
129 language number (QLocale.Language) |
135 language number |
130 </dd> |
136 </dd> |
131 </dl> |
137 </dl> |
132 <dl> |
138 <dl> |
133 <dt>Return:</dt> |
139 <dt>Return:</dt> |
134 <dd> |
140 <dd> |
135 list of expanded language names (list of strings) |
141 list of expanded language names |
|
142 </dd> |
|
143 </dl> |
|
144 <dl> |
|
145 <dt>Return Type:</dt> |
|
146 <dd> |
|
147 list of str |
136 </dd> |
148 </dd> |
137 </dl> |
149 </dl> |
138 <a NAME="WebBrowserLanguagesDialog.httpString" ID="WebBrowserLanguagesDialog.httpString"></a> |
150 <a NAME="WebBrowserLanguagesDialog.httpString" ID="WebBrowserLanguagesDialog.httpString"></a> |
139 <h4>WebBrowserLanguagesDialog.httpString (class method)</h4> |
151 <h4>WebBrowserLanguagesDialog.httpString (class method)</h4> |
140 <b>httpString</b>(<i>languages</i>) |
152 <b>httpString</b>(<i>languages</i>) |
147 The byte array can be sent along with the Accept-Language http header |
159 The byte array can be sent along with the Accept-Language http header |
148 (see RFC 2616). |
160 (see RFC 2616). |
149 </p> |
161 </p> |
150 <dl> |
162 <dl> |
151 |
163 |
152 <dt><i>languages</i></dt> |
164 <dt><i>languages</i> (list of str)</dt> |
153 <dd> |
165 <dd> |
154 list of acceptable languages (list of strings) |
166 list of acceptable languages |
155 </dd> |
167 </dd> |
156 </dl> |
168 </dl> |
157 <dl> |
169 <dl> |
158 <dt>Return:</dt> |
170 <dt>Return:</dt> |
159 <dd> |
171 <dd> |
160 converted list (QByteArray) |
172 converted list |
|
173 </dd> |
|
174 </dl> |
|
175 <dl> |
|
176 <dt>Return Type:</dt> |
|
177 <dd> |
|
178 QByteArray |
161 </dd> |
179 </dd> |
162 </dl> |
180 </dl> |
163 <a NAME="WebBrowserLanguagesDialog.__init__" ID="WebBrowserLanguagesDialog.__init__"></a> |
181 <a NAME="WebBrowserLanguagesDialog.__init__" ID="WebBrowserLanguagesDialog.__init__"></a> |
164 <h4>WebBrowserLanguagesDialog (Constructor)</h4> |
182 <h4>WebBrowserLanguagesDialog (Constructor)</h4> |
165 <b>WebBrowserLanguagesDialog</b>(<i>parent=None</i>) |
183 <b>WebBrowserLanguagesDialog</b>(<i>parent=None</i>) |
167 <p> |
185 <p> |
168 Constructor |
186 Constructor |
169 </p> |
187 </p> |
170 <dl> |
188 <dl> |
171 |
189 |
172 <dt><i>parent</i></dt> |
190 <dt><i>parent</i> (QWidget)</dt> |
173 <dd> |
191 <dd> |
174 reference to the parent widget (QWidget) |
192 reference to the parent widget |
175 </dd> |
193 </dd> |
176 </dl> |
194 </dl> |
177 <a NAME="WebBrowserLanguagesDialog.__currentChanged" ID="WebBrowserLanguagesDialog.__currentChanged"></a> |
195 <a NAME="WebBrowserLanguagesDialog.__currentChanged" ID="WebBrowserLanguagesDialog.__currentChanged"></a> |
178 <h4>WebBrowserLanguagesDialog.__currentChanged</h4> |
196 <h4>WebBrowserLanguagesDialog.__currentChanged</h4> |
179 <b>__currentChanged</b>(<i>current, previous</i>) |
197 <b>__currentChanged</b>(<i>current, previous</i>) |
181 <p> |
199 <p> |
182 Private slot to handle a change of the current selection. |
200 Private slot to handle a change of the current selection. |
183 </p> |
201 </p> |
184 <dl> |
202 <dl> |
185 |
203 |
186 <dt><i>current</i></dt> |
204 <dt><i>current</i> (QModelIndex)</dt> |
187 <dd> |
205 <dd> |
188 index of the currently selected item (QModelIndex) |
206 index of the currently selected item |
189 </dd> |
207 </dd> |
190 <dt><i>previous</i></dt> |
208 <dt><i>previous</i> (QModelIndex)</dt> |
191 <dd> |
209 <dd> |
192 index of the previously selected item (QModelIndex) |
210 index of the previously selected item |
193 </dd> |
211 </dd> |
194 </dl> |
212 </dl> |
195 <a NAME="WebBrowserLanguagesDialog.accept" ID="WebBrowserLanguagesDialog.accept"></a> |
213 <a NAME="WebBrowserLanguagesDialog.accept" ID="WebBrowserLanguagesDialog.accept"></a> |
196 <h4>WebBrowserLanguagesDialog.accept</h4> |
214 <h4>WebBrowserLanguagesDialog.accept</h4> |
197 <b>accept</b>(<i></i>) |
215 <b>accept</b>(<i></i>) |