![]() |
Cockatrice 2026-10-19-Development-3.1.2-beta.2
A virtual tabletop for multiplayer card games
|
A preview tile for a public deck published by another user. More...
#include <public_deck_preview_widget.h>
Signals | |
| void | openDeckRequested (int deckId) |
Public Member Functions | |
| PublicDeckPreviewWidget (QWidget *parent, const RemotePublicDecksModel::DeckEntry &entry) | |
| void | setEntry (const RemotePublicDecksModel::DeckEntry &entry) |
| void | setBaseAccessibleName (const QString &name) |
| Sets the accessible name announced to assistive technologies. | |
| void | setScaleFactor (int scale) |
| Scales the banner card picture, mirroring the Visual Deck Storage. | |
Protected Member Functions | |
| void | resizeEvent (QResizeEvent *event) override |
| void | keyPressEvent (QKeyEvent *event) override |
Private Slots | |
| void | imageClickedEvent (QMouseEvent *event, DeckPreviewCardPictureWidget *instance) |
| void | imageDoubleClickedEvent (QMouseEvent *event, DeckPreviewCardPictureWidget *instance) |
| void | updateColorIdentityVisibility () |
| void | updateTagsVisibility () |
| void | updateUploadTimeVisibility () |
Private Attributes | |
| int | deckId = 0 |
| QString | baseAccessibleName |
| bool | hasColorIdentity = false |
| bool | hasTags = false |
| bool | hasUploadTime = false |
| int | lastKnownBannerWidth = 0 |
| QList< QWidget * > | fixedWidthChildren |
| DeckPreviewCardPictureWidget * | bannerCardDisplayWidget |
| ColorIdentityWidget * | colorIdentityWidget |
| FlowWidget * | tagsFlowWidget |
| QLabel * | uploadTimeLabel |
A preview tile for a public deck published by another user.
Renders the banner card picture (looked up by name/provider in the card database) with the deck name overlaid, the color identity, the deck's tags (read-only) and its upload time, all from the metadata the server stores for the deck, so no deck list is downloaded until the user actually opens the deck. Double-clicking the banner requests opening it.
|
explicit |
|
privateslot |
|
privateslot |
|
overrideprotected |
|
signal |
|
overrideprotected |
| void PublicDeckPreviewWidget::setBaseAccessibleName | ( | const QString & | name | ) |
Sets the accessible name announced to assistive technologies.
| void PublicDeckPreviewWidget::setEntry | ( | const RemotePublicDecksModel::DeckEntry & | entry | ) |
| void PublicDeckPreviewWidget::setScaleFactor | ( | int | scale | ) |
Scales the banner card picture, mirroring the Visual Deck Storage.
|
privateslot |
|
privateslot |
|
privateslot |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |