mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-15 03:28:49 -07:00
optional setting for horizonal hand display
This commit is contained in:
parent
33606f55ce
commit
e6e20cb048
19 changed files with 275 additions and 76 deletions
|
|
@ -9,6 +9,7 @@ signals:
|
|||
void sizeChanged();
|
||||
private:
|
||||
int width, height;
|
||||
int currentMinimumWidth;
|
||||
QPixmap bgPixmap;
|
||||
private slots:
|
||||
void updateBgPixmap();
|
||||
|
|
@ -32,6 +33,8 @@ public:
|
|||
QPointF closestGridPoint(const QPointF &point);
|
||||
CardItem *takeCard(int position, int cardId, const QString &cardName, bool canResize = true);
|
||||
void resizeToContents();
|
||||
int getMinimumWidth() const { return currentMinimumWidth; }
|
||||
void setWidth(qreal _width);
|
||||
protected:
|
||||
void addCardImpl(CardItem *card, int x, int y);
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue