Cockatrice 2026-06-01-Development-3.1.0-beta.3
A virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
ColorButton Class Reference

#include <color_button.h>

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

Signals

void colorChanged (const QColor &color)

Public Member Functions

 ColorButton (QWidget *parent=nullptr)
QColor getColor () const
void setColor (const QColor &c)

Private Slots

void pickColor ()

Private Member Functions

void updateSwatch ()

Private Attributes

QColor color

Constructor & Destructor Documentation

◆ ColorButton()

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

Member Function Documentation

◆ colorChanged

void ColorButton::colorChanged ( const QColor & color)
signal
Here is the caller graph for this function:

◆ getColor()

QColor ColorButton::getColor ( ) const
inline

◆ pickColor

void ColorButton::pickColor ( )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setColor()

void ColorButton::setColor ( const QColor & c)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ updateSwatch()

void ColorButton::updateSwatch ( )
private
Here is the caller graph for this function:

Member Data Documentation

◆ color

QColor ColorButton::color
private

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