mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-11 08:34:52 -07:00
* Sort *every* file into a doxygen group. Took 7 hours 9 minutes Took 18 seconds Took 2 minutes * Lint some ingroup definitions. Took 10 minutes Took 2 seconds * Just include the groups in the Doxyfile in this commit. Took 3 minutes * Update some group comments so they link! Took 14 minutes --------- Co-authored-by: Lukas Brübach <Bruebach.Lukas@bdosecurity.de>
25 lines
637 B
C++
25 lines
637 B
C++
/**
|
|
* @file home_styled_button.h
|
|
* @ingroup Widgets
|
|
* @brief TODO: Document this.
|
|
*/
|
|
|
|
#ifndef HOME_STYLED_BUTTON_H
|
|
#define HOME_STYLED_BUTTON_H
|
|
#include <QPushButton>
|
|
|
|
class HomeStyledButton : public QPushButton
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
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);
|
|
public slots:
|
|
void paintEvent(QPaintEvent *event) override;
|
|
|
|
private:
|
|
QPair<QColor, QColor> gradientColors;
|
|
};
|
|
|
|
#endif // HOME_STYLED_BUTTON_H
|