#include <printing_selector_card_display_widget.h>
◆ PrintingSelectorCardDisplayWidget()
| PrintingSelectorCardDisplayWidget::PrintingSelectorCardDisplayWidget |
( |
QWidget * | parent, |
|
|
AbstractTabDeckEditor * | _deckEditor, |
|
|
DeckListModel * | _deckModel, |
|
|
QTreeView * | _deckView, |
|
|
QSlider * | _cardSizeSlider, |
|
|
const ExactCard & | _rootCard, |
|
|
QString & | _currentZone ) |
Constructs a PrintingSelectorCardDisplayWidget to display card information.
This widget is responsible for displaying the selected card's printing information, including the card's image and set details. It also handles the layout of the card's display, including its size, set name, and collectors number. The card is displayed within a QVBoxLayout with two main components: the overlay (which combines the card image and buttons) and the set name and collectors number display.
- Parameters
-
| parent | The parent widget for this display. |
| _deckEditor | The TabDeckEditor instance for deck management. |
| _deckModel | The DeckListModel instance providing deck data. |
| _deckView | The QTreeView instance displaying the deck. |
| _cardSizeSlider | The slider controlling the size of the displayed card. |
| _rootCard | The root card object, representing the card to be displayed. |
| _currentZone | The current zone in which the card is located. |
◆ cardPreferenceChanged
| void PrintingSelectorCardDisplayWidget::cardPreferenceChanged |
( |
| ) |
|
|
signal |
◆ clampSetNameToPicture
| void PrintingSelectorCardDisplayWidget::clampSetNameToPicture |
( |
| ) |
|
|
slot |
Adjusts the width of the set name display to fit the card overlay widget.
This method ensures that the set name and collector's number display widget does not exceed the width of the card's overlay widget. It clamps the set name widget to match the width of the overlay widget and updates the display.
◆ cardSizeSlider
| QSlider* PrintingSelectorCardDisplayWidget::cardSizeSlider |
|
private |
◆ currentZone
| QString PrintingSelectorCardDisplayWidget::currentZone |
|
private |
◆ deckEditor
◆ deckModel
◆ deckView
| QTreeView* PrintingSelectorCardDisplayWidget::deckView |
|
private |
◆ layout
| QVBoxLayout* PrintingSelectorCardDisplayWidget::layout |
|
private |
◆ overlayWidget
◆ rootCard
| ExactCard PrintingSelectorCardDisplayWidget::rootCard |
|
private |
◆ setNameAndCollectorsNumberDisplayWidget
The documentation for this class was generated from the following files: