|
QtCanpool 3.3.0
|
#include <qxribbon/ribboncolorbutton.h>

Public 成员函数 | |
| RibbonColorButton (QWidget *parent=nullptr) | |
| RibbonColorButton (QAction *defaultAction, QWidget *parent=nullptr) | |
| virtual | ~RibbonColorButton () |
| const QColor & | color () const |
| void | colorChanged (const QColor &color) |
| void | colorClicked (const QColor &color, bool checked=false) |
| void | setColor (const QColor &color) |
| void | onButtonClicked (bool checked=false) |
Public 成员函数 继承自 QxRibbon::RibbonButton | |
| RibbonButton (QWidget *parent=Q_NULLPTR) | |
| RibbonButton (QAction *defaultAction, QWidget *parent=Q_NULLPTR) | |
| virtual | ~RibbonButton () |
| RibbonButtonType | buttonType () const |
| void | setButtonType (RibbonButtonType type) |
| 设置按钮样式 | |
| void | setLargeButtonType (LargeButtonType type) |
| LargeButtonType | largeButtonType () const |
| virtual QSize | minimumSizeHint () const override |
| virtual QSize | sizeHint () const override |
| toolbutton 的尺寸确定是先定下字体的尺寸,再定下icon的尺寸,自底向上,保证字体能显示两行 | |
额外继承的成员函数 | |
Public 类型 继承自 QxRibbon::RibbonButton | |
| enum | RibbonButtonType { LargeButton , SmallButton } |
| enum | LargeButtonType { Normal , Lite } |
静态 Public 成员函数 继承自 QxRibbon::RibbonButton | |
| static void | setToolButtonTextShift (bool on) |
| 设置按钮点击时文字会闪烁一下 | |
| static bool | isToolButtonTextShift () |
Protected 成员函数 继承自 QxRibbon::RibbonButton | |
| virtual bool | event (QEvent *e) override |
| virtual void | changeEvent (QEvent *e) override |
| virtual void | paintEvent (QPaintEvent *event) override |
| virtual void | resizeEvent (QResizeEvent *e) override |
| 在 resizeevent 计算绘图所需的尺寸,避免在绘图过程中实时绘制提高效率 | |
| virtual void | mouseMoveEvent (QMouseEvent *e) override |
| virtual void | mousePressEvent (QMouseEvent *e) override |
| virtual void | mouseReleaseEvent (QMouseEvent *e) override |
| virtual void | focusOutEvent (QFocusEvent *e) override |
| virtual void | leaveEvent (QEvent *e) override |
| virtual bool | hitButton (const QPoint &pos) const override |
| virtual void | actionEvent (QActionEvent *e) override |
| RibbonButton (RibbonButtonPrivate *d, QWidget *parent=Q_NULLPTR) | |
在文件 ribboncolorbutton.h 第 14 行定义.
|
explicit |
在文件 ribboncolorbutton.cpp 第 69 行定义.
|
explicit |
在文件 ribboncolorbutton.cpp 第 78 行定义.
|
virtual |
在文件 ribboncolorbutton.cpp 第 84 行定义.
| const QColor & QxRibbon::RibbonColorButton::color | ( | ) | const |
在文件 ribboncolorbutton.cpp 第 88 行定义.
| void QxRibbon::RibbonColorButton::colorChanged | ( | const QColor & | color | ) |
| void QxRibbon::RibbonColorButton::colorClicked | ( | const QColor & | color, |
| bool | checked = false |
||
| ) |
| void QxRibbon::RibbonColorButton::onButtonClicked | ( | bool | checked = false | ) |
在文件 ribboncolorbutton.cpp 第 105 行定义.
| void QxRibbon::RibbonColorButton::setColor | ( | const QColor & | color | ) |
在文件 ribboncolorbutton.cpp 第 94 行定义.