[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [krita/krita-testing-wolthera] libs/ui/widgets: Enable typing hdr values into spinbox.
From:       Wolthera van Hovell tot Westerflier <griffinvalley () gmail ! com>
Date:       2016-08-16 18:52:13
Message-ID: E1bZjTB-0005JB-1f () code ! kde ! org
[Download RAW message or body]

Git commit ae0fd531f89f9c2bd000de318de9d3bf05c0f3af by Wolthera van Hovell tot \
Westerflier. Committed on 16/08/2016 at 16:25.
Pushed by woltherav into branch 'krita-testing-wolthera'.

Enable typing hdr values into spinbox.

This could probably be a little more elegant...

Ref 2337

M  +2    -1    libs/ui/widgets/kis_spinbox_color_selector.cpp

http://commits.kde.org/krita/ae0fd531f89f9c2bd000de318de9d3bf05c0f3af

diff --git a/libs/ui/widgets/kis_spinbox_color_selector.cpp \
b/libs/ui/widgets/kis_spinbox_color_selector.cpp index 0c790b7..5367e92 100644
--- a/libs/ui/widgets/kis_spinbox_color_selector.cpp
+++ b/libs/ui/widgets/kis_spinbox_color_selector.cpp
@@ -127,7 +127,8 @@ void KisSpinboxColorSelector::slotSetColorSpace(const \
KoColorSpace *cs)  case KoChannelInfo::FLOAT32: {
             KisDoubleParseSpinBox *input = new KisDoubleParseSpinBox(this);
             input->setMinimum(0);
-            input->setMaximum(1.0);
+            input->setMaximum(KoColorSpaceMathsTraits<float>::max);
+            input->setSingleStep(0.1);
             m_d->doubleSpinBoxList.append(input);
             layout->addRow(inputLabel,input);
             if (input) {


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic