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
8f338bda
Commit
8f338bda
authored
Jul 18, 2021
by
Alexander Stippich
Browse files
correctly load option values during construction
parent
cd38e98b
Changes
8
Hide whitespace changes
Inline
Side-by-side
src/options/ksaneactionoption.cpp
View file @
8f338bda
...
...
@@ -18,6 +18,8 @@ KSaneActionOption::KSaneActionOption(const SANE_Handle handle, const int index)
:
KSaneBaseOption
(
handle
,
index
)
{
m_optionType
=
KSaneOption
::
TypeAction
;
readOption
();
readValue
();
}
bool
KSaneActionOption
::
setValue
(
const
QVariant
&
)
...
...
src/options/ksanebaseoption.cpp
View file @
8f338bda
...
...
@@ -22,7 +22,6 @@ KSaneBaseOption::KSaneBaseOption(const SANE_Handle handle, const int index)
:
QObject
(),
m_handle
(
handle
),
m_index
(
index
)
{
readOption
();
readValue
();
}
KSaneBaseOption
::~
KSaneBaseOption
()
...
...
src/options/ksanebooloption.cpp
View file @
8f338bda
...
...
@@ -20,6 +20,8 @@ KSaneBoolOption::KSaneBoolOption(const SANE_Handle handle, const int index)
:
KSaneBaseOption
(
handle
,
index
)
{
m_optionType
=
KSaneOption
::
TypeBool
;
readOption
();
readValue
();
}
bool
KSaneBoolOption
::
setValue
(
const
QVariant
&
value
)
...
...
src/options/ksanedoubleoption.cpp
View file @
8f338bda
...
...
@@ -25,6 +25,8 @@ KSaneDoubleOption::KSaneDoubleOption(const SANE_Handle handle, const int index)
:
KSaneBaseOption
(
handle
,
index
)
{
m_optionType
=
KSaneOption
::
TypeDouble
;
readOption
();
readValue
();
}
void
KSaneDoubleOption
::
readOption
()
...
...
src/options/ksanegammaoption.cpp
View file @
8f338bda
...
...
@@ -22,6 +22,8 @@ KSaneGammaOption::KSaneGammaOption(const SANE_Handle handle, const int index)
:
KSaneBaseOption
(
handle
,
index
)
{
m_optionType
=
KSaneOption
::
TypeGamma
;
readOption
();
readValue
();
}
bool
KSaneGammaOption
::
setValue
(
const
QVariant
&
value
)
...
...
src/options/ksaneintegeroption.cpp
View file @
8f338bda
...
...
@@ -21,6 +21,8 @@ KSaneIntegerOption::KSaneIntegerOption(const SANE_Handle handle, const int index
:
KSaneBaseOption
(
handle
,
index
)
{
m_optionType
=
KSaneOption
::
TypeInteger
;
readOption
();
readValue
();
}
void
KSaneIntegerOption
::
readValue
()
...
...
src/options/ksanelistoption.cpp
View file @
8f338bda
...
...
@@ -21,6 +21,8 @@ KSaneListOption::KSaneListOption(const SANE_Handle handle, const int index)
:
KSaneBaseOption
(
handle
,
index
)
{
m_optionType
=
KSaneOption
::
TypeValueList
;
readOption
();
readValue
();
}
void
KSaneListOption
::
readValue
()
...
...
src/options/ksanestringoption.cpp
View file @
8f338bda
...
...
@@ -20,6 +20,8 @@ KSaneStringOption::KSaneStringOption(const SANE_Handle handle, const int index)
:
KSaneBaseOption
(
handle
,
index
)
{
m_optionType
=
KSaneOption
::
TypeString
;
readOption
();
readValue
();
}
bool
KSaneStringOption
::
setValue
(
const
QVariant
&
val
)
...
...
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