Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Graphics
libksane
Commits
9a3ab2a3
Commit
9a3ab2a3
authored
Jun 25, 2021
by
Alexander Stippich
Browse files
do not use internal SANE strings for custom gamma option
parent
8386ec56
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/ksanewidget_p.cpp
View file @
9a3ab2a3
...
...
@@ -500,11 +500,13 @@ void KSaneWidgetPrivate::createOptInterface()
if
((
m_optGamR
!=
nullptr
)
&&
(
m_optGamG
!=
nullptr
)
&&
(
m_optGamB
!=
nullptr
)
&&
(
gammaR
!=
nullptr
)
&&
(
gammaG
!=
nullptr
)
&&
(
gammaB
!=
nullptr
)
)
{
m_commonGamma
=
new
LabeledGamma
(
m_colorOpts
,
i18n
(
SANE_TITLE_GAMMA_VECTOR
),
gammaR
->
maxValue
());
m_commonGamma
=
new
LabeledGamma
(
m_colorOpts
,
i18n
(
"Image intensity"
),
gammaR
->
maxValue
());
color_lay
->
addWidget
(
m_commonGamma
);
m_commonGamma
->
setToolTip
(
i18n
(
SANE_DESC_GAMMA_VECTOR
));
m_commonGamma
->
setToolTip
(
i18n
(
"Gamma-correction table. In color mode this option equally "
\
"affects the red, green, and blue channels simultaneously (i.e., it is an "
\
"intensity gamma table)."
));
connect
(
m_commonGamma
,
&
LabeledGamma
::
valuesChanged
,
gammaR
,
&
LabeledGamma
::
setValues
);
connect
(
m_commonGamma
,
&
LabeledGamma
::
valuesChanged
,
gammaG
,
&
LabeledGamma
::
setValues
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment