![]() |
Cockatrice 2026-03-05-Development-2.11.0-beta.54
A virtual tabletop for multiplayer card games
|
A widget to display the set name and collectors number with adjustable font size. More...
#include <set_name_and_collectors_number_display_widget.h>
Public Member Functions | |
| SetNameAndCollectorsNumberDisplayWidget (QWidget *parent, const QString &setName, const QString &collectorsNumber) | |
| void | resizeEvent (QResizeEvent *event) override |
| Handles resize events to adjust the height of the set name label. | |
Private Attributes | |
| QVBoxLayout * | layout |
| QLabel * | setName |
| QLabel * | collectorsNumber |
A widget to display the set name and collectors number with adjustable font size.
This widget displays the set name and collectors number on two separate labels.
| SetNameAndCollectorsNumberDisplayWidget::SetNameAndCollectorsNumberDisplayWidget | ( | QWidget * | parent, |
| const QString & | setName, | ||
| const QString & | collectorsNumber ) |
|
override |
Handles resize events to adjust the height of the set name label.
This method calculates the height required to display the set name label with word wrapping. It adjusts the minimum height of the set name label to fit the text.
| event | The resize event. |
|
private |
|
private |
|
private |