summaryrefslogtreecommitdiff
path: root/src/gui/widgets/tabs
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-05-31 02:09:15 +0300
committerAndrei Karas <akaras@inbox.ru>2015-05-31 02:09:15 +0300
commitb072723595e729eed79199f246439ffed62cdbb5 (patch)
tree2b2f98eacc1e4356a740e8f52aa3ed00a4cbb922 /src/gui/widgets/tabs
parent445697f9f6ac91ab6f1c7f92519181ee8e99c728 (diff)
downloadplus-b072723595e729eed79199f246439ffed62cdbb5.tar.gz
plus-b072723595e729eed79199f246439ffed62cdbb5.tar.bz2
plus-b072723595e729eed79199f246439ffed62cdbb5.tar.xz
plus-b072723595e729eed79199f246439ffed62cdbb5.zip
Convert GradientType enum into strong typed enum.
Diffstat (limited to 'src/gui/widgets/tabs')
-rw-r--r--src/gui/widgets/tabs/setup_colors.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/widgets/tabs/setup_colors.cpp b/src/gui/widgets/tabs/setup_colors.cpp
index ce567bfa7..1ba6461ea 100644
--- a/src/gui/widgets/tabs/setup_colors.cpp
+++ b/src/gui/widgets/tabs/setup_colors.cpp
@@ -354,7 +354,7 @@ void Setup_Colors::valueChanged(const SelectionEvent &event A_UNUSED)
setEntry(mGreenSlider, mGreenText, col->g);
setEntry(mBlueSlider, mBlueText, col->b);
- mGradTypeSlider->setValue(grad);
+ mGradTypeSlider->setValue(static_cast<int>(grad));
updateGradType();
mGradTypeSlider->setEnabled(true);
}
@@ -382,7 +382,8 @@ void Setup_Colors::cancel()
userPalette->rollback();
const int type = userPalette->getColorTypeAt(mSelected);
const Color *const col = &userPalette->getColor(type);
- mGradTypeSlider->setValue(userPalette->getGradientType(type));
+ mGradTypeSlider->setValue(static_cast<int>(
+ userPalette->getGradientType(type)));
const int delay = userPalette->getGradientDelay(type);
setEntry(mGradDelaySlider, mGradDelayText, delay);
setEntry(mRedSlider, mRedText, col->r);