Skip to content

Commit

Permalink
Add DEFAULT_SPACING filed to Examples class.
Browse files Browse the repository at this point in the history
  • Loading branch information
przemek83 committed Dec 26, 2024
1 parent 5d05cb2 commit 9e1e07b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/Examples.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ FilterStrings* Examples::createFilterStrings()
QVBoxLayout* Examples::createLeftWidgetColumn()
{
auto* leftLayout = new QVBoxLayout();
leftLayout->setSpacing(10);
leftLayout->setSpacing(DEFAULT_SPACING);
auto* groupBox = new QGroupBox(QStringLiteral("Double Slider"));
auto* layout = new QVBoxLayout(groupBox);
layout->addWidget(createDoubleSlider());
Expand Down Expand Up @@ -204,7 +204,7 @@ QGroupBox* Examples::createProgressBarCounter()
QVBoxLayout* Examples::createRightWidgetColumn()
{
auto* rightLayout = new QVBoxLayout();
rightLayout->setSpacing(10);
rightLayout->setSpacing(DEFAULT_SPACING);
rightLayout->addWidget(createProgressBarInfinite());
rightLayout->addWidget(createProgressBarCounter());
rightLayout->addStretch();
Expand Down
2 changes: 2 additions & 0 deletions examples/Examples.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,7 @@ class Examples : public QWidget

static constexpr int MAX_PROGRESS_BAR_VALUE{100};

static constexpr int DEFAULT_SPACING{10};

QLabel info_;
};

0 comments on commit 9e1e07b

Please sign in to comment.