一个grid的Color布局
更多...
#include <SAColorGridWidget.h>
|
void | colorClicked (const QColor &c) |
| 对于check模式,check的颜色触发的信号
|
|
void | colorPressed (const QColor &c) |
|
void | colorReleased (const QColor &c) |
|
void | colorToggled (const QColor &c, bool on) |
|
一个grid的Color布局
一个形如下面的颜色grid:
□□□□□□□□□
□□□□□□□□□
□□□□□□□□□
◆ colorButton()
获取index对应的colorbutton
- 参数
-
- 返回
- 如果没有返回nullptr
◆ colorClicked
void SAColorGridWidget::colorClicked |
( |
const QColor & | c | ) |
|
|
signal |
对于check模式,check的颜色触发的信号
- 参数
-
◆ colorCount()
int SAColorGridWidget::colorCount |
( |
| ) |
const |
◆ colorIconSize()
QSize SAColorGridWidget::colorIconSize |
( |
| ) |
const |
◆ currentCheckedColor()
QColor SAColorGridWidget::currentCheckedColor |
( |
| ) |
const |
◆ getColorList()
QList< QColor > SAColorGridWidget::getColorList |
( |
| ) |
const |
◆ horizontalSpacing()
int SAColorGridWidget::horizontalSpacing |
( |
| ) |
const |
等同GridLayout的HorizontalSpacing属性
- 返回
◆ isColorCheckable()
bool SAColorGridWidget::isColorCheckable |
( |
| ) |
const |
◆ setColorCheckable()
void SAColorGridWidget::setColorCheckable |
( |
bool | on = true | ) |
|
设置颜色是否是checkable
checkable的颜色按钮是可checked的
- 参数
-
◆ setColorIconSize()
void SAColorGridWidget::setColorIconSize |
( |
const QSize & | s | ) |
|
◆ setColorList()
void SAColorGridWidget::setColorList |
( |
const QList< QColor > & | cls | ) |
|
◆ setColumnCount()
void SAColorGridWidget::setColumnCount |
( |
int | c | ) |
|
设置列数,行数量会根据列数量来匹配,如果设置-1或者0,说明不限定列数量,这样会只有一行
- 参数
-
◆ setHorizontalSpacing()
void SAColorGridWidget::setHorizontalSpacing |
( |
int | v | ) |
|
等同GridLayout的HorizontalSpacing属性
- 参数
-
◆ setSpacing()
void SAColorGridWidget::setSpacing |
( |
int | v | ) |
|
◆ setVerticalSpacing()
void SAColorGridWidget::setVerticalSpacing |
( |
int | v | ) |
|
等同GridLayout的VerticalSpacing属性
- 参数
-
◆ spacing()
int SAColorGridWidget::spacing |
( |
| ) |
const |
◆ verticalSpacing()
int SAColorGridWidget::verticalSpacing |
( |
| ) |
const |
等同GridLayout的VerticalSpacing属性
- 返回
该类的文档由以下文件生成:
- F:/src/SARibbon/src/SARibbonBar/colorWidgets/SAColorGridWidget.h
- F:/src/SARibbon/src/SARibbonBar/colorWidgets/SAColorGridWidget.cpp