FrameworkIntegration
kstyle.cpp
67 The functions called by widgets that request custom element support, passed to the effective style.
71static inline int customStyleElement(QStyle::StyleHint type, const QString &element, QWidget *widget)
89QStyle::ControlElement KStyle::customControlElement(const QString &element, const QWidget *widget)
91 return (ControlElement)customStyleElement(SH_KCustomStyleElement, element, const_cast<QWidget *>(widget));
96 return (SubElement)customStyleElement(SH_KCustomStyleElement, element, const_cast<QWidget *>(widget));
121 name, containing the typical element prefix ("CE_", etc.) and being supported by the current style
123 query, try to dump out a string and hope for the best, we now manipulate the widgets objectName().
124 Plain Qt dependent widgets can do that themselves and if a widget uses KStyle's convenience access
127 2) The key problem is that a common KDE widget will run into an apps custom style which will then
152static inline int newStyleElement(const QString &element, const char *check, int &counter, QHash<QString, int> *elements)
225QIcon KStyle::standardIcon(StandardPixmap standardIcon, const QStyleOption *option, const QWidget *widget) const
252 return QIcon::fromTheme(QStringLiteral("folder")); // TODO: generate (!?) folder with link emblem
256 return QIcon::fromTheme(QStringLiteral("text-plain")); // TODO: generate (!?) file with link emblem
283 return QIcon::fromTheme(QStringLiteral("dialog-question"), QIcon::fromTheme(QStringLiteral("dialog-information")));
341 const bool rtl = (option && option->direction == Qt::RightToLeft) || (!option && QApplication::isRightToLeft());
343 const QString directionalThemeName = rtl ? QStringLiteral("edit-clear-locationbar-ltr") : QStringLiteral("edit-clear-locationbar-rtl");
369int KStyle::styleHint(StyleHint hint, const QStyleOption *option, const QWidget *widget, QStyleHintReturn *returnData) const
436int KStyle::pixelMetric(PixelMetric metric, const QStyleOption *option, const QWidget *widget) const
ActiveText
NeutralText
NegativeText
PositiveText
static QPalette createApplicationPalette(const KSharedConfigPtr &config)
QBrush foreground(ForegroundRole=NormalText) const
Small
Toolbar
Dialog
int currentSize(KIconLoader::Group group) const
SizeHuge
static KIconLoader * global()
Information
Positive
Warning
static StyleHint customStyleHint(const QString &element, const QWidget *widget)
Runtime element extension This is just convenience and does /not/ require the using widgets style to ...
Definition kstyle.cpp:84
QPalette standardPalette() const override
needed to avoid warnings at compilation time
Definition kstyle.cpp:220
StyleHint newStyleHint(const QString &element)
Runtime element extension, allows inheriting styles to add support custom elements merges supporting ...
Definition kstyle.cpp:166
const QList< QKeySequence > & shortcut(StandardShortcut id)
void click()
const QColor & color() const const
virtual int pixelMetric(PixelMetric m, const QStyleOption *opt, const QWidget *widget) const const override
virtual void polish(QApplication *app) override
virtual int styleHint(StyleHint sh, const QStyleOption *opt, const QWidget *widget, QStyleHintReturn *hret) const const override
bool isRightToLeft()
iterator insert(const Key &key, const T &value)
T value(const Key &key) const const
QIcon fromTheme(const QString &name)
int indexOfClassInfo(const char *name) const const
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
virtual const QMetaObject * metaObject() const const
objectName
QObject * parent() const const
QVariant property(const char *name) const const
T qobject_cast(QObject *object)
void setObjectName(QAnyStringView name)
Window
void setColor(ColorGroup group, ColorRole role, const QColor &color)
void activated()
bool contains(QChar ch, Qt::CaseSensitivity cs) const const
QString toLower() const const
ControlElement
PM_SmallIconSize
SP_DesktopIcon
StyleHint
SubElement
virtual QIcon standardIcon(StandardPixmap standardIcon, const QStyleOption *option, const QWidget *widget) const const=0
virtual int styleHint(StyleHint hint, const QStyleOption *option, const QWidget *widget, QStyleHintReturn *returnData) const const=0
Key_Return
RightToLeft
CTRL
ToolButtonTextBesideIcon
WA_Hover
bool isValid() const const
QWidget * parentWidget() const const
QStyle * style() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:03:00 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:03:00 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.