SARibbon 2.5.2
SARibbon wiki
载入中...
搜索中...
未找到
SAColorMenu类 参考

#include <SAColorMenu.h>

类 SAColorMenu 继承关系图:

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
 
SAColorPaletteGridWidgetcolorPaletteGridWidget () const
 Get theme colors palette widget
 
SAColorGridWidgetcustomColorsWidget () 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
 

详细描述

构造及析构函数说明

◆ SAColorMenu() [1/2]

SAColorMenu::SAColorMenu ( QWidget *  parent = nullptr)
explicit

Constructor for SAColorMenu

◆ SAColorMenu() [2/2]

SAColorMenu::SAColorMenu ( const QString &  title,
QWidget *  parent = nullptr 
)
explicit

Constructor for SAColorMenu with title

◆ ~SAColorMenu()

SAColorMenu::~SAColorMenu ( )

Destructor for SAColorMenu

成员函数说明

◆ bindToColorToolButton()

void SAColorMenu::bindToColorToolButton ( SAColorToolButton btn)

Quick bind to color button

◆ colorPaletteGridWidget()

SAColorPaletteGridWidget * SAColorMenu::colorPaletteGridWidget ( ) const

Get theme colors palette widget

◆ customColorAction()

QAction * SAColorMenu::customColorAction ( ) const

Get custom color action

◆ customColorsWidget()

SAColorGridWidget * SAColorMenu::customColorsWidget ( ) const

Get custom colors widget

◆ emitSelectedColor

void SAColorMenu::emitSelectedColor ( const QColor &  c)
slot

Helper slot function to emit selectedColor signal and hide menu

◆ enableNoneColorAction()

void SAColorMenu::enableNoneColorAction ( bool  on = true)

Enable none color action, disabled by default

◆ getCustomColorsWidgetAction()

QWidgetAction * SAColorMenu::getCustomColorsWidgetAction ( ) const

Get custom colors widget action

◆ noneColorAction()

QAction * SAColorMenu::noneColorAction ( ) const

Get none color action, returns nullptr until enableNoneColorAction(true) is called

◆ selectedColor

void SAColorMenu::selectedColor ( const QColor &  c)
signal

◆ themeColorsPaletteAction()

QWidgetAction * SAColorMenu::themeColorsPaletteAction ( ) const

Get theme colors palette action


该类的文档由以下文件生成: