Skip to content

Commit

Permalink
Layout fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasKroes committed Dec 17, 2024
1 parent 7d88b2a commit 45c6447
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions ManiVault/src/private/PageActionsWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ PageActionsWidget::PageActionsWidget(QWidget* parent, const QString& title, bool
_layout.addWidget(PageContentWidget::createHeaderLabel(title, title));

_layout.addWidget(&_hierarchyWidget, 1);
_layout.setContentsMargins(0, 0, 0, 0);

setLayout(&_layout);

Expand Down
2 changes: 0 additions & 2 deletions ManiVault/src/private/PageTutorialsWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ PageTutorialsWidget::PageTutorialsWidget(QWidget* parent, const QStringList& tag
PageActionsWidget(parent, "Tutorials"),
_toolbarAction(this, "Toolbar")
{
layout()->setContentsMargins(0, 0, 0, 0);

dynamic_cast<QVBoxLayout*>(layout())->insertWidget(1, _toolbarAction.createWidget(this));

_toolbarAction.setShowLabels(false);
Expand Down
2 changes: 2 additions & 0 deletions ManiVault/src/private/StartPageGetStartedWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ StartPageGetStartedWidget::StartPageGetStartedWidget(StartPageContentWidget* sta
{
auto layout = new QVBoxLayout();

layout->setContentsMargins(0, 0, 0, 0);

layout->addWidget(&_createProjectFromWorkspaceWidget, 3);
layout->addWidget(&_createProjectFromDatasetWidget, 3);
layout->addWidget(&_tutorialsWidget, 3);
Expand Down
2 changes: 2 additions & 0 deletions ManiVault/src/private/StartPageOpenProjectWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ StartPageOpenProjectWidget::StartPageOpenProjectWidget(StartPageContentWidget* s
{
auto layout = new QVBoxLayout();

layout->setContentsMargins(0, 0, 0, 0);

layout->addWidget(&_openCreateProjectWidget);
layout->addWidget(&_recentProjectsWidget);

Expand Down

0 comments on commit 45c6447

Please sign in to comment.