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

#include <home_styled_button.h>

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

Public Slots

void paintEvent (QPaintEvent *event) override

Public Member Functions

 HomeStyledButton (const QString &text, QPair< QColor, QColor > gradientColors, QWidget *parent=nullptr)
void updateStylesheet (const QPair< QColor, QColor > &colors)
QString generateButtonStylesheet (const QPair< QColor, QColor > &colors)

Private Attributes

QPair< QColor, QColor > gradientColors

Constructor & Destructor Documentation

◆ HomeStyledButton()

HomeStyledButton::HomeStyledButton ( const QString & text,
QPair< QColor, QColor > gradientColors,
QWidget * parent = nullptr )
Here is the call graph for this function:

Member Function Documentation

◆ generateButtonStylesheet()

QString HomeStyledButton::generateButtonStylesheet ( const QPair< QColor, QColor > & colors)
Here is the caller graph for this function:

◆ paintEvent

void HomeStyledButton::paintEvent ( QPaintEvent * event)
overrideslot

◆ updateStylesheet()

void HomeStyledButton::updateStylesheet ( const QPair< QColor, QColor > & colors)
Here is the call graph for this function:

Member Data Documentation

◆ gradientColors

QPair<QColor, QColor> HomeStyledButton::gradientColors
private

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