Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
8664e302
Commit
8664e302
authored
Mar 29, 2007
by
Yoann Peronneau
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* qt open dialog: double click plays the selected file
parent
ef627df2
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
2 deletions
+8
-2
modules/gui/qt4/components/open.cpp
modules/gui/qt4/components/open.cpp
+5
-0
modules/gui/qt4/components/open.hpp
modules/gui/qt4/components/open.hpp
+1
-1
modules/gui/qt4/dialogs/open.hpp
modules/gui/qt4/dialogs/open.hpp
+2
-1
No files found.
modules/gui/qt4/components/open.cpp
View file @
8664e302
...
@@ -25,6 +25,7 @@
...
@@ -25,6 +25,7 @@
#include "qt4.hpp"
#include "qt4.hpp"
#include "components/open.hpp"
#include "components/open.hpp"
#include "dialogs/open.hpp"
#include "dialogs_provider.hpp"
#include "dialogs_provider.hpp"
#include "util/customwidgets.hpp"
#include "util/customwidgets.hpp"
...
@@ -181,6 +182,10 @@ void FileOpenPanel::accept()
...
@@ -181,6 +182,10 @@ void FileOpenPanel::accept()
if
(
ui
.
fileInput
->
count
()
>
8
)
ui
.
fileInput
->
removeItem
(
0
);
if
(
ui
.
fileInput
->
count
()
>
8
)
ui
.
fileInput
->
removeItem
(
0
);
}
}
void
FileOpenBox
::
accept
()
{
OpenDialog
::
getInstance
(
NULL
,
NULL
)
->
play
();
}
/* Function called by Open Dialog when clicked on cancel */
/* Function called by Open Dialog when clicked on cancel */
void
FileOpenPanel
::
clear
()
void
FileOpenPanel
::
clear
()
...
...
modules/gui/qt4/components/open.hpp
View file @
8664e302
...
@@ -63,7 +63,7 @@ public:
...
@@ -63,7 +63,7 @@ public:
const
QString
&
directory
,
const
QString
&
filter
)
:
const
QString
&
directory
,
const
QString
&
filter
)
:
QFileDialog
(
parent
,
caption
,
directory
,
filter
)
{}
QFileDialog
(
parent
,
caption
,
directory
,
filter
)
{}
public
slots
:
public
slots
:
void
accept
()
{}
void
accept
()
;
};
};
class
FileOpenPanel
:
public
OpenPanel
class
FileOpenPanel
:
public
OpenPanel
...
...
modules/gui/qt4/dialogs/open.hpp
View file @
8664e302
...
@@ -51,6 +51,8 @@ public:
...
@@ -51,6 +51,8 @@ public:
QString
mrl
;
QString
mrl
;
QString
mainMRL
;
QString
mainMRL
;
public
slots
:
void
play
();
private:
private:
static
OpenDialog
*
instance
;
static
OpenDialog
*
instance
;
input_thread_t
*
p_input
;
input_thread_t
*
p_input
;
...
@@ -69,7 +71,6 @@ private:
...
@@ -69,7 +71,6 @@ private:
QStringList
SeparateEntries
(
QString
);
QStringList
SeparateEntries
(
QString
);
private
slots
:
private
slots
:
void
cancel
();
void
cancel
();
void
play
();
void
enqueue
();
void
enqueue
();
void
toggleAdvancedPanel
();
void
toggleAdvancedPanel
();
void
updateMRL
(
QString
);
void
updateMRL
(
QString
);
...
...
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