![]() |
SARibbon 2.5.2
SARibbon wiki
|
#include <SAColorMenu.h>
类 | |
| class | PrivateData |
Public 槽 | |
| void | emitSelectedColor (const QColor &c) |
| Helper slot function to emit selectedColor signal and hide menu | |
信号 | |
| void | selectedColor (const QColor &c) |
Public 成员函数 | |
| SAColorMenu (QWidget *parent=nullptr) | |
| Constructor for SAColorMenu | |
| SAColorMenu (const QString &title, QWidget *parent=nullptr) | |
| Constructor for SAColorMenu with title | |
| ~SAColorMenu () | |
| Destructor for SAColorMenu | |
| void | bindToColorToolButton (SAColorToolButton *btn) |
| Quick bind to color button | |
| QWidgetAction * | themeColorsPaletteAction () const |
| Get theme colors palette action | |
| QWidgetAction * | getCustomColorsWidgetAction () const |
| Get custom colors widget action | |
| QAction * | customColorAction () const |
| Get custom color action | |
| SAColorPaletteGridWidget * | colorPaletteGridWidget () const |
| Get theme colors palette widget | |
| SAColorGridWidget * | customColorsWidget () const |
| Get custom colors widget | |
| void | enableNoneColorAction (bool on=true) |
| Enable none color action, disabled by default | |
| QAction * | noneColorAction () const |
| Get none color action, returns nullptr until enableNoneColorAction(true) is called | |
|
explicit |
Constructor for SAColorMenu
|
explicit |
Constructor for SAColorMenu with title
| SAColorMenu::~SAColorMenu | ( | ) |
Destructor for SAColorMenu
| void SAColorMenu::bindToColorToolButton | ( | SAColorToolButton * | btn | ) |
Quick bind to color button
| SAColorPaletteGridWidget * SAColorMenu::colorPaletteGridWidget | ( | ) | const |
Get theme colors palette widget
| QAction * SAColorMenu::customColorAction | ( | ) | const |
Get custom color action
| SAColorGridWidget * SAColorMenu::customColorsWidget | ( | ) | const |
Get custom colors widget
|
slot |
Helper slot function to emit selectedColor signal and hide menu
| void SAColorMenu::enableNoneColorAction | ( | bool | on = true | ) |
Enable none color action, disabled by default
| QWidgetAction * SAColorMenu::getCustomColorsWidgetAction | ( | ) | const |
Get custom colors widget action
| QAction * SAColorMenu::noneColorAction | ( | ) | const |
Get none color action, returns nullptr until enableNoneColorAction(true) is called
|
signal |
| QWidgetAction * SAColorMenu::themeColorsPaletteAction | ( | ) | const |
Get theme colors palette action