fix(SplitInput): reuse of layout creator (#6654)
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -123,11 +123,11 @@ void SplitInput::initLayout()
|
||||
auto replyHbox =
|
||||
replyVbox.emplace<QHBoxLayout>().assign(&this->ui_.replyHbox);
|
||||
|
||||
auto messageVbox = layoutCreator.setLayoutType<QVBoxLayout>();
|
||||
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<QLabel>().assign(&this->ui_.replyLabel);
|
||||
replyLabel->setAlignment(Qt::AlignLeft);
|
||||
|
||||
Reference in New Issue
Block a user