Skip to content

Commit

Permalink
Merge pull request #50759 from tarot231/patch-1
Browse files Browse the repository at this point in the history
Fix qgsdialog.cpp to use addLayout
  • Loading branch information
troopa81 committed Nov 7, 2022
2 parents 0d7c0ec + b78753c commit 8d70bef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gui/qgsdialog.cpp
Expand Up @@ -28,13 +28,13 @@ QgsDialog::QgsDialog( QWidget *parent, Qt::WindowFlags fl,
connect( mButtonBox, &QDialogButtonBox::rejected, this, &QDialog::reject );

// layout
QLayout *layout = nullptr;
QBoxLayout *layout = nullptr;
if ( orientation == Qt::Horizontal )
layout = new QVBoxLayout();
else
layout = new QHBoxLayout();
mLayout = new QVBoxLayout();
layout->addItem( mLayout );
layout->addLayout( mLayout );
layout->addWidget( mButtonBox );
setLayout( layout );
}
Expand Down

0 comments on commit 8d70bef

Please sign in to comment.