Cockatrice 2026-10-19-Development-3.1.2-beta.2
A virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
shadow_background_label.h
Go to the documentation of this file.
1
6
7#ifndef STYLEDLABEL_H
8#define STYLEDLABEL_H
9
10#include <QLabel>
11#include <QString>
12#include <qtmetamacros.h>
13
14class QWidget;
15
16class ShadowBackgroundLabel : public QLabel
17{
18 Q_OBJECT
19
20public:
21 explicit ShadowBackgroundLabel(QWidget *parent, const QString &text);
22 void setLabelText(const QString &text);
23
24protected:
25 void resizeEvent(QResizeEvent *event) override;
26 void paintEvent(QPaintEvent *event) override; // Custom painting logic
27};
28
29#endif // STYLEDLABEL_H
ShadowBackgroundLabel(QWidget *parent, const QString &text)
Definition shadow_background_label.cpp:19
void resizeEvent(QResizeEvent *event) override
Handles resizing of the label.
Definition shadow_background_label.cpp:40
void setLabelText(const QString &text)
Definition shadow_background_label.cpp:27
void paintEvent(QPaintEvent *event) override
Custom paint event for drawing the label's background.
Definition shadow_background_label.cpp:54