fix(SplitInput): reuse of layout creator (#6654)

This commit is contained in:
pajlada
2025-12-14 12:46:37 +01:00
committed by GitHub
parent 6c61b345fb
commit 7657d7f679
2 changed files with 3 additions and 2 deletions
+1
View File
@@ -61,6 +61,7 @@
- Dev: Set settings directory to temporary one used in tests. (#6584) - Dev: Set settings directory to temporary one used in tests. (#6584)
- Dev: Check Lua unwinding and version in tests. (#6586) - Dev: Check Lua unwinding and version in tests. (#6586)
- Dev: Added method to get the last N messages of a channel. (#6602, #6604) - 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: Unwrapped `LimitedQueueSnapshot` to `std::vector`. (#6606)
- Dev: Simplified uses of `getMessageSnapshot`. (#6607) - Dev: Simplified uses of `getMessageSnapshot`. (#6607)
- Dev: Disabled `llvm-prefer-static-over-anonymous-namespace` in clang-tidy. (#6610) - Dev: Disabled `llvm-prefer-static-over-anonymous-namespace` in clang-tidy. (#6610)
+2 -2
View File
@@ -123,11 +123,11 @@ void SplitInput::initLayout()
auto replyHbox = auto replyHbox =
replyVbox.emplace<QHBoxLayout>().assign(&this->ui_.replyHbox); replyVbox.emplace<QHBoxLayout>().assign(&this->ui_.replyHbox);
auto messageVbox = layoutCreator.setLayoutType<QVBoxLayout>(); auto *messageVbox = new QVBoxLayout;
this->ui_.replyMessage = new MessageView(); this->ui_.replyMessage = new MessageView();
messageVbox->addWidget(this->ui_.replyMessage, 0, Qt::AlignLeft); messageVbox->addWidget(this->ui_.replyMessage, 0, Qt::AlignLeft);
messageVbox->setContentsMargins(10, 0, 0, 0); messageVbox->setContentsMargins(10, 0, 0, 0);
replyVbox->addLayout(messageVbox->layout(), 0); replyVbox->addLayout(messageVbox, 0);
auto replyLabel = replyHbox.emplace<QLabel>().assign(&this->ui_.replyLabel); auto replyLabel = replyHbox.emplace<QLabel>().assign(&this->ui_.replyLabel);
replyLabel->setAlignment(Qt::AlignLeft); replyLabel->setAlignment(Qt::AlignLeft);