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
11class HomeStyledButton : public QPushButton
12{
13 Q_OBJECT
14public:
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);
18public slots:
19 void paintEvent(QPaintEvent *event) override;
20
21private:
22 QPair<QColor, QColor> gradientColors;
23};
24
25#endif // HOME_STYLED_BUTTON_H
void updateStylesheet(const QPair< QColor, QColor > &colors)
Definition home_styled_button.cpp:16
void paintEvent(QPaintEvent *event) override
Definition home_styled_button.cpp:53
QPair< QColor, QColor > gradientColors
Definition home_styled_button.h:22
HomeStyledButton(const QString &text, QPair< QColor, QColor > gradientColors, QWidget *parent=nullptr)
Definition home_styled_button.cpp:8
QString generateButtonStylesheet(const QPair< QColor, QColor > &colors)
Definition home_styled_button.cpp:22