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
5c7316ef
Commit
5c7316ef
authored
Aug 28, 2006
by
Clément Stenac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Re-enable custom fonts in preferences, without the crash
parent
f3098146
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
19 deletions
+9
-19
modules/gui/qt4/components/preferences.cpp
modules/gui/qt4/components/preferences.cpp
+9
-19
No files found.
modules/gui/qt4/components/preferences.cpp
View file @
5c7316ef
...
...
@@ -20,7 +20,6 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
#include "components/preferences.hpp"
#include "components/preferences_widgets.hpp"
#include "qt4.hpp"
...
...
@@ -35,7 +34,7 @@
#include "pixmaps/advanced.xpm"
#include "pixmaps/codec.xpm"
#include "pixmaps/intf.xpm"
#include <QApplication>
#include <QLabel>
#include <QTreeWidget>
#include <QTreeWidgetItem>
...
...
@@ -70,16 +69,8 @@ PrefsTree::PrefsTree( intf_thread_t *_p_intf, QWidget *_parent ) :
setAlternatingRowColors
(
true
);
header
()
->
hide
();
#ifndef WIN32
// Fixme - A bit UGLY
QFont
f
=
font
();
int
pSize
=
f
.
pointSize
();
if
(
pSize
>
0
)
f
.
setPointSize
(
pSize
+
1
);
else
f
.
setPixelSize
(
f
.
pixelSize
()
+
1
);
setFont
(
f
);
#endif
QFont
myFont
=
QApplication
::
font
(
0
);
myFont
.
setPointSize
(
myFont
.
pointSize
()
+
3
);
myFont
.
setBold
(
true
);
#define BI( a,b) QIcon a##_icon = QIcon( QPixmap( b##_xpm ))
BI
(
audio
,
audio
);
...
...
@@ -406,16 +397,15 @@ PrefsPanel::PrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
}
}
QLabel
*
label
=
new
QLabel
(
head
,
this
);
#ifndef WIN32
QFont
font
=
label
->
font
(
);
font
.
setPointSize
(
font
.
pointSize
()
+
2
);
f
ont
.
setBold
(
true
);
label
->
setFont
(
font
);
#endif
QLabel
*
label
=
new
QLabel
(
head
);
global_layout
->
addWidget
(
label
);
QFont
myFont
=
QApplication
::
font
(
0
);
myFont
.
setPointSize
(
myFont
.
pointSize
()
+
3
);
myF
ont
.
setBold
(
true
);
label
->
setFont
(
myFont
);
QLabel
*
help
=
new
QLabel
(
data
->
help
,
this
);
help
->
setWordWrap
(
true
);
global_layout
->
addWidget
(
label
);
global_layout
->
addWidget
(
help
);
QGroupBox
*
box
=
NULL
;
...
...
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