Don't add QLayouts to QWidgets that already have one (#4672)
This commit is contained in:
@@ -209,7 +209,7 @@ EmotePopup::EmotePopup(QWidget *parent)
|
||||
this->setStayInScreenRect(true);
|
||||
this->moveTo(this, getApp()->windows->emotePopupPos(), false);
|
||||
|
||||
auto *layout = new QVBoxLayout(this);
|
||||
auto *layout = new QVBoxLayout();
|
||||
this->getLayoutContainer()->setLayout(layout);
|
||||
|
||||
QRegularExpression searchRegex("\\S*");
|
||||
@@ -218,7 +218,7 @@ EmotePopup::EmotePopup(QWidget *parent)
|
||||
layout->setContentsMargins(0, 0, 0, 0);
|
||||
layout->setSpacing(0);
|
||||
|
||||
auto *layout2 = new QHBoxLayout(this);
|
||||
auto *layout2 = new QHBoxLayout();
|
||||
layout2->setContentsMargins(8, 8, 8, 8);
|
||||
layout2->setSpacing(8);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user