Cockatrice 2025-11-30-Development-2.11.0-beta.38
A cross-platform virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
SettingsButtonWidget Class Reference

#include <settings_button_widget.h>

Inheritance diagram for SettingsButtonWidget:
[legend]
Collaboration diagram for SettingsButtonWidget:
[legend]

Public Member Functions

 SettingsButtonWidget (QWidget *parent=nullptr)
void addSettingsWidget (QWidget *toAdd) const
void removeSettingsWidget (QWidget *toRemove) const
void setButtonIcon (QPixmap iconMap)

Public Attributes

SettingsPopupWidgetpopup

Protected Member Functions

void mousePressEvent (QMouseEvent *event) override

Private Slots

void togglePopup ()
void onPopupClosed () const

Private Attributes

QHBoxLayout * layout
QToolButton * button

Constructor & Destructor Documentation

◆ SettingsButtonWidget()

SettingsButtonWidget::SettingsButtonWidget ( QWidget * parent = nullptr)
explicit
Here is the call graph for this function:
Here is the caller graph for this function:

Member Function Documentation

◆ addSettingsWidget()

void SettingsButtonWidget::addSettingsWidget ( QWidget * toAdd) const
Here is the caller graph for this function:

◆ mousePressEvent()

void SettingsButtonWidget::mousePressEvent ( QMouseEvent * event)
overrideprotected

◆ onPopupClosed

void SettingsButtonWidget::onPopupClosed ( ) const
privateslot
Here is the caller graph for this function:

◆ removeSettingsWidget()

void SettingsButtonWidget::removeSettingsWidget ( QWidget * toRemove) const

◆ setButtonIcon()

void SettingsButtonWidget::setButtonIcon ( QPixmap iconMap)

◆ togglePopup

void SettingsButtonWidget::togglePopup ( )
privateslot
Here is the caller graph for this function:

Member Data Documentation

◆ button

QToolButton* SettingsButtonWidget::button
private

◆ layout

QHBoxLayout* SettingsButtonWidget::layout
private

◆ popup

SettingsPopupWidget* SettingsButtonWidget::popup

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