KWidgetsAddons
kstyleextensions.h
17 * This is just convenience and does /not/ require the using widgets style to inherit KStyle (i.e.
30 * 1) If your string lacks the matching "SH_", "CE_" or "SE_" token the element request will be ignored (return is 0)
31 * 2) Try to avoid custom elements and use default ones (if possible) to get better style support and keep UI coherency
32 * 3) If you cache this value (good idea, this requires a map lookup) do not forget to catch style changes in QWidget::changeEvent()!
41 * @param widget the widget to paint this element for. This parameter is mandatory, nullptr will return 0!
44KWIDGETSADDONS_EXPORT QStyle::ControlElement customControlElement(const QString &element, const QWidget *widget);
50 * @param widget the widget to paint this element for. This parameter is mandatory, nullptr will return 0!
53KWIDGETSADDONS_EXPORT QStyle::StyleHint customStyleHint(const QString &element, const QWidget *widget);
59 * @param widget the widget to paint this element for. This parameter is mandatory, nullptr will return 0!
62KWIDGETSADDONS_EXPORT QStyle::SubElement customSubElement(const QString &element, const QWidget *widget);
Runtime style extensions You can use this to have a supporting QStyle implementation paint your widge...
Definition kstyleextensions.cpp:13
QStyle::ControlElement customControlElement(const QString &element, const QWidget *widget)
Resolve a dynamic QStyle::ControlElement for eg.
Definition kstyleextensions.cpp:80
QStyle::SubElement customSubElement(const QString &element, const QWidget *widget)
Resolve a dynamic QStyle::SubElement for eg.
Definition kstyleextensions.cpp:85
QStyle::StyleHint customStyleHint(const QString &element, const QWidget *widget)
Resolve a dynamic QStyle::StyleHint to query QStyle::styleHint()
Definition kstyleextensions.cpp:75
ControlElement
StyleHint
SubElement
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 8 2024 12:06:24 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 8 2024 12:06:24 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.