Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QAndroidStyle::AndroidStateDrawable Class Reference

#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 AndroidDrawablebestAndroidStateMatch (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)
 
const QMarginspadding () const
 
virtual QSize size () const
 

Static Public Member Functions

static int extractState (const QVariantMap &value)
 
- Static Public Member Functions inherited from QAndroidStyle::AndroidDrawable
static AndroidDrawablefromMap (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
 

Detailed Description

Definition at line 182 of file qandroidstyle_p.h.

Constructor & Destructor Documentation

◆ AndroidStateDrawable()

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:

◆ ~AndroidStateDrawable()

QAndroidStyle::AndroidStateDrawable::~AndroidStateDrawable ( )

Definition at line 1135 of file qandroidstyle.cpp.

Member Function Documentation

◆ bestAndroidStateMatch()

const QAndroidStyle::AndroidDrawable * QAndroidStyle::AndroidStateDrawable::bestAndroidStateMatch ( const QStyleOption * opt) const
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:

◆ draw()

void QAndroidStyle::AndroidStateDrawable::draw ( QPainter * painter,
const QStyleOption * opt ) const
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:

◆ extractState()

int QAndroidStyle::AndroidStateDrawable::extractState ( const QVariantMap & value)
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:

◆ setPaddingLeftToSizeWidth()

void QAndroidStyle::AndroidStateDrawable::setPaddingLeftToSizeWidth ( )
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:

◆ sizeImage()

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:

◆ type()

QAndroidStyle::AndroidDrawableType QAndroidStyle::AndroidStateDrawable::type ( ) const
virtual

Implements QAndroidStyle::AndroidDrawable.

Definition at line 1141 of file qandroidstyle.cpp.

References QAndroidStyle::State.


The documentation for this class was generated from the following files: