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
b25d8309
Commit
b25d8309
authored
Sep 21, 2008
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt4 win32 native open dialog.
parent
e04cc4a8
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
5 deletions
+9
-5
modules/gui/qt4/dialogs_provider.cpp
modules/gui/qt4/dialogs_provider.cpp
+2
-2
modules/gui/qt4/menus.cpp
modules/gui/qt4/menus.cpp
+5
-1
modules/gui/qt4/qt4.cpp
modules/gui/qt4/qt4.cpp
+2
-2
No files found.
modules/gui/qt4/dialogs_provider.cpp
View file @
b25d8309
...
@@ -370,8 +370,8 @@ QStringList DialogsProvider::showSimpleOpen( QString help,
...
@@ -370,8 +370,8 @@ QStringList DialogsProvider::showSimpleOpen( QString help,
fileTypes
.
replace
(
QString
(
";*"
),
QString
(
" *"
));
fileTypes
.
replace
(
QString
(
";*"
),
QString
(
" *"
));
return
QFileDialog
::
getOpenFileNames
(
NULL
,
return
QFileDialog
::
getOpenFileNames
(
NULL
,
help
.
is
Null
()
?
qfu
(
I_OP_SEL_FILES
)
:
help
,
help
.
is
Empty
()
?
qfu
(
I_OP_SEL_FILES
)
:
help
,
path
.
is
Null
()
?
qfu
(
p_intf
->
p_sys
->
psz_filepath
)
:
path
,
path
.
is
Empty
()
?
qfu
(
p_intf
->
p_sys
->
psz_filepath
)
:
path
,
fileTypes
);
fileTypes
);
}
}
...
...
modules/gui/qt4/menus.cpp
View file @
b25d8309
...
@@ -297,7 +297,11 @@ QMenu *QVLCMenu::FileMenu()
...
@@ -297,7 +297,11 @@ QMenu *QVLCMenu::FileMenu()
QMenu
*
menu
=
new
QMenu
();
QMenu
*
menu
=
new
QMenu
();
addDPStaticEntry
(
menu
,
qtr
(
"&Open File..."
),
""
,
addDPStaticEntry
(
menu
,
qtr
(
"&Open File..."
),
""
,
":/file-asym"
,
SLOT
(
openFileDialog
()
),
"Ctrl+O"
);
#ifdef WIN32
":/file-asym"
,
SLOT
(
simpleOpenDialog
()
),
"Ctrl+O"
);
addDPStaticEntry
(
menu
,
qtr
(
"Advanced Open File..."
),
""
,
#endif
":/file-asym"
,
SLOT
(
openFileDialog
()
),
""
);
addDPStaticEntry
(
menu
,
qtr
(
I_OPEN_FOLDER
),
""
,
addDPStaticEntry
(
menu
,
qtr
(
I_OPEN_FOLDER
),
""
,
":/folder-grey"
,
SLOT
(
PLOpenDir
()
),
"Ctrl+F"
);
":/folder-grey"
,
SLOT
(
PLOpenDir
()
),
"Ctrl+F"
);
addDPStaticEntry
(
menu
,
qtr
(
"Open &Disc..."
),
""
,
addDPStaticEntry
(
menu
,
qtr
(
"Open &Disc..."
),
""
,
...
...
modules/gui/qt4/qt4.cpp
View file @
b25d8309
...
@@ -427,8 +427,8 @@ static void *Init( vlc_object_t *obj )
...
@@ -427,8 +427,8 @@ static void *Init( vlc_object_t *obj )
/* Retrieve last known path used in file browsing */
/* Retrieve last known path used in file browsing */
char
*
psz_path
=
config_GetPsz
(
p_intf
,
"qt-filedialog-path"
);
char
*
psz_path
=
config_GetPsz
(
p_intf
,
"qt-filedialog-path"
);
p_intf
->
p_sys
->
psz_filepath
=
EMPTY_STR
(
psz_path
)
?
psz_path
p_intf
->
p_sys
->
psz_filepath
=
EMPTY_STR
(
psz_path
)
?
config_GetHomeDir
()
:
config_GetHomeDir
()
;
:
psz_path
;
/* Launch */
/* Launch */
app
->
exec
();
app
->
exec
();
...
...
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