Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
e43f1917
Commit
e43f1917
authored
Jun 14, 2008
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Introduce setLayoutMargins for layout margins difference between Qt4.2 and Qt4.3
parent
9af5ad61
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
20 deletions
+15
-20
modules/gui/qt4/components/interface_widgets.cpp
modules/gui/qt4/components/interface_widgets.cpp
+2
-10
modules/gui/qt4/components/simple_preferences.cpp
modules/gui/qt4/components/simple_preferences.cpp
+3
-2
modules/gui/qt4/dialogs/preferences.cpp
modules/gui/qt4/dialogs/preferences.cpp
+1
-5
modules/gui/qt4/qt4.hpp
modules/gui/qt4/qt4.hpp
+9
-3
No files found.
modules/gui/qt4/components/interface_widgets.cpp
View file @
e43f1917
...
@@ -388,11 +388,7 @@ ControlsWidget::ControlsWidget( intf_thread_t *_p_i,
...
@@ -388,11 +388,7 @@ ControlsWidget::ControlsWidget( intf_thread_t *_p_i,
controlLayout
=
new
QGridLayout
(
);
controlLayout
=
new
QGridLayout
(
);
controlLayout
->
setSpacing
(
0
);
controlLayout
->
setSpacing
(
0
);
#if QT43
controlLayout
->
setLayoutMargins
(
9
,
6
,
9
,
6
,
6
);
controlLayout
->
setContentsMargins
(
9
,
6
,
9
,
6
);
#else
controlLayout
->
setMargin
(
6
);
#endif
if
(
!
b_fsCreation
)
if
(
!
b_fsCreation
)
setLayout
(
controlLayout
);
setLayout
(
controlLayout
);
...
@@ -827,11 +823,7 @@ FullscreenControllerWidget::FullscreenControllerWidget( intf_thread_t *_p_i,
...
@@ -827,11 +823,7 @@ FullscreenControllerWidget::FullscreenControllerWidget( intf_thread_t *_p_i,
QGridLayout
*
fsLayout
=
new
QGridLayout
(
this
);
QGridLayout
*
fsLayout
=
new
QGridLayout
(
this
);
controlLayout
->
setSpacing
(
0
);
controlLayout
->
setSpacing
(
0
);
#if QT43
controlLayout
->
setLayoutMargins
(
5
,
1
,
5
,
1
,
5
);
controlLayout
->
setContentsMargins
(
5
,
1
,
5
,
1
);
#else
controlLayout
->
setMargin
(
5
);
#endif
fsLayout
->
addWidget
(
slowerButton
,
0
,
0
);
fsLayout
->
addWidget
(
slowerButton
,
0
,
0
);
slider
->
setSizePolicy
(
QSizePolicy
::
Expanding
,
QSizePolicy
::
Minimum
);
slider
->
setSizePolicy
(
QSizePolicy
::
Expanding
,
QSizePolicy
::
Minimum
);
...
...
modules/gui/qt4/components/simple_preferences.cpp
View file @
e43f1917
/*****************************************************************************
/*****************************************************************************
* simple_preferences.cpp : "Simple preferences"
* simple_preferences.cpp : "Simple preferences"
****************************************************************************
****************************************************************************
* Copyright (C) 2006-200
7
the VideoLAN team
* Copyright (C) 2006-200
8
the VideoLAN team
* $Id$
* $Id$
*
*
* Authors: Clément Stenac <zorglub@videolan.org>
* Authors: Clément Stenac <zorglub@videolan.org>
...
@@ -22,6 +22,7 @@
...
@@ -22,6 +22,7 @@
* along with this program; if not, write to the Free Software
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
*****************************************************************************/
#ifdef HAVE_CONFIG_H
#ifdef HAVE_CONFIG_H
# include "config.h"
# include "config.h"
#endif
#endif
...
@@ -297,7 +298,7 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
...
@@ -297,7 +298,7 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
CONNECT
(
ui
.
outputModule
,
currentIndexChanged
(
int
),
CONNECT
(
ui
.
outputModule
,
currentIndexChanged
(
int
),
this
,
updateAudioOptions
(
int
)
);
this
,
updateAudioOptions
(
int
)
);
// File exists everywhere
/* File output exists on all platforms */
CONFIG_GENERIC_FILE
(
"audiofile-file"
,
File
,
ui
.
fileLabel
,
CONFIG_GENERIC_FILE
(
"audiofile-file"
,
File
,
ui
.
fileLabel
,
ui
.
fileName
,
ui
.
fileBrowseButton
);
ui
.
fileName
,
ui
.
fileBrowseButton
);
...
...
modules/gui/qt4/dialogs/preferences.cpp
View file @
e43f1917
...
@@ -103,11 +103,7 @@ PrefsDialog::PrefsDialog( QWidget *parent, intf_thread_t *_p_intf )
...
@@ -103,11 +103,7 @@ PrefsDialog::PrefsDialog( QWidget *parent, intf_thread_t *_p_intf )
/* Margins */
/* Margins */
tree_panel_l
->
setMargin
(
1
);
tree_panel_l
->
setMargin
(
1
);
#if HAS_QT43
main_panel_l
->
setLayoutMargins
(
6
,
0
,
0
,
3
,
3
);
main_panel_l
->
setContentsMargins
(
6
,
0
,
0
,
3
);
#else
main_panel_l
->
setMargin
(
3
);
#endif
for
(
int
i
=
0
;
i
<
SPrefsMax
;
i
++
)
simple_panels
[
i
]
=
NULL
;
for
(
int
i
=
0
;
i
<
SPrefsMax
;
i
++
)
simple_panels
[
i
]
=
NULL
;
...
...
modules/gui/qt4/qt4.hpp
View file @
e43f1917
...
@@ -100,10 +100,16 @@ struct intf_sys_t
...
@@ -100,10 +100,16 @@ struct intf_sys_t
#define TOGGLEV( x ) { if( x->isVisible() ) x->hide(); \
#define TOGGLEV( x ) { if( x->isVisible() ) x->hide(); \
else x->show(); }
else x->show(); }
#if QT43
#define setLayoutMargins( a, b, c, d, e) setContentsMargins( a, b, c, d )
#else
#define setLayoutMargins( a, b, c, d, e) setMargin( e )
#endif
enum
{
enum
{
DialogEventType
=
0
,
DialogEventType
=
0
,
IMEventType
=
100
,
IMEventType
=
100
,
PLEventType
=
200
PLEventType
=
200
};
};
static
int
DialogEvent_Type
=
QEvent
::
User
+
DialogEventType
+
1
;
static
int
DialogEvent_Type
=
QEvent
::
User
+
DialogEventType
+
1
;
...
...
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