KProperty
booledit.cpp
79 data->setNamesAsStringList({ stateName(TrueIndex, QLocale(), prop), stateName(FalseIndex, QLocale(), prop),
258// m_edit->addItem(nullIcon, thirdState.toString().isEmpty() ? tr("None") : thirdState.toString());
333 KPropertyBoolEditor::draw(painter, rect.translated(0, -2), value, propertyValueToString(prop, QLocale()), threeState);
336QString KPropertyBoolDelegate::propertyValueToString(const KProperty* prop, const QLocale &locale) const
const KPropertyEditorCreatorOptions * options() const
Options for editor creating.
Definition KPropertyWidgetsFactory.cpp:302
void setKeys(const QVariantList &keys)
Sets a list containing all possible keys for a property.
Definition KPropertyListData.cpp:100
void setNamesAsStringList(const QStringList &names)
Sets a list containing all possible keys for a property as strings.
Definition KPropertyListData.cpp:133
A bool editor supporting three states: true, false and null.
Definition booledit.h:72
QVariant option(const char *name, const QVariant &defaultValue=QVariant()) const
Returns value of given option Option is set if returned value is not null. If there is no option for ...
Definition KProperty.cpp:564
char * toString(const EngineQuery &query)
void setChecked(bool)
void toggle()
currentIndex
KeyPress
Type type() const const
void addPixmap(const QPixmap &pixmap, Mode mode, State state)
int key() const const
Language language() const const
QVariant data(int role) const const
virtual bool eventFilter(QObject *watched, QEvent *event)
void drawText(const QPoint &position, const QString &text)
QSize size() const const
int width() const const
QString fromLatin1(QByteArrayView str)
bool isEmpty() const const
AlignVCenter
WheelFocus
transparent
EditRole
Key_Space
QFuture< ArgsType< Signal > > connect(Sender *sender, Signal signal)
virtual bool event(QEvent *event) override
virtual void paintEvent(QPaintEvent *event) override
Bool
Type type() const const
bool isNull() const const
bool isValid() const const
bool toBool() const const
QString toString() const const
rect
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:11:18 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:11:18 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.