Cockatrice
2026-10-19-Development-3.1.2-beta.2
A virtual tabletop for multiplayer card games
Toggle main menu visibility
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
14
class
QWidget;
15
16
class
ShadowBackgroundLabel
:
public
QLabel
17
{
18
Q_OBJECT
19
20
public
:
21
explicit
ShadowBackgroundLabel
(QWidget *parent,
const
QString &text);
22
void
setLabelText
(
const
QString &text);
23
24
protected
:
25
void
resizeEvent
(QResizeEvent *event)
override
;
26
void
paintEvent
(QPaintEvent *event)
override
;
// Custom painting logic
27
};
28
29
#endif
// STYLEDLABEL_H
ShadowBackgroundLabel::ShadowBackgroundLabel
ShadowBackgroundLabel(QWidget *parent, const QString &text)
Definition
shadow_background_label.cpp:19
ShadowBackgroundLabel::resizeEvent
void resizeEvent(QResizeEvent *event) override
Handles resizing of the label.
Definition
shadow_background_label.cpp:40
ShadowBackgroundLabel::setLabelText
void setLabelText(const QString &text)
Definition
shadow_background_label.cpp:27
ShadowBackgroundLabel::paintEvent
void paintEvent(QPaintEvent *event) override
Custom paint event for drawing the label's background.
Definition
shadow_background_label.cpp:54
cockatrice
src
interface
widgets
general
display
shadow_background_label.h
Generated by
1.18.0