diff --git a/CHANGELOG.md b/CHANGELOG.md index 32ff6154..8ce7242c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -61,6 +61,7 @@ - Dev: Set settings directory to temporary one used in tests. (#6584) - Dev: Check Lua unwinding and version in tests. (#6586) - Dev: Added method to get the last N messages of a channel. (#6602, #6604) +- Dev: Fixed some layout spaghetti in `SplitInput`. (#6654) - Dev: Unwrapped `LimitedQueueSnapshot` to `std::vector`. (#6606) - Dev: Simplified uses of `getMessageSnapshot`. (#6607) - Dev: Disabled `llvm-prefer-static-over-anonymous-namespace` in clang-tidy. (#6610) diff --git a/src/widgets/splits/SplitInput.cpp b/src/widgets/splits/SplitInput.cpp index e5a60e4d..1c31131c 100644 --- a/src/widgets/splits/SplitInput.cpp +++ b/src/widgets/splits/SplitInput.cpp @@ -123,11 +123,11 @@ void SplitInput::initLayout() auto replyHbox = replyVbox.emplace().assign(&this->ui_.replyHbox); - auto messageVbox = layoutCreator.setLayoutType(); + auto *messageVbox = new QVBoxLayout; this->ui_.replyMessage = new MessageView(); messageVbox->addWidget(this->ui_.replyMessage, 0, Qt::AlignLeft); messageVbox->setContentsMargins(10, 0, 0, 0); - replyVbox->addLayout(messageVbox->layout(), 0); + replyVbox->addLayout(messageVbox, 0); auto replyLabel = replyHbox.emplace().assign(&this->ui_.replyLabel); replyLabel->setAlignment(Qt::AlignLeft);