Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
e3fad8c3
Commit
e3fad8c3
authored
Aug 12, 2009
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Show stylesCombo only on Linux and Win32-debug
parent
4b5e7346
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
11 deletions
+12
-11
modules/gui/qt4/components/simple_preferences.cpp
modules/gui/qt4/components/simple_preferences.cpp
+12
-11
No files found.
modules/gui/qt4/components/simple_preferences.cpp
View file @
e3fad8c3
...
...
@@ -44,12 +44,10 @@
#include <QSettings>
#include <QtAlgorithms>
#include <string>
#define ICON_HEIGHT 64
#ifdef WIN32
#include "vistaassoc.h"
#
include "vistaassoc.h"
#endif
/*********************************************************************
...
...
@@ -497,14 +495,6 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
ui
.
languageBox
->
hide
();
ui
.
assoBox
->
hide
();
#endif
ui
.
stylesCombo
->
addItems
(
QStyleFactory
::
keys
()
);
ui
.
stylesCombo
->
setCurrentIndex
(
ui
.
stylesCombo
->
findText
(
getSettings
()
->
value
(
"MainWindow/QtStyle"
,
""
).
toString
()
)
);
ui
.
stylesCombo
->
insertSeparator
(
1
);
CONNECT
(
ui
.
stylesCombo
,
currentIndexChanged
(
QString
),
this
,
changeStyle
(
QString
)
);
/* interface */
char
*
psz_intf
=
config_GetPsz
(
p_intf
,
"intf"
);
if
(
psz_intf
)
...
...
@@ -519,7 +509,17 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
optionWidgets
.
append
(
ui
.
skins
);
optionWidgets
.
append
(
ui
.
qt4
);
#if !defined(NDEBUG) || !defined( WIN32)
ui
.
stylesCombo
->
addItems
(
QStyleFactory
::
keys
()
);
ui
.
stylesCombo
->
setCurrentIndex
(
ui
.
stylesCombo
->
findText
(
getSettings
()
->
value
(
"MainWindow/QtStyle"
,
""
).
toString
()
)
);
ui
.
stylesCombo
->
insertSeparator
(
1
);
CONNECT
(
ui
.
stylesCombo
,
currentIndexChanged
(
QString
),
this
,
changeStyle
(
QString
)
);
optionWidgets
.
append
(
ui
.
stylesCombo
);
#else
ui
.
styleCombo
->
hide
();
#endif
ui
.
skins_zone
->
setEnabled
(
ui
.
skins
->
isChecked
()
);
CONNECT
(
ui
.
skins
,
toggled
(
bool
),
ui
.
skins_zone
,
setEnabled
(
bool
)
);
...
...
@@ -817,6 +817,7 @@ void SPrefsPanel::changeStyle( QString s_style )
#include <QDialogButtonBox>
#include <QHeaderView>
#include "util/registry.hpp"
#include <string>
bool
SPrefsPanel
::
addType
(
const
char
*
psz_ext
,
QTreeWidgetItem
*
current
,
QTreeWidgetItem
*
parent
,
QVLCRegistry
*
qvReg
)
...
...
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