Skip to content

Commit

Permalink
[GUI] Fix layout instantiation
Browse files Browse the repository at this point in the history
[ci skip]
  • Loading branch information
navv1234 committed Jul 12, 2017
1 parent e0b6ec8 commit 13a9c8c
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions qt/sc_OptionsTab.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ void SC_OptionsTab::createScalingTab()
enableScalingButtonGroupBox -> setSizePolicy( QSizePolicy( QSizePolicy::Minimum, QSizePolicy::Fixed ) );
scalingLayout -> addWidget( enableScalingButtonGroupBox );

QFormLayout* enableScalingButtonGroupBoxLayout = new QFormLayout( this );
QFormLayout* enableScalingButtonGroupBoxLayout = new QFormLayout();

QLabel* enableScalingButtonLabel = new QLabel( tr( "This button enables/disables scale factor calculations, allowing you to toggle scaling while keeping a particular set of stats selected." ) );
enableScalingButtonGroupBoxLayout -> addWidget( enableScalingButtonLabel );
Expand All @@ -452,7 +452,7 @@ void SC_OptionsTab::createScalingTab()
scalingOptionsGroupBox -> setTitle( tr( "Scaling Options" ) );
scalingLayout -> addWidget( scalingOptionsGroupBox );

QFormLayout* scalingOptionsGroupBoxLayout = new QFormLayout( this );
QFormLayout* scalingOptionsGroupBoxLayout = new QFormLayout();
scalingOptionsGroupBoxLayout -> setFieldGrowthPolicy( QFormLayout::FieldsStayAtSizeHint );

// Create Combo Boxes
Expand All @@ -471,7 +471,7 @@ void SC_OptionsTab::createScalingTab()
scalingButtonsGroupBox -> setTitle( tr( "Stats to scale" ) );
scalingLayout -> addWidget( scalingButtonsGroupBox );

QVBoxLayout* scalingButtonsLayout = new QVBoxLayout( this );
QVBoxLayout* scalingButtonsLayout = new QVBoxLayout();

QLabel* scalingButtonToggleAllLabel = new QLabel( tr( "This button toggles scaling for all stats except Latency.\nNote that additional simulations will only be run for RELEVANT stats.\nIn other words, Agility and Intellect would be skipped for a Warrior even if they are checked." ) );
scalingButtonsLayout -> addWidget( scalingButtonToggleAllLabel );
Expand All @@ -487,15 +487,15 @@ void SC_OptionsTab::createScalingTab()

QButtonGroup* primaryStats = new QButtonGroup( this );
primaryStats->setExclusive( false );
QVBoxLayout* primaryStatsLayout = new QVBoxLayout( this );
QVBoxLayout* primaryStatsLayout = new QVBoxLayout();
QButtonGroup* secondaryStats = new QButtonGroup( this );
secondaryStats->setExclusive( false );
QVBoxLayout* secondaryStatsLayout = new QVBoxLayout( this );
QVBoxLayout* secondaryStatsLayout = new QVBoxLayout();
QButtonGroup* miscStats = new QButtonGroup( this );
miscStats->setExclusive( false );
QVBoxLayout* miscStatsLayout = new QVBoxLayout( this );
QVBoxLayout* miscStatsLayout = new QVBoxLayout();

QHBoxLayout* statChoiceLayout = new QHBoxLayout( this );
QHBoxLayout* statChoiceLayout = new QHBoxLayout();

scalingButtonsLayout -> addLayout( statChoiceLayout );

Expand Down

0 comments on commit 13a9c8c

Please sign in to comment.