MenuHelper Class Referenceabstract

Signals

void clicked ()
 

Public Member Functions

 MenuHelper ()
 
 MenuHelper (QWidget *parent)
 
void setBackgroundColorRole (QPalette::ColorRole role)
 
void setActiveBackgroundColorRole (QPalette::ColorRole role)
 
void setPressedBackgroundColorRole (QPalette::ColorRole role)
 
void setForegroundColorRole (QPalette::ColorRole role)
 
void setActiveForegroundColorRole (QPalette::ColorRole role)
 
void setPressedForegroundColorRole (QPalette::ColorRole role)
 

Protected Slots

virtual void showMenu ()=0
 

Protected Member Functions

void enterEvent (QEnterEvent *event) override
 
void leaveEvent (QEvent *event) override
 
void mousePressEvent (QMouseEvent *event) override
 
void mouseReleaseEvent (QMouseEvent *event) override
 
void updateColors ()
 

Protected Attributes

Menu m_menu
 
ContextMenuManagerm_contextMenuManager
 
QTimer * m_timer
 
bool m_active
 
bool m_pressed
 

Constructor & Destructor Documentation

◆ MenuHelper() [1/2]

MenuHelper::MenuHelper ( )
inline

◆ MenuHelper() [2/2]

MenuHelper::MenuHelper ( QWidget *  parent)
explicit

Member Function Documentation

◆ clicked

void MenuHelper::clicked ( )
signal

◆ enterEvent()

void MenuHelper::enterEvent ( QEnterEvent *  event)
overrideprotected

◆ leaveEvent()

void MenuHelper::leaveEvent ( QEvent *  event)
overrideprotected

◆ mousePressEvent()

void MenuHelper::mousePressEvent ( QMouseEvent *  event)
overrideprotected

◆ mouseReleaseEvent()

void MenuHelper::mouseReleaseEvent ( QMouseEvent *  event)
overrideprotected

◆ setActiveBackgroundColorRole()

void MenuHelper::setActiveBackgroundColorRole ( QPalette::ColorRole  role)

◆ setActiveForegroundColorRole()

void MenuHelper::setActiveForegroundColorRole ( QPalette::ColorRole  role)

◆ setBackgroundColorRole()

void MenuHelper::setBackgroundColorRole ( QPalette::ColorRole  role)

◆ setForegroundColorRole()

void MenuHelper::setForegroundColorRole ( QPalette::ColorRole  role)

◆ setPressedBackgroundColorRole()

void MenuHelper::setPressedBackgroundColorRole ( QPalette::ColorRole  role)

◆ setPressedForegroundColorRole()

void MenuHelper::setPressedForegroundColorRole ( QPalette::ColorRole  role)

◆ showMenu

virtual void MenuHelper::showMenu ( )
protectedpure virtualslot

◆ updateColors()

void MenuHelper::updateColors ( )
protected

Member Data Documentation

◆ m_active

bool MenuHelper::m_active
protected

◆ m_contextMenuManager

ContextMenuManager* MenuHelper::m_contextMenuManager
protected

◆ m_menu

Menu MenuHelper::m_menu
protected

◆ m_pressed

bool MenuHelper::m_pressed
protected

◆ m_timer

QTimer* MenuHelper::m_timer
protected

The documentation for this class was generated from the following file: