Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
2391b36f
Commit
2391b36f
authored
Oct 30, 2007
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt4 - Prefs, cleanig again.
parent
036838fa
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
10 deletions
+11
-10
modules/gui/qt4/dialogs/preferences.cpp
modules/gui/qt4/dialogs/preferences.cpp
+7
-7
modules/gui/qt4/dialogs/preferences.hpp
modules/gui/qt4/dialogs/preferences.hpp
+4
-3
No files found.
modules/gui/qt4/dialogs/preferences.cpp
View file @
2391b36f
...
...
@@ -48,17 +48,17 @@ PrefsDialog::PrefsDialog( intf_thread_t *_p_intf ) : QVLCFrame( _p_intf )
resize
(
750
,
550
);
/* Create Panels */
tree_panel
=
new
QWidget
(
0
)
;
tree_panel
=
new
QWidget
;
tree_panel_l
=
new
QHBoxLayout
;
tree_panel
->
setLayout
(
tree_panel_l
);
main_panel
=
new
QWidget
(
0
)
;
main_panel
=
new
QWidget
;
main_panel_l
=
new
QHBoxLayout
;
main_panel
->
setLayout
(
main_panel_l
);
/* Choice for types */
types
=
new
QGroupBox
(
"Show settings"
);
types
->
setAlignment
(
Qt
::
AlignHCenter
);
QHBoxLayout
*
types_l
=
new
QHBoxLayout
(
0
)
;
QHBoxLayout
*
types_l
=
new
QHBoxLayout
;
types_l
->
setSpacing
(
3
);
types_l
->
setMargin
(
3
);
small
=
new
QRadioButton
(
qtr
(
"Basic"
),
types
);
types_l
->
addWidget
(
small
);
...
...
@@ -103,7 +103,7 @@ PrefsDialog::PrefsDialog( intf_thread_t *_p_intf ) : QVLCFrame( _p_intf )
for
(
int
i
=
0
;
i
<
SPrefsMax
;
i
++
)
simple_panels
[
i
]
=
NULL
;
if
(
config_GetInt
(
p_intf
,
"qt-advanced-pref"
)
==
1
)
S
etAdvanced
();
s
etAdvanced
();
else
setSmall
();
...
...
@@ -112,10 +112,10 @@ PrefsDialog::PrefsDialog( intf_thread_t *_p_intf ) : QVLCFrame( _p_intf )
BUTTONACT
(
reset
,
reset
()
);
BUTTONACT
(
small
,
setSmall
()
);
BUTTONACT
(
all
,
S
etAdvanced
()
);
BUTTONACT
(
all
,
s
etAdvanced
()
);
}
void
PrefsDialog
::
S
etAdvanced
()
void
PrefsDialog
::
s
etAdvanced
()
{
/* We already have a simple TREE, and we just want to hide it */
if
(
simple_tree
)
...
...
@@ -229,7 +229,7 @@ void PrefsDialog::changeAdvPanel( QTreeWidgetItem *item )
/*Called from extended settings, is not used anymore, but could be useful one day*/
void PrefsDialog::showModulePrefs( char *psz_module )
{
S
etAdvanced();
s
etAdvanced();
all->setChecked( true );
for( int i_cat_index = 0 ; i_cat_index < advanced_tree->topLevelItemCount();
i_cat_index++ )
...
...
modules/gui/qt4/dialogs/preferences.hpp
View file @
2391b36f
...
...
@@ -58,8 +58,10 @@ public:
/*Called from extended settings, is not used anymore, but could be useful one day*/
void showModulePrefs( char* );
#endif
private:
PrefsDialog
(
intf_thread_t
*
);
QGridLayout
*
main_layout
;
QWidget
*
main_panel
;
QHBoxLayout
*
main_panel_l
;
...
...
@@ -70,18 +72,17 @@ private:
QWidget
*
tree_panel
;
QHBoxLayout
*
tree_panel_l
;
SPrefsCatList
*
simple_tree
;
PrefsTree
*
advanced_tree
;
QGroupBox
*
types
;
QRadioButton
*
small
,
*
all
;
QGridLayout
*
main_layout
;
static
PrefsDialog
*
instance
;
private
slots
:
void
S
etAdvanced
();
void
s
etAdvanced
();
void
setSmall
();
void
changeAdvPanel
(
QTreeWidgetItem
*
);
...
...
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