![]() |
Cockatrice 2026-10-19-Development-3.1.2-beta.2
A virtual tabletop for multiplayer card games
|
#include <settings_button_widget.h>
Public Member Functions | |
| SettingsButtonWidget (QWidget *parent=nullptr) | |
| ~SettingsButtonWidget () override | |
| void | addSettingsWidget (QWidget *toAdd) const |
| void | removeSettingsWidget (QWidget *toRemove) const |
| void | setButtonIcon (QPixmap iconMap) |
| void | setButtonText (const QString &buttonText) |
| void | setCompact (bool compact) |
| bool | isCompact () const |
Public Attributes | |
| SettingsPopupWidget * | popup |
Protected Member Functions | |
| void | mousePressEvent (QMouseEvent *event) override |
Private Slots | |
| void | togglePopup () |
| void | onPopupClosed () const |
Private Attributes | |
| QHBoxLayout * | layout |
| QToolButton * | button |
| QString | buttonText |
| bool | compact |
|
explicit |
|
override |
| void SettingsButtonWidget::addSettingsWidget | ( | QWidget * | toAdd | ) | const |
|
inline |
|
overrideprotected |
|
privateslot |
| void SettingsButtonWidget::removeSettingsWidget | ( | QWidget * | toRemove | ) | const |
| void SettingsButtonWidget::setButtonIcon | ( | QPixmap | iconMap | ) |
| void SettingsButtonWidget::setButtonText | ( | const QString & | buttonText | ) |
| void SettingsButtonWidget::setCompact | ( | bool | compact | ) |
|
privateslot |
|
private |
|
private |
|
private |
|
private |
| SettingsPopupWidget* SettingsButtonWidget::popup |