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
cdda8bc8
Commit
cdda8bc8
authored
Mar 27, 2007
by
Yoann Peronneau
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* qt: really implement DirectoryConfigControl
parent
c61b8e61
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
11 deletions
+6
-11
modules/gui/qt4/components/preferences_widgets.cpp
modules/gui/qt4/components/preferences_widgets.cpp
+6
-3
modules/gui/qt4/components/preferences_widgets.hpp
modules/gui/qt4/components/preferences_widgets.hpp
+0
-8
No files found.
modules/gui/qt4/components/preferences_widgets.cpp
View file @
cdda8bc8
...
...
@@ -289,9 +289,12 @@ DirectoryConfigControl::DirectoryConfigControl( vlc_object_t *_p_this,
void
DirectoryConfigControl
::
updateField
()
{
text
->
setText
(
QFileDialog
::
getOpenFileName
(
NULL
,
qtr
(
"Select File"
),
qfu
(
p_this
->
p_libvlc
->
psz_homedir
),
NULL
,
0
,
QFileDialog
::
ShowDirsOnly
)
);
QString
dir
=
QFileDialog
::
getExistingDirectory
(
NULL
,
qtr
(
"Select Directory"
),
qfu
(
p_this
->
p_libvlc
->
psz_homedir
),
QFileDialog
::
ShowDirsOnly
|
QFileDialog
::
DontResolveSymlinks
);
if
(
dir
.
isNull
()
)
return
;
text
->
setText
(
dir
);
}
/********* String / choice list **********/
...
...
modules/gui/qt4/components/preferences_widgets.hpp
View file @
cdda8bc8
...
...
@@ -277,7 +277,6 @@ public slots:
virtual
void
updateField
();
protected:
void
finish
();
private:
QLineEdit
*
text
;
QLabel
*
label
;
QPushButton
*
browse
;
...
...
@@ -292,15 +291,8 @@ public:
DirectoryConfigControl
(
vlc_object_t
*
,
module_config_t
*
,
QLabel
*
,
QLineEdit
*
,
QPushButton
*
,
bool
pwd
);
virtual
~
DirectoryConfigControl
()
{};
virtual
QString
getValue
()
{
return
text
->
text
();
};
virtual
void
show
()
{
text
->
show
();
label
->
show
();
browse
->
show
();
}
virtual
void
hide
()
{
text
->
hide
();
label
->
hide
();
browse
->
hide
();
}
public
slots
:
virtual
void
updateField
();
private:
QLineEdit
*
text
;
QLabel
*
label
;
QPushButton
*
browse
;
};
class
ModuleConfigControl
:
public
VStringConfigControl
...
...
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