diff options
Diffstat (limited to 'src/gui/widgets/tabs/setup_visual.cpp')
-rw-r--r-- | src/gui/widgets/tabs/setup_visual.cpp | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/src/gui/widgets/tabs/setup_visual.cpp b/src/gui/widgets/tabs/setup_visual.cpp index 7e565a291..067c6e5e9 100644 --- a/src/gui/widgets/tabs/setup_visual.cpp +++ b/src/gui/widgets/tabs/setup_visual.cpp @@ -87,7 +87,8 @@ Setup_Visual::Setup_Visual(const Widget2 *const widget) : mAmbientFxList(new NamesModel), mParticleList(new SetupItemNames), mParticleTypeList(new NamesModel), - mVSyncList(new NamesModel) + mVSyncList(new NamesModel), + mScaleList(new SetupItemNames) { // TRANSLATORS: settings tab name setName(_("Visual")); @@ -99,6 +100,18 @@ Setup_Visual::Setup_Visual(const Widget2 *const widget) : mPreferredFirstItemSize = 150; // TRANSLATORS: settings option + new SetupItemLabel(_("Scale"), "", this); + + for (int f = 1; f <= 7; f ++) + { + // TRANSLATORS: particle details + mScaleList->push_back(toString(f) + "x"); + } + new SetupItemSlider2(_("Scale "), "", "scale", + this, "scaleEvent", 1, 7, + mScaleList, true); + + // TRANSLATORS: settings option new SetupItemLabel(_("Notifications"), "", this); // TRANSLATORS: settings option @@ -204,6 +217,8 @@ Setup_Visual::~Setup_Visual() mParticleTypeList = nullptr; delete mVSyncList; mVSyncList = nullptr; + delete mScaleList; + mScaleList = nullptr; } void Setup_Visual::apply() |