#include <qxribbon/ribboncolorbutton_p.h>
|
| | RibbonColorButtonPrivate () |
| |
| QPixmap | createIconPixmap (const QStyleOptionToolButton &opt, const QSize &iconsize) override |
| |
| | RibbonButtonPrivate () |
| |
| virtual | ~RibbonButtonPrivate () |
| |
| QStyle * | style () const |
| |
| void | recalcSizeHint (QStyleOptionToolButton &opt, QSize s) |
| | 重新计算sizehint,sizehint函数在第一次计算完成后会记录结果,如果文字字体或者内容不变是不需要进行重复计算
|
| |
| void | calcIconAndTextRect (const QStyleOptionToolButton &opt) |
| | 根据设定计算图标和文本的绘制区域
|
| |
| QRect | adjustedTextRect (const QStyleOptionToolButton &opt, const QWidget *w) |
| | 根据设定计算文本显示区域
|
| |
| QRect | calcIndicatorArrowDownRect (const QStyleOptionToolButton &opt) |
| | sub control 的下拉箭头的位置
|
| |
| void | updateButtonState (const QPoint &pos) |
| |
| void | drawButton (QStyleOptionToolButton &opt, QPainter &p, const QWidget *w) |
| |
| void | drawIconAndLabel (QStyleOptionToolButton &opt, QPainter &p, const QWidget *w) |
| | RibbonButton::drawIconAndLabel
|
| |
| void | drawArrow (const QStyle *style, const QStyleOptionToolButton *toolbutton, const QRect &rect, QPainter *painter, const QWidget *widget=Q_NULLPTR) |
| |
◆ RibbonColorButtonPrivate()
| QxRibbon::RibbonColorButtonPrivate::RibbonColorButtonPrivate |
( |
| ) |
|
◆ createIconPixmap()
| QPixmap QxRibbon::RibbonColorButtonPrivate::createIconPixmap |
( |
const QStyleOptionToolButton & |
opt, |
|
|
const QSize & |
iconsize |
|
) |
| |
|
overridevirtual |
◆ m_color
| QColor QxRibbon::RibbonColorButtonPrivate::m_color |
该类的文档由以下文件生成: