Skip to content

Commit

Permalink
Fixing wrong layout/multi-layout bugs.
Browse files Browse the repository at this point in the history
  • Loading branch information
dvorka committed Feb 1, 2024
1 parent 218671e commit 59a9df4
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 10 deletions.
5 changes: 3 additions & 2 deletions app/src/qt/dialogs/note_new_dialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,11 @@ NoteNewDialog::GeneralTab::GeneralTab(Ontology& ontology, QWidget *parent)
QVBoxLayout* basicLayout = new QVBoxLayout{this};
basicLayout->addWidget(nameLabel);

QHBoxLayout* nameLayout = new QHBoxLayout{this};
QWidget* eji = new QWidget{this};
QHBoxLayout* nameLayout = new QHBoxLayout{eji};
nameLayout->addWidget(nameEdit);
nameLayout->addWidget(emojisButton);
basicLayout->addLayout(nameLayout);
basicLayout->addWidget(eji);

basicLayout->addWidget(positionLabel);
basicLayout->addWidget(positionCombo);
Expand Down
5 changes: 3 additions & 2 deletions app/src/qt/dialogs/outline_new_dialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,11 @@ OutlineNewDialog::GeneralTab::GeneralTab(Ontology& ontology, QWidget *parent)
QVBoxLayout* basicLayout = new QVBoxLayout{this};
basicLayout->addWidget(nameLabel);

QHBoxLayout* nameLayout = new QHBoxLayout{this};
QWidget* eji = new QWidget{this};
QHBoxLayout* nameLayout = new QHBoxLayout{eji};
nameLayout->addWidget(nameEdit);
nameLayout->addWidget(emojisButton);
basicLayout->addLayout(nameLayout);
basicLayout->addWidget(eji);

basicLayout->addWidget(typeLabel);
basicLayout->addWidget(typeCombo);
Expand Down
15 changes: 9 additions & 6 deletions app/src/qt/dialogs/wingman_dialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,18 +105,21 @@ WingmanDialog::WingmanDialog(QWidget* parent)
progressBar->hide();

QHBoxLayout* contentLayout = new QHBoxLayout{this};
QVBoxLayout* contentLayout1 = new QVBoxLayout{this};
QWidget* cw1 = new QWidget{this};
QVBoxLayout* contentLayout1 = new QVBoxLayout{cw1};
contentLayout1->addWidget(contextNameLabel);
contentLayout1->addWidget(contextNameEdit);
contentLayout->addLayout(contentLayout1);
QVBoxLayout* contentLayout2 = new QVBoxLayout{this};
contentLayout->addWidget(cw1);
QWidget* cw2 = new QWidget{this};
QVBoxLayout* contentLayout2 = new QVBoxLayout{cw2};
contentLayout2->addWidget(contextLabel);
contentLayout2->addWidget(contextEdit);
contentLayout->addLayout(contentLayout2);
QVBoxLayout* contentLayout3 = new QVBoxLayout{this};
contentLayout->addWidget(cw2);
QWidget* cw3 = new QWidget{this};
QVBoxLayout* contentLayout3 = new QVBoxLayout{cw3};
contentLayout3->addWidget(contextTypeLabel);
contentLayout3->addWidget(contextTypeEdit);
contentLayout->addLayout(contentLayout3);
contentLayout->addWidget(cw3);
contextGroup->setLayout(contentLayout);
contextGroup->hide();

Expand Down

0 comments on commit 59a9df4

Please sign in to comment.