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::AndroidProgressBarControl Class Reference

#include <qandroidstyle_p.h>

+ Inheritance diagram for QAndroidStyle::AndroidProgressBarControl:
+ Collaboration diagram for QAndroidStyle::AndroidProgressBarControl:

Public Member Functions

 AndroidProgressBarControl (const QVariantMap &control, ItemType itemType)
 
virtual ~AndroidProgressBarControl ()
 
virtual void drawControl (const QStyleOption *option, QPainter *p, const QWidget *w)
 
virtual QRect subElementRect (SubElement subElement, const QStyleOption *option, const QWidget *widget=nullptr) const
 
QSize sizeFromContents (const QStyleOption *opt, const QSize &contentsSize, const QWidget *w) const
 
- Public Member Functions inherited from QAndroidStyle::AndroidControl
 AndroidControl (const QVariantMap &control, ItemType itemType)
 
virtual ~AndroidControl ()
 
virtual QRect subControlRect (const QStyleOptionComplex *option, SubControl sc, const QWidget *widget=nullptr) const
 
virtual QMargins padding ()
 
virtual QSize size (const QStyleOption *option)
 

Protected Attributes

AndroidDrawablem_progressDrawable
 
AndroidDrawablem_indeterminateDrawable
 
int m_secondaryProgress_id
 
int m_progressId
 
- Protected Attributes inherited from QAndroidStyle::AndroidControl
const AndroidDrawablem_background
 
QSize m_minSize
 
QSize m_maxSize
 

Additional Inherited Members

- Protected Member Functions inherited from QAndroidStyle::AndroidControl
virtual const AndroidDrawablebackgroundDrawable () const
 

Detailed Description

Definition at line 253 of file qandroidstyle_p.h.

Constructor & Destructor Documentation

◆ AndroidProgressBarControl()

QAndroidStyle::AndroidProgressBarControl::AndroidProgressBarControl ( const QVariantMap & control,
ItemType itemType )

Definition at line 1534 of file qandroidstyle.cpp.

References QMap< Key, T >::end(), QMap< Key, T >::find(), QAndroidStyle::AndroidDrawable::fromMap(), it, m_indeterminateDrawable, QAndroidStyle::AndroidControl::m_maxSize, QAndroidStyle::AndroidControl::m_minSize, m_progressDrawable, m_progressId, m_secondaryProgress_id, QSize::setHeight(), and QSize::setWidth().

+ Here is the call graph for this function:

◆ ~AndroidProgressBarControl()

QAndroidStyle::AndroidProgressBarControl::~AndroidProgressBarControl ( )
virtual

Definition at line 1575 of file qandroidstyle.cpp.

Member Function Documentation

◆ drawControl()

void QAndroidStyle::AndroidProgressBarControl::drawControl ( const QStyleOption * option,
QPainter * p,
const QWidget * w )
virtual

Reimplemented from QAndroidStyle::AndroidControl.

Reimplemented in QAndroidStyle::AndroidSeekBarControl.

Definition at line 1581 of file qandroidstyle.cpp.

References QAndroidStyle::Clip, QAndroidStyle::AndroidLayerDrawable::draw(), Qt::Horizontal, QAndroidStyle::Layer, QAndroidStyle::AndroidClipDrawable::setFactor(), QStyle::State_Horizontal, and Qt::Vertical.

+ Here is the call graph for this function:

◆ sizeFromContents()

QSize QAndroidStyle::AndroidProgressBarControl::sizeFromContents ( const QStyleOption * opt,
const QSize & contentsSize,
const QWidget * w ) const
virtual

Reimplemented from QAndroidStyle::AndroidControl.

Reimplemented in QAndroidStyle::AndroidSeekBarControl.

Definition at line 1636 of file qandroidstyle.cpp.

References QSize::height(), opt, QSize::setHeight(), QSize::setWidth(), QStyle::State_Horizontal, and QSize::width().

Referenced by QAndroidStyle::AndroidSeekBarControl::sizeFromContents().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ subElementRect()

QRect QAndroidStyle::AndroidProgressBarControl::subElementRect ( SubElement subElement,
const QStyleOption * option,
const QWidget * widget = nullptr ) const
virtual

Reimplemented from QAndroidStyle::AndroidControl.

Definition at line 1600 of file qandroidstyle.cpp.

References QRect::adjusted(), QMargins::bottom(), QMargins::left(), QMargins::right(), QStyle::State_Horizontal, QAndroidStyle::AndroidControl::subElementRect(), QMargins::top(), visualRect(), and widget.

+ Here is the call graph for this function:

Member Data Documentation

◆ m_indeterminateDrawable

AndroidDrawable* QAndroidStyle::AndroidProgressBarControl::m_indeterminateDrawable
protected

Definition at line 268 of file qandroidstyle_p.h.

Referenced by AndroidProgressBarControl().

◆ m_progressDrawable

AndroidDrawable* QAndroidStyle::AndroidProgressBarControl::m_progressDrawable
protected

Definition at line 267 of file qandroidstyle_p.h.

Referenced by AndroidProgressBarControl().

◆ m_progressId

int QAndroidStyle::AndroidProgressBarControl::m_progressId
protected

Definition at line 270 of file qandroidstyle_p.h.

Referenced by AndroidProgressBarControl().

◆ m_secondaryProgress_id

int QAndroidStyle::AndroidProgressBarControl::m_secondaryProgress_id
protected

Definition at line 269 of file qandroidstyle_p.h.

Referenced by AndroidProgressBarControl().


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