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
QEvent::Type type() const const
void addPixmap(const QPixmap &pixmap, QIcon::Mode mode, QIcon::State state)
int key() const const
QLocale::Language language() const const
QVariant data(int role) const const
virtual bool eventFilter(QObject *watched, QEvent *event)
void drawText(const QPointF &position, const QString &text)
QSize size() const const
int width() const const
QString fromLatin1(const char *str, int size)
bool isEmpty() const const
AlignVCenter
WheelFocus
transparent
EditRole
Key_Space
virtual bool event(QEvent *event) override
virtual void paintEvent(QPaintEvent *event) override
Bool
bool isNull() const const
bool isValid() const const
bool toBool() const const
QString toString() const const
QVariant::Type type() const const
rect
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sun Feb 25 2024 18:41:55 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sun Feb 25 2024 18:41:55 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.