Don't add QLayouts to QWidgets that already have one (#4672)
This commit is contained in:
@@ -32,7 +32,7 @@ EditableModelView::EditableModelView(QAbstractTableModel *model, bool movable)
|
||||
vbox->setContentsMargins(0, 0, 0, 0);
|
||||
|
||||
// create button layout
|
||||
QHBoxLayout *buttons = new QHBoxLayout(this);
|
||||
auto *buttons = new QHBoxLayout();
|
||||
this->buttons_ = buttons;
|
||||
vbox->addLayout(buttons);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user