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
+2 -2
View File
@@ -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);