mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-01 11:03:54 -07:00
Never send wrong row numbers
This commit is contained in:
parent
ed24b38add
commit
f84d6fec1b
3 changed files with 18 additions and 6 deletions
|
|
@ -25,6 +25,7 @@ private:
|
|||
static const int PADDING_Y = 10;
|
||||
static const int MARGIN_X = 20;
|
||||
static const int MIN_WIDTH = 10 * CARD_WIDTH / 2;
|
||||
static const int TABLEROWS = 3;
|
||||
|
||||
/*
|
||||
Default background color, inactive mask and boarder gradient
|
||||
|
|
@ -117,6 +118,8 @@ public:
|
|||
QPoint mapToGrid(const QPointF &mapPoint) const;
|
||||
QPointF closestGridPoint(const QPointF &point);
|
||||
|
||||
int clampValidTableRow(const int row);
|
||||
|
||||
/**
|
||||
Removes a card from view.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue