![]() |
Qt 6.x
The Qt SDK
|
#include <qandroidstyle_p.h>
Inheritance diagram for QAndroidStyle::AndroidStateDrawable:
Collaboration diagram for QAndroidStyle::AndroidStateDrawable:Public Member Functions | |
| AndroidStateDrawable (const QVariantMap &drawable, ItemType itemType) | |
| ~AndroidStateDrawable () | |
| virtual AndroidDrawableType | type () const |
| virtual void | draw (QPainter *painter, const QStyleOption *opt) const |
| const AndroidDrawable * | bestAndroidStateMatch (const QStyleOption *opt) const |
| virtual void | setPaddingLeftToSizeWidth () |
| QSize | sizeImage (const QStyleOption *opt) const |
Public Member Functions inherited from QAndroidStyle::AndroidDrawable | |
| AndroidDrawable (const QVariantMap &drawable, ItemType itemType) | |
| virtual | ~AndroidDrawable () |
| virtual void | initPadding (const QVariantMap &drawable) |
| virtual AndroidDrawableType | type () const =0 |
| virtual void | draw (QPainter *painter, const QStyleOption *opt) const =0 |
| const QMargins & | padding () const |
| virtual QSize | size () const |
| virtual void | setPaddingLeftToSizeWidth () |
Static Public Member Functions | |
| static int | extractState (const QVariantMap &value) |
Static Public Member Functions inherited from QAndroidStyle::AndroidDrawable | |
| static AndroidDrawable * | fromMap (const QVariantMap &drawable, ItemType itemType) |
| static QMargins | extractMargins (const QVariantMap &value) |
Additional Inherited Members | |
Protected Attributes inherited from QAndroidStyle::AndroidDrawable | |
| ItemType | m_itemType |
| QMargins | m_padding |
Definition at line 182 of file qandroidstyle_p.h.
| QAndroidStyle::AndroidStateDrawable::AndroidStateDrawable | ( | const QVariantMap & | drawable, |
| QAndroidStyle::ItemType | itemType | ||
| ) |
Definition at line 1115 of file qandroidstyle.cpp.
References extractState(), QAndroidStyle::AndroidDrawable::fromMap(), item, state, QVariant::toList(), toMap(), and QMap< Key, T >::value().
Here is the call graph for this function:| QAndroidStyle::AndroidStateDrawable::~AndroidStateDrawable | ( | ) |
Definition at line 1135 of file qandroidstyle.cpp.
|
inline |
Definition at line 1161 of file qandroidstyle.cpp.
References cost(), opt, state, QStyleOption::state, QStyle::State_Active, QStyle::State_Enabled, QStyle::State_HasFocus, QStyle::State_Off, QStyle::State_On, QStyle::State_Raised, QStyle::State_Selected, and QStyle::State_Sunken.
Referenced by QAndroidStyle::AndroidSeekBarControl::drawControl().
Here is the call graph for this function:
Here is the caller graph for this function:
|
virtual |
Implements QAndroidStyle::AndroidDrawable.
Definition at line 1146 of file qandroidstyle.cpp.
References QAndroidStyle::AndroidDrawable::draw(), opt, and painter.
Here is the call graph for this function:
|
static |
Definition at line 1210 of file qandroidstyle.cpp.
References QSet< T >::cbegin(), it, state, QStyle::State_Active, QStyle::State_Enabled, QStyle::State_HasFocus, QStyle::State_Off, QStyle::State_On, QStyle::State_Raised, QStyle::State_Selected, and QStyle::State_Sunken.
Referenced by AndroidStateDrawable().
Here is the call graph for this function:
Here is the caller graph for this function:
|
virtual |
Reimplemented from QAndroidStyle::AndroidDrawable.
Definition at line 1260 of file qandroidstyle.cpp.
References QAndroidStyle::AndroidDrawable::setPaddingLeftToSizeWidth().
Here is the call graph for this function:| QSize QAndroidStyle::AndroidStateDrawable::sizeImage | ( | const QStyleOption * | opt | ) | const |
Definition at line 1152 of file qandroidstyle.cpp.
References opt, and QAndroidStyle::AndroidDrawable::size().
Here is the call graph for this function:
|
virtual |
Implements QAndroidStyle::AndroidDrawable.
Definition at line 1141 of file qandroidstyle.cpp.
References QAndroidStyle::State.