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

#include <qandroidstyle_p.h>

+ Inheritance diagram for QAndroidStyle::AndroidControl:
+ Collaboration diagram for QAndroidStyle::AndroidControl:

Public Member Functions

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

Protected Member Functions

virtual const AndroidDrawablebackgroundDrawable () const
 

Protected Attributes

const AndroidDrawablem_background
 
QSize m_minSize
 
QSize m_maxSize
 

Detailed Description

Definition at line 216 of file qandroidstyle_p.h.

Constructor & Destructor Documentation

◆ AndroidControl()

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

Definition at line 1337 of file qandroidstyle.cpp.

References QMap< Key, T >::end(), QMap< Key, T >::find(), QAndroidStyle::AndroidDrawable::fromMap(), and it.

+ Here is the call graph for this function:

◆ ~AndroidControl()

QAndroidStyle::AndroidControl::~AndroidControl ( )
virtual

Definition at line 1363 of file qandroidstyle.cpp.

Member Function Documentation

◆ backgroundDrawable()

const QAndroidStyle::AndroidDrawable * QAndroidStyle::AndroidControl::backgroundDrawable ( ) const
protectedvirtual

Reimplemented in QAndroidStyle::AndroidCompoundButtonControl.

Definition at line 1480 of file qandroidstyle.cpp.

◆ drawControl()

void QAndroidStyle::AndroidControl::drawControl ( const QStyleOption * opt,
QPainter * p,
const QWidget * w )
virtual

Reimplemented in QAndroidStyle::AndroidCompoundButtonControl, QAndroidStyle::AndroidProgressBarControl, and QAndroidStyle::AndroidSeekBarControl.

Definition at line 1368 of file qandroidstyle.cpp.

References QRect::adjusted(), Qt::black, QBrush::color(), frame, QColor::getHsv(), QColor::isValid(), QFrame::lineWidth, opt, QWidget::palette, QStyleOption::palette, qDrawPlainRect(), qDrawShadePanel(), QWidget::rect, QStyleOption::rect, Qt::white, QPalette::window(), and QPalette::windowText().

Referenced by QAndroidStyle::AndroidCompoundButtonControl::drawControl().

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

◆ padding()

QMargins QAndroidStyle::AndroidControl::padding ( )
virtual

Reimplemented in QAndroidStyle::AndroidCompoundButtonControl.

Definition at line 1460 of file qandroidstyle.cpp.

References QAndroidStyle::AndroidDrawable::padding().

Referenced by QAndroidStyle::AndroidCompoundButtonControl::padding().

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

◆ size()

QSize QAndroidStyle::AndroidControl::size ( const QStyleOption * option)
virtual

Reimplemented in QAndroidStyle::AndroidCompoundButtonControl.

Definition at line 1470 of file qandroidstyle.cpp.

References QAndroidStyle::AndroidDrawable::size().

Referenced by QAndroidStyle::AndroidCompoundButtonControl::size().

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

◆ sizeFromContents()

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

Reimplemented in QAndroidStyle::AndroidProgressBarControl, and QAndroidStyle::AndroidSeekBarControl.

Definition at line 1435 of file qandroidstyle.cpp.

References QMargins::bottom(), QStyleOption::fontMetrics, QFontMetrics::height(), QSize::height(), QSize::isEmpty(), QMargins::left(), opt, QMargins::right(), QSize::setHeight(), QSize::setWidth(), QMargins::top(), and QSize::width().

+ Here is the call graph for this function:

◆ subControlRect()

QRect QAndroidStyle::AndroidControl::subControlRect ( const QStyleOptionComplex * option,
SubControl sc,
const QWidget * widget = nullptr ) const
virtual

Reimplemented in QAndroidStyle::AndroidSeekBarControl, and QAndroidStyle::AndroidSpinnerControl.

Definition at line 1428 of file qandroidstyle.cpp.

References QStyle::SE_CustomBase, QAndroidStyle::subElementRect(), and widget.

Referenced by QAndroidStyle::AndroidSpinnerControl::subControlRect().

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

◆ subElementRect()

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

Reimplemented in QAndroidStyle::AndroidProgressBarControl.

Definition at line 1404 of file qandroidstyle.cpp.

References QRect::adjusted(), QMargins::bottom(), QMargins::left(), QMargins::right(), QMargins::top(), and visualRect().

Referenced by QAndroidStyle::AndroidProgressBarControl::subElementRect().

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

Member Data Documentation

◆ m_background

const AndroidDrawable* QAndroidStyle::AndroidControl::m_background
protected

Definition at line 235 of file qandroidstyle_p.h.

◆ m_maxSize

QSize QAndroidStyle::AndroidControl::m_maxSize
protected

◆ m_minSize

QSize QAndroidStyle::AndroidControl::m_minSize
protected

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