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
e6ee6421
Commit
e6ee6421
authored
Mar 12, 2008
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Preferences: Modify the reset button according to the HIG. remove some warnings.
parent
b344dc6f
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
7 deletions
+14
-7
modules/gui/qt4/components/simple_preferences.cpp
modules/gui/qt4/components/simple_preferences.cpp
+0
-4
modules/gui/qt4/dialogs/preferences.cpp
modules/gui/qt4/dialogs/preferences.cpp
+12
-3
modules/gui/qt4/dialogs/preferences.hpp
modules/gui/qt4/dialogs/preferences.hpp
+2
-0
No files found.
modules/gui/qt4/components/simple_preferences.cpp
View file @
e6ee6421
...
...
@@ -425,7 +425,6 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
char
*
psz_intf
=
config_GetPsz
(
p_intf
,
"intf"
);
if
(
psz_intf
)
{
msg_Dbg
(
p_intf
,
"Interface in config file: %s"
,
psz_intf
);
if
(
strstr
(
psz_intf
,
"skin"
)
)
ui
.
skins
->
setChecked
(
true
);
else
if
(
strstr
(
psz_intf
,
"qt"
)
)
...
...
@@ -533,8 +532,6 @@ void SPrefsPanel::updateAudioVolume( int volume )
/* Function called from the main Preferences dialog on each SPrefs Panel */
void
SPrefsPanel
::
apply
()
{
msg_Dbg
(
p_intf
,
"Trying to save the %i simple panel"
,
number
);
/* Generic save for ever panel */
QList
<
ConfigControl
*>::
Iterator
i
;
for
(
i
=
controls
.
begin
()
;
i
!=
controls
.
end
()
;
i
++
)
...
...
@@ -582,7 +579,6 @@ void SPrefsPanel::apply()
int
i_comboValue
=
cachingCombo
->
itemData
(
cachingCombo
->
currentIndex
()
).
toInt
();
if
(
i_comboValue
)
{
msg_Dbg
(
p_intf
,
"Adjusting all cache values at: %i"
,
i_comboValue
);
CaC
(
"udp-caching"
);
if
(
module_Exists
(
p_intf
,
"dvdread"
))
CaC
(
"dvdread-caching"
);
...
...
modules/gui/qt4/dialogs/preferences.cpp
View file @
e6ee6421
...
...
@@ -82,7 +82,7 @@ PrefsDialog::PrefsDialog( QWidget *parent, intf_thread_t *_p_intf )
buttonsBox
->
addButton
(
save
,
QDialogButtonBox
::
AcceptRole
);
buttonsBox
->
addButton
(
cancel
,
QDialogButtonBox
::
RejectRole
);
buttonsBox
->
addButton
(
reset
,
QDialogButtonBox
::
Action
Role
);
buttonsBox
->
addButton
(
reset
,
QDialogButtonBox
::
Reset
Role
);
/* Layout */
main_layout
->
addWidget
(
tree_panel
,
0
,
0
,
3
,
1
);
...
...
@@ -283,6 +283,14 @@ void PrefsDialog::save()
/* Save to file */
config_SaveConfigFile
(
p_intf
,
NULL
);
destroyPanels
();
hide
();
}
void
PrefsDialog
::
destroyPanels
()
{
msg_Dbg
(
p_intf
,
"Destroying the Panels"
);
/* Delete the other panel in order to force its reload after clicking
on apply. In fact, if we don't do that, the preferences from the other
panels won't be accurate, so we would have to recreate the whole dialog,
...
...
@@ -307,10 +315,9 @@ void PrefsDialog::save()
}
current_simple_panel
=
NULL
;
}
hide
();
}
/* Clean the preferences, dunno if it does something really */
void
PrefsDialog
::
cancel
()
{
...
...
@@ -342,5 +349,7 @@ void PrefsDialog::reset()
{
config_ResetAll
(
p_intf
);
config_SaveConfigFile
(
p_intf
,
NULL
);
/* FIXME reset the panels */
destroyPanels
();
}
}
modules/gui/qt4/dialogs/preferences.hpp
View file @
e6ee6421
...
...
@@ -61,6 +61,8 @@ private:
PrefsDialog
(
QWidget
*
,
intf_thread_t
*
);
QGridLayout
*
main_layout
;
void
destroyPanels
();
QWidget
*
main_panel
;
QHBoxLayout
*
main_panel_l
;
...
...
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