summaryrefslogtreecommitdiffstats
path: root/tests/galaxy/main.cpp
diff options
context:
space:
mode:
authorMika Salmela <mika.salmela@theqtcompany.com>2014-12-12 14:18:38 +0200
committerMika Salmela <mika.salmela@theqtcompany.com>2014-12-12 14:19:00 +0200
commitaa2abb9869223c24ea5a3873299b596a3d8f1ab0 (patch)
tree8072e5eefdc2511a00c8d454939cbbef9ad798fb /tests/galaxy/main.cpp
parent1ab6dc39778ea3379f3c626104726935be3804db (diff)
Dust and H2 to galaxy
Change-Id: I3bd3357fe73fbed68498311e0fd2a969980369a3 Reviewed-by: Mika Salmela <mika.salmela@theqtcompany.com>
Diffstat (limited to 'tests/galaxy/main.cpp')
-rw-r--r--tests/galaxy/main.cpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/galaxy/main.cpp b/tests/galaxy/main.cpp
index 83e06cff..7b749742 100644
--- a/tests/galaxy/main.cpp
+++ b/tests/galaxy/main.cpp
@@ -87,6 +87,18 @@ int main(int argc, char **argv)
staticCheckBox->setText(QStringLiteral("Static"));
staticCheckBox->setChecked(false);
+ QCheckBox *starsCheckBox = new QCheckBox(widget);
+ starsCheckBox->setText(QStringLiteral("Stars"));
+ starsCheckBox->setChecked(true);
+
+ QCheckBox *dustCheckBox = new QCheckBox(widget);
+ dustCheckBox->setText(QStringLiteral("Dust"));
+ dustCheckBox->setChecked(true);
+
+ QCheckBox *H2CheckBox = new QCheckBox(widget);
+ H2CheckBox->setText(QStringLiteral("H2"));
+ H2CheckBox->setChecked(true);
+
QPushButton *resetButton = new QPushButton(widget);
resetButton->setText(QStringLiteral("Reset values"));
@@ -107,6 +119,9 @@ int main(int argc, char **argv)
vLayout->addWidget(new QLabel(QStringLiteral("Eccentricity outer")));
vLayout->addWidget(eccentricityOuterSlider);
vLayout->addWidget(staticCheckBox);
+ vLayout->addWidget(starsCheckBox);
+ vLayout->addWidget(dustCheckBox);
+ vLayout->addWidget(H2CheckBox);
vLayout->addWidget(resetButton);
vLayout->addWidget(filteredCheckBox);
vLayout->addWidget(fpsLabel);
@@ -129,6 +144,12 @@ int main(int argc, char **argv)
modifier, &GalaxyData::setFilteredEnabled);
QObject::connect(staticCheckBox, &QCheckBox::stateChanged,
modifier, &GalaxyData::setStaticEnabled);
+ QObject::connect(starsCheckBox, &QCheckBox::stateChanged,
+ modifier, &GalaxyData::setStarsVisible);
+ QObject::connect(dustCheckBox, &QCheckBox::stateChanged,
+ modifier, &GalaxyData::setDustVisible);
+ QObject::connect(H2CheckBox, &QCheckBox::stateChanged,
+ modifier, &GalaxyData::setH2Visible);
modifier->setSliders(radiusGalaxySlider, radiusCoreSlider, angleOffsetSlider,
eccentricityInnerSlider, eccentricityOuterSlider);