Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-gpu
Commits
8f2dc554
Commit
8f2dc554
authored
Oct 19, 2007
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
qt4: fix the use of HTTP in open dialog
parent
0a90b9b0
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
64 additions
and
1 deletion
+64
-1
modules/gui/qt4/components/open.cpp
modules/gui/qt4/components/open.cpp
+2
-0
modules/gui/qt4/components/simple_preferences.cpp
modules/gui/qt4/components/simple_preferences.cpp
+20
-0
modules/gui/qt4/components/simple_preferences.hpp
modules/gui/qt4/components/simple_preferences.hpp
+1
-0
modules/gui/qt4/ui/sprefs_audio.ui
modules/gui/qt4/ui/sprefs_audio.ui
+41
-1
No files found.
modules/gui/qt4/components/open.cpp
View file @
8f2dc554
...
...
@@ -423,6 +423,8 @@ void NetOpenPanel::updateMRL() {
switch
(
proto
)
{
case
0
:
mrl
=
"http://"
+
addr
;
emit
methodChanged
(
"http-caching"
);
break
;
case
1
:
mrl
=
"https://"
+
addr
;
emit
methodChanged
(
"http-caching"
);
...
...
modules/gui/qt4/components/simple_preferences.cpp
View file @
8f2dc554
...
...
@@ -34,6 +34,7 @@
#include "ui/sprefs_interface.h"
#include <vlc_config_cat.h>
#include "vlc_control.h"
#include <QString>
#include <QFont>
...
...
@@ -243,6 +244,18 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
CONFIG_GENERIC_NO_BOOL
(
"norm-max-level"
,
Float
,
NULL
,
volNormalizer
);
CONFIG_GENERIC
(
"audio-visual"
,
Module
,
NULL
,
visualisation
);
if
(
control_Exists
(
VLC_OBJECT
(
p_intf
),
"audioscrobbler"
)
)
ui
.
lastfm
->
setCheckState
(
Qt
::
Checked
);
else
ui
.
lastfm
->
setCheckState
(
Qt
::
Unchecked
);
CONNECT
(
ui
.
lastfm
,
stateChanged
(
int
),
this
,
lastfm_Changed
(
int
)
);
CONFIG_GENERIC
(
"lastfm-username"
,
String
,
ui
.
lastfm_user_label
,
lastfm_user_edit
);
CONFIG_GENERIC
(
"lastfm-password"
,
String
,
ui
.
lastfm_pass_label
,
lastfm_pass_edit
);
END_SPREFS_CAT
;
/* Input and Codecs Panel Implementation */
...
...
@@ -375,3 +388,10 @@ void SPrefsPanel::apply()
void
SPrefsPanel
::
clean
()
{}
void
SPrefsPanel
::
lastfm_Changed
(
int
i_state
)
{
if
(
i_state
==
Qt
::
Checked
)
control_Add
(
VLC_OBJECT
(
p_intf
),
"audioscrobbler"
);
else
if
(
i_state
==
Qt
::
Unchecked
)
control_Remove
(
VLC_OBJECT
(
p_intf
),
"audioscrobbler"
);
}
modules/gui/qt4/components/simple_preferences.hpp
View file @
8f2dc554
...
...
@@ -82,6 +82,7 @@ private:
/* Display only the options for the selected audio output */
private
slots
:
void
AudioDeviceChanged
();
void
lastfm_Changed
(
int
);
};
#endif
modules/gui/qt4/ui/sprefs_audio.ui
View file @
8f2dc554
...
...
@@ -7,7 +7,7 @@
<x>0</x>
<y>0</y>
<width>461</width>
<height>
554
</height>
<height>
682
</height>
</rect>
</property>
<property name="windowTitle" >
...
...
@@ -243,6 +243,46 @@
</layout>
</widget>
</item>
<item>
<widget class="QGroupBox" name="groupBox_4" >
<property name="title" >
<string>_("Last.fm")</string>
</property>
<layout class="QGridLayout" >
<item row="0" column="0" colspan="2" >
<widget class="QCheckBox" name="lastfm" >
<property name="text" >
<string>_("Enable")</string>
</property>
</widget>
</item>
<item row="1" column="1" colspan="2" >
<widget class="QLineEdit" name="lastfm_user_edit" />
</item>
<item row="1" column="0" >
<widget class="QLabel" name="lastfm_user_label" >
<property name="text" >
<string>_("Username")</string>
</property>
</widget>
</item>
<item row="2" column="0" >
<widget class="QLabel" name="lastfm_pass_label" >
<property name="text" >
<string>_("Password")</string>
</property>
</widget>
</item>
<item row="2" column="1" colspan="2" >
<widget class="QLineEdit" name="lastfm_pass_edit" >
<property name="echoMode" >
<enum>QLineEdit::PasswordEchoOnEdit</enum>
</property>
</widget>
</item>
</layout>
</widget>
</item>
</layout>
</widget>
<tabstops>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment