11#include <ksanecore_debug.h>
18 , d(std::make_unique<OptionPrivate>())
22Option::~Option() =
default;
26 if (d->option !=
nullptr) {
27 return d->option->state();
35 if (d->option !=
nullptr) {
36 return d->option->name();
44 if (d->option !=
nullptr) {
45 return d->option->title();
53 if (d->option !=
nullptr) {
54 return d->option->description();
62 if (d->option !=
nullptr) {
63 return d->option->type();
65 return TypeDetectFail;
71 if (d->option !=
nullptr) {
72 return d->option->minimumValue();
80 if (d->option !=
nullptr) {
81 return d->option->maximumValue();
89 if (d->option !=
nullptr) {
90 return d->option->stepValue();
96QVariantList Option::valueList()
const
98 if (d->option !=
nullptr) {
99 return d->option->valueList();
101 return QVariantList();
105QVariantList Option::internalValueList()
const
107 if (d->option !=
nullptr) {
108 return d->option->internalValueList();
110 return QVariantList();
116 if (d->option !=
nullptr) {
117 return d->option->value();
125 if (d->option !=
nullptr) {
126 return d->option->valueUnit();
132int Option::valueSize()
const
134 if (d->option !=
nullptr) {
135 return d->option->valueSize();
143 if (d->option !=
nullptr) {
144 return d->option->setValue(value);
150bool Option::storeCurrentData()
152 if (d->option !=
nullptr) {
153 return d->option->storeCurrentData();
159bool Option::restoreSavedData()
161 if (d->option !=
nullptr) {
162 return d->option->restoreSavedData();
170#include "moc_option.cpp"
OptionType
This enumeration describes the type of the option.
OptionState
This enumeration describes the current statue of the value of the option, indicating if this option s...
OptionUnit
This enumeration describes the unit of the value of the option, if any.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 27 2024 11:54:20 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.