Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
6275b728
Commit
6275b728
authored
Sep 08, 2007
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt4 - Open: fix https handling, udp port and rtsp adress entering, fix Trax#15
parent
cd1ad0c3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
9 deletions
+11
-9
modules/gui/qt4/components/open.cpp
modules/gui/qt4/components/open.cpp
+11
-9
No files found.
modules/gui/qt4/components/open.cpp
View file @
6275b728
...
@@ -63,6 +63,7 @@ FileOpenPanel::FileOpenPanel( QWidget *_parent, intf_thread_t *_p_intf ) :
...
@@ -63,6 +63,7 @@ FileOpenPanel::FileOpenPanel( QWidget *_parent, intf_thread_t *_p_intf ) :
// Make this QFileDialog a child of tempWidget from the ui.
// Make this QFileDialog a child of tempWidget from the ui.
dialogBox
=
new
FileOpenBox
(
ui
.
tempWidget
,
NULL
,
dialogBox
=
new
FileOpenBox
(
ui
.
tempWidget
,
NULL
,
qfu
(
p_intf
->
p_libvlc
->
psz_homedir
),
fileTypes
);
qfu
(
p_intf
->
p_libvlc
->
psz_homedir
),
fileTypes
);
dialogBox
->
setFileMode
(
QFileDialog
::
ExistingFiles
);
dialogBox
->
setFileMode
(
QFileDialog
::
ExistingFiles
);
dialogBox
->
setAcceptMode
(
QFileDialog
::
AcceptOpen
);
dialogBox
->
setAcceptMode
(
QFileDialog
::
AcceptOpen
);
...
@@ -70,7 +71,7 @@ FileOpenPanel::FileOpenPanel( QWidget *_parent, intf_thread_t *_p_intf ) :
...
@@ -70,7 +71,7 @@ FileOpenPanel::FileOpenPanel( QWidget *_parent, intf_thread_t *_p_intf ) :
char
*
psz_filepath
=
config_GetPsz
(
p_intf
,
"qt-filedialog-path"
);
char
*
psz_filepath
=
config_GetPsz
(
p_intf
,
"qt-filedialog-path"
);
if
(
psz_filepath
)
if
(
psz_filepath
)
{
{
dialogBox
->
setDirectory
(
QString
::
fromUtf8
(
psz_filepath
)
);
dialogBox
->
setDirectory
(
qfu
(
psz_filepath
)
);
delete
psz_filepath
;
delete
psz_filepath
;
}
}
...
@@ -95,7 +96,7 @@ FileOpenPanel::FileOpenPanel( QWidget *_parent, intf_thread_t *_p_intf ) :
...
@@ -95,7 +96,7 @@ FileOpenPanel::FileOpenPanel( QWidget *_parent, intf_thread_t *_p_intf ) :
#else
#else
lineFileEdit
=
findChildren
<
QLineEdit
*>
()[
3
];
lineFileEdit
=
findChildren
<
QLineEdit
*>
()[
3
];
#endif
#endif
lineFileEdit
->
hide
();
//
lineFileEdit->hide();
/* Make a list of QLabel inside the QFileDialog to access the good ones */
/* Make a list of QLabel inside the QFileDialog to access the good ones */
QList
<
QLabel
*>
listLabel
=
findChildren
<
QLabel
*>
();
QList
<
QLabel
*>
listLabel
=
findChildren
<
QLabel
*>
();
...
@@ -105,6 +106,7 @@ FileOpenPanel::FileOpenPanel( QWidget *_parent, intf_thread_t *_p_intf ) :
...
@@ -105,6 +106,7 @@ FileOpenPanel::FileOpenPanel( QWidget *_parent, intf_thread_t *_p_intf ) :
/* Change the text that was uncool in the usual box */
/* Change the text that was uncool in the usual box */
listLabel
[
5
]
->
setText
(
qtr
(
"Filter:"
)
);
listLabel
[
5
]
->
setText
(
qtr
(
"Filter:"
)
);
QListView
*
fileListView
=
findChildren
<
QListView
*>
().
first
();
QListView
*
fileListView
=
findChildren
<
QListView
*>
().
first
();
#if WIN32
#if WIN32
/* QFileDialog is quite buggy make it brerable on win32 by tweaking
/* QFileDialog is quite buggy make it brerable on win32 by tweaking
...
@@ -353,7 +355,6 @@ void DiscOpenPanel::updateMRL()
...
@@ -353,7 +355,6 @@ void DiscOpenPanel::updateMRL()
}
}
/**************************************************************************
/**************************************************************************
* Open Network streams and URL pages *
* Open Network streams and URL pages *
**************************************************************************/
**************************************************************************/
...
@@ -389,10 +390,10 @@ void NetOpenPanel::updateProtocol( int idx ) {
...
@@ -389,10 +390,10 @@ void NetOpenPanel::updateProtocol( int idx ) {
QString
addr
=
ui
.
addressText
->
text
();
QString
addr
=
ui
.
addressText
->
text
();
QString
proto
=
ui
.
protocolCombo
->
itemData
(
idx
).
toString
();
QString
proto
=
ui
.
protocolCombo
->
itemData
(
idx
).
toString
();
ui
.
timeShift
->
setEnabled
(
idx
>=
4
);
ui
.
timeShift
->
setEnabled
(
idx
>=
5
);
ui
.
ipv6
->
setEnabled
(
idx
==
4
);
ui
.
ipv6
->
setEnabled
(
idx
==
5
);
ui
.
addressText
->
setEnabled
(
idx
!=
4
);
ui
.
addressText
->
setEnabled
(
idx
!=
5
);
ui
.
portSpin
->
setEnabled
(
idx
>=
4
);
ui
.
portSpin
->
setEnabled
(
idx
>=
5
);
/* If we already have a protocol in the address, replace it */
/* If we already have a protocol in the address, replace it */
if
(
addr
.
contains
(
"://"
))
{
if
(
addr
.
contains
(
"://"
))
{
...
@@ -412,13 +413,14 @@ void NetOpenPanel::updateMRL() {
...
@@ -412,13 +413,14 @@ void NetOpenPanel::updateMRL() {
QString
addr
=
ui
.
addressText
->
text
();
QString
addr
=
ui
.
addressText
->
text
();
int
proto
=
ui
.
protocolCombo
->
currentIndex
();
int
proto
=
ui
.
protocolCombo
->
currentIndex
();
if
(
addr
.
contains
(
"://"
)
&&
proto
!=
4
)
{
if
(
addr
.
contains
(
"://"
)
&&
proto
!=
5
)
{
mrl
=
addr
;
mrl
=
addr
;
}
else
{
}
else
{
switch
(
proto
)
{
switch
(
proto
)
{
case
0
:
case
0
:
case
1
:
mrl
=
"http://"
+
addr
;
mrl
=
"http://"
+
addr
;
case
1
:
mrl
=
"https://"
+
addr
;
emit
methodChanged
(
"http-caching"
);
emit
methodChanged
(
"http-caching"
);
break
;
break
;
case
3
:
case
3
:
...
...
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