From 8d14c447ebf8c3f8887b3a6238e93f50d3b29f6e Mon Sep 17 00:00:00 2001 From: Joao Carreira Date: Thu, 30 Jan 2014 01:01:54 +0000 Subject: [PATCH] Minor bug fix! Each component of the dialog needs to be in a different variable --- source/ConfigureFormatDialog.cpp | 8 ++++---- source/ConfigureFormatDialog.h | 5 +++++ 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/source/ConfigureFormatDialog.cpp b/source/ConfigureFormatDialog.cpp index 70c168a..fbd6307 100755 --- a/source/ConfigureFormatDialog.cpp +++ b/source/ConfigureFormatDialog.cpp @@ -106,8 +106,8 @@ ConfigureFormatDialog::ConfigureFormatDialog( QWidget *parent ) : // resolutionGrid - *verticalSpacer = QSpacerItem( 10, 20, QSizePolicy::Minimum ); - MainLayout->addItem( verticalSpacer ); + resolutionGridVerticalSpacer = new QSpacerItem( 10, 20, QSizePolicy::Minimum ); + MainLayout->addItem( resolutionGridVerticalSpacer ); resolutionGrid = new QGridLayout( this ); resolutionGrid->setObjectName( QStringLiteral( "resolutionGrid" ) ); @@ -151,8 +151,8 @@ ConfigureFormatDialog::ConfigureFormatDialog( QWidget *parent ) : // Pixel format - *verticalSpacer = QSpacerItem( 10, 20, QSizePolicy::Minimum ); - MainLayout->addItem( verticalSpacer ); + pixelFormatVerticalSpacer = new QSpacerItem( 10, 20, QSizePolicy::Minimum ); + MainLayout->addItem( pixelFormatVerticalSpacer ); pixelFormatLayout = new QHBoxLayout( ); pixelFormatLayout->setObjectName( QStringLiteral( "pixelFormatLayout" ) ); diff --git a/source/ConfigureFormatDialog.h b/source/ConfigureFormatDialog.h index e11d6f0..e7d70c5 100755 --- a/source/ConfigureFormatDialog.h +++ b/source/ConfigureFormatDialog.h @@ -74,6 +74,8 @@ private: QLabel *standardResolutionLabel; QSpacerItem *horizontalSpacer; QComboBox *standardResolutionBox; + + QSpacerItem *resolutionGridVerticalSpacer; QGridLayout *resolutionGrid; QLabel *widthLabel; QLabel *pixelsLabel; @@ -83,10 +85,13 @@ private: QLabel *heightLabel; QSpacerItem *verticalSpacer; + QSpacerItem *pixelFormatVerticalSpacer; QHBoxLayout *pixelFormatLayout; QLabel *pixelFormatLabel; QSpacerItem *pixelFormatHorizontalSpacer; QComboBox *pixelFormatBox; + + QSpacerItem *verticalSpacerConfirmation; QDialogButtonBox *dialogButtonOkCancel;