![]() |
Qt 6.x
The Qt SDK
|
#include <qandroidstyle_p.h>
Classes | |
struct | Android9PatchChunk |
class | Android9PatchDrawable |
class | AndroidClipDrawable |
class | AndroidColorDrawable |
class | AndroidCompoundButtonControl |
class | AndroidControl |
class | AndroidDrawable |
class | AndroidGradientDrawable |
class | AndroidImageDrawable |
struct | AndroidItemStateInfo |
class | AndroidLayerDrawable |
class | AndroidProgressBarControl |
class | AndroidSeekBarControl |
class | AndroidSpinnerControl |
class | AndroidStateDrawable |
Public Types | |
enum | ItemType { QC_UnknownType = -1 , QC_View , QC_GroupBox , QC_Button , QC_Checkbox , QC_RadioButton , QC_Slider , QC_Switch , QC_EditText , QC_Combobox , QC_BusyIndicator , QC_ProgressBar , QC_Tab , QC_TabButton , QC_RatingIndicator , QC_SearchBox , QC_CustomControl =0xf00 , QC_ControlMask =0xfff } |
enum | AndroidDrawableType { Color , Image , Clip , NinePatch , Gradient , State , Layer } |
typedef QList< AndroidItemStateInfo * > | AndroidItemStateInfoList |
Definition at line 27 of file qandroidstyle_p.h.
Definition at line 297 of file qandroidstyle_p.h.
Enumerator | |
---|---|
Color | |
Image | |
Clip | |
NinePatch | |
Gradient | |
State | |
Layer |
Definition at line 72 of file qandroidstyle_p.h.
Definition at line 32 of file qandroidstyle_p.h.
QAndroidStyle::QAndroidStyle | ( | ) |
Definition at line 29 of file qandroidstyle.cpp.
References QPixmapCache::clear(), QHash< Key, T >::clear(), QHash< Key, T >::constBegin(), QHash< Key, T >::constEnd(), it, item, QPlatformNativeInterface::nativeResourceForIntegration(), QGuiApplication::platformNativeInterface(), Q_UNLIKELY, QC_Checkbox, QC_Combobox, QC_ProgressBar, QC_RadioButton, QC_Slider, QC_UnknownType, qWarning, QApplication::setFont(), and standardPalette().
QAndroidStyle::~QAndroidStyle | ( | ) |
Definition at line 99 of file qandroidstyle.cpp.
References qDeleteAll().
|
virtual |
Definition at line 363 of file qandroidstyle.cpp.
References QRect::adjust(), Qt::AlignHCenter, alignment, QHash< int, AndroidControl * >::const_iterator, QAndroidStyle::AndroidCompoundButtonControl::drawControl(), drawPrimitive(), QHash< Key, T >::end(), QHash< Key, T >::find(), frame, groupBox, QColor::isValid(), it, Qt::LeftToRight, QFrame::lineWidth, QFrame::midLineWidth, QPalette::NoRole, opt, QWidget::palette, QC_UnknownType, QWidget::rect, QStyleOption::rect, QStyle::SC_GroupBoxCheckBox, QStyle::SC_GroupBoxFrame, QStyle::SC_GroupBoxLabel, QStyle::SH_UnderlineShortcut, styleHint(), subControlRect(), Qt::TextHideMnemonic, textRect, Qt::TextShowMnemonic, QRect::united(), widget, and QPalette::WindowText.
|
virtual |
Definition at line 287 of file qandroidstyle.cpp.
References QMargins::bottom(), btn, QStyle::CE_CheckBoxLabel, QStyle::CE_ProgressBarGroove, QStyle::CE_ProgressBarLabel, QStyle::CE_PushButtonBevel, QStyle::CE_PushButtonLabel, QStyle::CE_RadioButtonLabel, QStyle::CE_TabBarTabLabel, QStyle::CE_TabBarTabShape, QHash< int, AndroidControl * >::const_iterator, copy(), QAndroidStyle::AndroidControl::drawControl(), QHash< Key, T >::end(), QHash< Key, T >::find(), it, QMargins::left(), opt, QAndroidStyle::AndroidControl::padding(), QC_Button, QC_Checkbox, QC_Combobox, QC_RadioButton, QC_UnknownType, QStyleOption::rect, QMargins::right(), subElementRect(), subopt, and QMargins::top().
|
virtual |
Definition at line 250 of file qandroidstyle.cpp.
References QHash< int, AndroidControl * >::const_iterator, copy(), QHash< Key, T >::end(), QHash< Key, T >::find(), QStyleOptionFrame::Flat, frame, QRect::height(), it, QFrame::lineWidth, QFrame::midLineWidth, opt, p1, p2, QWidget::palette, QC_EditText, QC_UnknownType, qDrawShadeLine(), qDrawShadeRect(), QWidget::rect, QRect::width(), QRect::x(), and QRect::y().
Referenced by drawComplexControl().
|
virtual |
Definition at line 625 of file qandroidstyle.cpp.
|
virtual |
Definition at line 442 of file qandroidstyle.cpp.
References QHash< int, AndroidControl * >::const_iterator, QHash< Key, T >::end(), QHash< Key, T >::find(), it, opt, QC_UnknownType, and widget.
|
virtual |
Definition at line 533 of file qandroidstyle.cpp.
References QSize::height(), QAndroidStyle::AndroidCompoundButtonControl::size(), widget, and QSize::width().
Referenced by sizeFromContents(), and subControlRect().
Definition at line 657 of file qandroidstyle.cpp.
References QWidget::setAttribute(), Qt::WA_StyledBackground, and widget.
|
virtual |
Definition at line 554 of file qandroidstyle.cpp.
References QFontMetrics::boundingRect(), QHash< int, AndroidControl * >::const_iterator, QHash< Key, T >::end(), QHash< Key, T >::find(), QApplication::font(), QStyleOption::fontMetrics, groupBox, QRect::height(), QSize::height(), Qt::Horizontal, iconSize, it, QRect::moveLeft(), QStyleOptionHeader::None, opt, pixelMetric(), QStyle::PM_HeaderMargin, qApp, QC_UnknownType, qMax(), QSize::rheight(), QSize::rwidth(), QStyle::SC_GroupBoxCheckBox, QRect::setHeight(), QSize::setHeight(), QRect::setSize(), QRect::setWidth(), QSize::setWidth(), QRect::size(), QAndroidStyle::AndroidCompoundButtonControl::size(), QFontMetrics::size(), textRect, QRect::translate(), txt, QRect::united(), and QSize::width().
|
virtual |
Definition at line 652 of file qandroidstyle.cpp.
Referenced by QAndroidStyle().
|
virtual |
Definition at line 618 of file qandroidstyle.cpp.
References opt, standardPixmap(), and widget.
Referenced by standardPixmap().
int QAndroidStyle::styleHint | ( | StyleHint | hint, |
const QStyleOption * | option = nullptr , |
||
const QWidget * | widget = nullptr , |
||
QStyleHintReturn * | returnData = nullptr |
||
) | const |
Definition at line 632 of file qandroidstyle.cpp.
References hint(), Qt::LeftButton, and widget.
Referenced by drawComplexControl().
|
virtual |
Definition at line 472 of file qandroidstyle.cpp.
References QRect::adjust(), QRect::adjusted(), QFontMetrics::boundingRect(), QHash< int, AndroidControl * >::const_iterator, QStyleOption::direction, QHash< Key, T >::end(), QHash< Key, T >::find(), QStyleOption::fontMetrics, groupBox, QFontMetrics::height(), QRect::height(), QSize::height(), it, QRect::moveLeft(), opt, pixelMetric(), QC_UnknownType, qMax(), rect, QStyleOption::rect, QStyle::SC_GroupBoxCheckBox, QRect::setHeight(), QRect::setSize(), QRect::setWidth(), QRect::size(), QAndroidStyle::AndroidCompoundButtonControl::size(), textRect, QRect::translate(), visualRect(), widget, and QSize::width().
Referenced by drawComplexControl(), and QAndroidStyle::AndroidSpinnerControl::subControlRect().
|
virtual |
Definition at line 350 of file qandroidstyle.cpp.
References QHash< int, AndroidControl * >::const_iterator, QHash< Key, T >::end(), QHash< Key, T >::find(), it, QC_UnknownType, and widget.
Referenced by drawControl(), and QAndroidStyle::AndroidControl::subControlRect().
Definition at line 662 of file qandroidstyle.cpp.
References QWidget::setAttribute(), Qt::WA_StyledBackground, and widget.