Changeset 8f2dc55470a22af908c8b4070e85ce5e27d37f01
- Timestamp:
- 10/19/07 12:30:34
(11 months ago)
- Author:
- Rafaël Carré <funman@videolan.org>
- git-committer:
- Rafaël Carré <funman@videolan.org> 1192789834 +0000
- git-parent:
[0a90b9b0ce696148940522698703ad0ed73ea7f5]
- git-author:
- Rafaël Carré <funman@videolan.org> 1192789834 +0000
- Message:
qt4: fix the use of HTTP in open dialog
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r2d38cb0 |
r8f2dc55 |
|
| 424 | 424 | case 0: |
|---|
| 425 | 425 | mrl = "http://" + addr; |
|---|
| | 426 | emit methodChanged("http-caching"); |
|---|
| | 427 | break; |
|---|
| 426 | 428 | case 1: |
|---|
| 427 | 429 | mrl = "https://" + addr; |
|---|
| rb96c13d |
r8f2dc55 |
|
| 35 | 35 | |
|---|
| 36 | 36 | #include <vlc_config_cat.h> |
|---|
| | 37 | #include "vlc_control.h" |
|---|
| 37 | 38 | |
|---|
| 38 | 39 | #include <QString> |
|---|
| … | … | |
| 244 | 245 | volNormalizer ); |
|---|
| 245 | 246 | CONFIG_GENERIC( "audio-visual" , Module , NULL, visualisation); |
|---|
| | 247 | |
|---|
| | 248 | |
|---|
| | 249 | if( control_Exists( VLC_OBJECT( p_intf ), "audioscrobbler" ) ) |
|---|
| | 250 | ui.lastfm->setCheckState( Qt::Checked ); |
|---|
| | 251 | else |
|---|
| | 252 | ui.lastfm->setCheckState( Qt::Unchecked ); |
|---|
| | 253 | CONNECT( ui.lastfm, stateChanged( int ), this , lastfm_Changed( int ) ); |
|---|
| | 254 | |
|---|
| | 255 | CONFIG_GENERIC( "lastfm-username", String, ui.lastfm_user_label, |
|---|
| | 256 | lastfm_user_edit ); |
|---|
| | 257 | CONFIG_GENERIC( "lastfm-password", String, ui.lastfm_pass_label, |
|---|
| | 258 | lastfm_pass_edit ); |
|---|
| 246 | 259 | END_SPREFS_CAT; |
|---|
| 247 | 260 | |
|---|
| … | … | |
| 376 | 389 | {} |
|---|
| 377 | 390 | |
|---|
| | 391 | void SPrefsPanel::lastfm_Changed( int i_state ) |
|---|
| | 392 | { |
|---|
| | 393 | if( i_state == Qt::Checked ) |
|---|
| | 394 | control_Add( VLC_OBJECT( p_intf ), "audioscrobbler" ); |
|---|
| | 395 | else if( i_state == Qt::Unchecked ) |
|---|
| | 396 | control_Remove( VLC_OBJECT( p_intf ), "audioscrobbler" ); |
|---|
| | 397 | } |
|---|
| rb96c13d |
r8f2dc55 |
|
| 83 | 83 | private slots: |
|---|
| 84 | 84 | void AudioDeviceChanged(); |
|---|
| | 85 | void lastfm_Changed( int ); |
|---|
| 85 | 86 | }; |
|---|
| 86 | 87 | |
|---|
| rb96c13d |
r8f2dc55 |
|
| 8 | 8 | <y>0</y> |
|---|
| 9 | 9 | <width>461</width> |
|---|
| 10 | | <height>554</height> |
|---|
| | 10 | <height>682</height> |
|---|
| 11 | 11 | </rect> |
|---|
| 12 | 12 | </property> |
|---|
| … | … | |
| 238 | 238 | <property name="alignment" > |
|---|
| 239 | 239 | <set>Qt::AlignRight</set> |
|---|
| | 240 | </property> |
|---|
| | 241 | </widget> |
|---|
| | 242 | </item> |
|---|
| | 243 | </layout> |
|---|
| | 244 | </widget> |
|---|
| | 245 | </item> |
|---|
| | 246 | <item> |
|---|
| | 247 | <widget class="QGroupBox" name="groupBox_4" > |
|---|
| | 248 | <property name="title" > |
|---|
| | 249 | <string>_("Last.fm")</string> |
|---|
| | 250 | </property> |
|---|
| | 251 | <layout class="QGridLayout" > |
|---|
| | 252 | <item row="0" column="0" colspan="2" > |
|---|
| | 253 | <widget class="QCheckBox" name="lastfm" > |
|---|
| | 254 | <property name="text" > |
|---|
| | 255 | <string>_("Enable")</string> |
|---|
| | 256 | </property> |
|---|
| | 257 | </widget> |
|---|
| | 258 | </item> |
|---|
| | 259 | <item row="1" column="1" colspan="2" > |
|---|
| | 260 | <widget class="QLineEdit" name="lastfm_user_edit" /> |
|---|
| | 261 | </item> |
|---|
| | 262 | <item row="1" column="0" > |
|---|
| | 263 | <widget class="QLabel" name="lastfm_user_label" > |
|---|
| | 264 | <property name="text" > |
|---|
| | 265 | <string>_("Username")</string> |
|---|
| | 266 | </property> |
|---|
| | 267 | </widget> |
|---|
| | 268 | </item> |
|---|
| | 269 | <item row="2" column="0" > |
|---|
| | 270 | <widget class="QLabel" name="lastfm_pass_label" > |
|---|
| | 271 | <property name="text" > |
|---|
| | 272 | <string>_("Password")</string> |
|---|
| | 273 | </property> |
|---|
| | 274 | </widget> |
|---|
| | 275 | </item> |
|---|
| | 276 | <item row="2" column="1" colspan="2" > |
|---|
| | 277 | <widget class="QLineEdit" name="lastfm_pass_edit" > |
|---|
| | 278 | <property name="echoMode" > |
|---|
| | 279 | <enum>QLineEdit::PasswordEchoOnEdit</enum> |
|---|
| 240 | 280 | </property> |
|---|
| 241 | 281 | </widget> |
|---|