Changeset e43f1917217e06cceb4ecac4fc4ecf86f6c8a90c
- Timestamp:
- 15/06/08 00:25:37
(6 months ago)
- Author:
- Jean-Baptiste Kempf <jb@videolan.org>
- git-committer:
- Jean-Baptiste Kempf <jb@videolan.org> 1213482337 -0700
- git-parent:
[9af5ad61ebdb2f706a991b228ddb2aa36bc925d5]
- git-author:
- Jean-Baptiste Kempf <jb@videolan.org> 1213482324 -0700
- Message:
Introduce setLayoutMargins for layout margins difference between Qt4.2 and Qt4.3
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| re39bc8a |
re43f191 |
|
| 389 | 389 | |
|---|
| 390 | 390 | controlLayout->setSpacing( 0 ); |
|---|
| 391 | | #if QT43 |
|---|
| 392 | | controlLayout->setContentsMargins( 9, 6, 9, 6 ); |
|---|
| 393 | | #else |
|---|
| 394 | | controlLayout->setMargin( 6 ); |
|---|
| 395 | | #endif |
|---|
| | 391 | controlLayout->setLayoutMargins( 9, 6, 9, 6, 6 ); |
|---|
| 396 | 392 | |
|---|
| 397 | 393 | if( !b_fsCreation ) |
|---|
| … | … | |
| 828 | 824 | QGridLayout *fsLayout = new QGridLayout( this ); |
|---|
| 829 | 825 | controlLayout->setSpacing( 0 ); |
|---|
| 830 | | #if QT43 |
|---|
| 831 | | controlLayout->setContentsMargins( 5, 1, 5, 1 ); |
|---|
| 832 | | #else |
|---|
| 833 | | controlLayout->setMargin( 5 ); |
|---|
| 834 | | #endif |
|---|
| | 826 | controlLayout->setLayoutMargins( 5, 1, 5, 1, 5 ); |
|---|
| 835 | 827 | |
|---|
| 836 | 828 | fsLayout->addWidget( slowerButton, 0, 0 ); |
|---|
| rc75dafa |
re43f191 |
|
| 2 | 2 | * simple_preferences.cpp : "Simple preferences" |
|---|
| 3 | 3 | **************************************************************************** |
|---|
| 4 | | * Copyright (C) 2006-2007 the VideoLAN team |
|---|
| | 4 | * Copyright (C) 2006-2008 the VideoLAN team |
|---|
| 5 | 5 | * $Id$ |
|---|
| 6 | 6 | * |
|---|
| … | … | |
| 23 | 23 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA. |
|---|
| 24 | 24 | *****************************************************************************/ |
|---|
| | 25 | |
|---|
| 25 | 26 | #ifdef HAVE_CONFIG_H |
|---|
| 26 | 27 | # include "config.h" |
|---|
| … | … | |
| 298 | 299 | this, updateAudioOptions( int ) ); |
|---|
| 299 | 300 | |
|---|
| 300 | | // File exists everywhere |
|---|
| | 301 | /* File output exists on all platforms */ |
|---|
| 301 | 302 | CONFIG_GENERIC_FILE( "audiofile-file" , File , ui.fileLabel, |
|---|
| 302 | 303 | ui.fileName, ui.fileBrowseButton ); |
|---|
| r62d91d4 |
re43f191 |
|
| 104 | 104 | /* Margins */ |
|---|
| 105 | 105 | tree_panel_l->setMargin( 1 ); |
|---|
| 106 | | #if HAS_QT43 |
|---|
| 107 | | main_panel_l->setContentsMargins( 6, 0, 0, 3 ); |
|---|
| 108 | | #else |
|---|
| 109 | | main_panel_l->setMargin( 3 ); |
|---|
| 110 | | #endif |
|---|
| | 106 | main_panel_l->setLayoutMargins( 6, 0, 0, 3, 3 ); |
|---|
| 111 | 107 | |
|---|
| 112 | 108 | for( int i = 0; i < SPrefsMax ; i++ ) simple_panels[i] = NULL; |
|---|
| r3561b9b |
re43f191 |
|
| 101 | 101 | else x->show(); } |
|---|
| 102 | 102 | |
|---|
| | 103 | #if QT43 |
|---|
| | 104 | #define setLayoutMargins( a, b, c, d, e) setContentsMargins( a, b, c, d ) |
|---|
| | 105 | #else |
|---|
| | 106 | #define setLayoutMargins( a, b, c, d, e) setMargin( e ) |
|---|
| | 107 | #endif |
|---|
| | 108 | |
|---|
| 103 | 109 | enum { |
|---|
| 104 | | DialogEventType = 0, |
|---|
| 105 | | IMEventType = 100, |
|---|
| 106 | | PLEventType = 200 |
|---|
| | 110 | DialogEventType = 0, |
|---|
| | 111 | IMEventType = 100, |
|---|
| | 112 | PLEventType = 200 |
|---|
| 107 | 113 | }; |
|---|
| 108 | 114 | |
|---|