Displays a scrollable horizontal list of Archidekt deck listings with dynamic card sizing. More...
#include <archidekt_api_response_deck_listings_display_widget.h>
Signals | |
| void | requestNavigation (QString url) |
| Emitted when a child deck entry requests that the UI navigate to a particular URL. | |
Public Member Functions | |
| ArchidektApiResponseDeckListingsDisplayWidget (QWidget *parent, ArchidektDeckListingApiResponse response, CardSizeWidget *cardSizeSlider) | |
| Constructs a widget that displays multiple deck listing previews. | |
| void | resizeEvent (QResizeEvent *event) override |
| Ensures FlowWidget layout properly recomputes on resize. | |
Private Attributes | |
| CardSizeWidget * | cardSizeSlider |
| Slider controlling the scale of card thumbnails in all deck entry widgets. | |
| QHBoxLayout * | layout |
| Main horizontal layout containing the FlowWidget. | |
| FlowWidget * | flowWidget |
| Container providing scrollable multi-row flow layout of deck entries. | |
| QNetworkAccessManager * | imageNetworkManager |
| Shared network manager used to download card images for all child entry widgets. | |
Displays a scrollable horizontal list of Archidekt deck listings with dynamic card sizing.
This widget serves as a container for multiple ArchidektApiResponseDeckEntryDisplayWidget instances, each representing one deck listing returned from an Archidekt API call.
The widget uses a single QHBoxLayout containing the FlowWidget. The FlowWidget automatically manages child flow and scrollbar behavior (horizontal = off, vertical = auto), providing an efficient scrollable gallery of deck entries.
The constructor consumes an ArchidektDeckListingApiResponse, iterates through its results, and instantiates a child entry widget for each deck.
|
explicit |
Constructs a widget that displays multiple deck listing previews.
| parent | Parent widget. |
| response | The Archidekt API response containing deck listings. |
| cardSizeSlider | A slider widget used to dynamically resize card previews. |
Each deck in response.results becomes its own ArchidektApiResponseDeckEntryDisplayWidget, added to the FlowWidget.
|
signal |
Emitted when a child deck entry requests that the UI navigate to a particular URL.
| url | The destination URL (typically an Archidekt deck page). |
|
override |
Ensures FlowWidget layout properly recomputes on resize.
Forces the layout to invalidate and activate itself so that the FlowWidget recalculates wrapping and child placement.
| event | Resize event. |
|
private |
Slider controlling the scale of card thumbnails in all deck entry widgets.
|
private |
Container providing scrollable multi-row flow layout of deck entries.
|
private |
Shared network manager used to download card images for all child entry widgets.
|
private |
Main horizontal layout containing the FlowWidget.