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
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
9 deletions
+7
-9
modules/gui/qt4/components/open.cpp
modules/gui/qt4/components/open.cpp
+7
-9
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
);
...
...
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