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
89a66deb
Commit
89a66deb
authored
Mar 20, 2007
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt4 - Open Dialog/File. Solve the filters bug and do things in a better way.
parent
9a31042d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
12 deletions
+10
-12
modules/gui/qt4/components/open.cpp
modules/gui/qt4/components/open.cpp
+7
-9
modules/gui/qt4/dialogs_provider.hpp
modules/gui/qt4/dialogs_provider.hpp
+3
-3
No files found.
modules/gui/qt4/components/open.cpp
View file @
89a66deb
...
...
@@ -45,14 +45,6 @@ FileOpenPanel::FileOpenPanel( QWidget *_parent, intf_thread_t *_p_intf ) :
rewrite it all. Be careful to your eyes cause there are a few hacks.
Be very careful and test correctly when you modify this. */
// Make this QFileDialog a child of tempWidget from the ui.
dialogBox
=
new
QFileDialog
(
ui
.
tempWidget
);
dialogBox
->
setFileMode
(
QFileDialog
::
ExistingFiles
);
dialogBox
->
setDirectory
(
qfu
(
p_intf
->
p_libvlc
->
psz_homedir
)
);
/* We don't want to see a grip in the middle of the window, do we? */
dialogBox
->
setSizeGripEnabled
(
false
);
dialogBox
->
setToolTip
(
qtr
(
"Select one or multiple files, or a folder"
));
/* Set Filters for file selection */
QString
fileTypes
=
""
;
ADD_FILTER_MEDIA
(
fileTypes
);
...
...
@@ -62,7 +54,13 @@ FileOpenPanel::FileOpenPanel( QWidget *_parent, intf_thread_t *_p_intf ) :
ADD_FILTER_ALL
(
fileTypes
);
fileTypes
.
replace
(
QString
(
";*"
),
QString
(
" *"
));
dialogBox
->
setFilter
(
fileTypes
);
// Make this QFileDialog a child of tempWidget from the ui.
dialogBox
=
new
QFileDialog
(
ui
.
tempWidget
,
NULL
,
qfu
(
p_intf
->
p_libvlc
->
psz_homedir
),
fileTypes
);
dialogBox
->
setFileMode
(
QFileDialog
::
ExistingFiles
);
/* We don't want to see a grip in the middle of the window, do we? */
dialogBox
->
setSizeGripEnabled
(
false
);
dialogBox
->
setToolTip
(
qtr
(
"Select one or multiple files, or a folder"
));
// Add it to the layout
ui
.
gridLayout
->
addWidget
(
dialogBox
,
0
,
0
,
1
,
3
);
...
...
modules/gui/qt4/dialogs_provider.hpp
View file @
89a66deb
...
...
@@ -33,17 +33,17 @@
#include <vlc/vlc.h>
#include <vlc_interface.h>
#define ADD_FILTER_MEDIA( string )
\
#define ADD_FILTER_MEDIA( string ) \
string += _("Media Files"); \
string += " ( "; \
string += EXTENSIONS_MEDIA; \
string += ");;";
#define ADD_FILTER_VIDEO( string )
\
#define ADD_FILTER_VIDEO( string ) \
string += _("Video Files"); \
string += " ( "; \
string += EXTENSIONS_VIDEO; \
string += ");;";
#define ADD_FILTER_AUDIO( string )
\
#define ADD_FILTER_AUDIO( string ) \
string += _("Audio Files"); \
string += " ( "; \
string += EXTENSIONS_AUDIO; \
...
...
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