Cockatrice
2025-11-30-Development-2.11.0-beta.38
A cross-platform virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
home_styled_button.h
Go to the documentation of this file.
1
6
7
#ifndef HOME_STYLED_BUTTON_H
8
#define HOME_STYLED_BUTTON_H
9
#include <QPushButton>
10
11
class
HomeStyledButton
:
public
QPushButton
12
{
13
Q_OBJECT
14
public
:
15
HomeStyledButton
(
const
QString &text, QPair<QColor, QColor>
gradientColors
, QWidget *parent =
nullptr
);
16
void
updateStylesheet
(
const
QPair<QColor, QColor> &colors);
17
QString
generateButtonStylesheet
(
const
QPair<QColor, QColor> &colors);
18
public
slots:
19
void
paintEvent
(QPaintEvent *event)
override
;
20
21
private
:
22
QPair<QColor, QColor>
gradientColors
;
23
};
24
25
#endif
// HOME_STYLED_BUTTON_H
HomeStyledButton::updateStylesheet
void updateStylesheet(const QPair< QColor, QColor > &colors)
Definition
home_styled_button.cpp:16
HomeStyledButton::paintEvent
void paintEvent(QPaintEvent *event) override
Definition
home_styled_button.cpp:53
HomeStyledButton::gradientColors
QPair< QColor, QColor > gradientColors
Definition
home_styled_button.h:22
HomeStyledButton::HomeStyledButton
HomeStyledButton(const QString &text, QPair< QColor, QColor > gradientColors, QWidget *parent=nullptr)
Definition
home_styled_button.cpp:8
HomeStyledButton::generateButtonStylesheet
QString generateButtonStylesheet(const QPair< QColor, QColor > &colors)
Definition
home_styled_button.cpp:22
cockatrice
src
interface
widgets
general
home_styled_button.h
Generated by
1.14.0