Never send wrong row numbers

This commit is contained in:
Fabio Bas 2015-06-25 15:39:03 +02:00
parent ed24b38add
commit f84d6fec1b
3 changed files with 18 additions and 6 deletions

View file

@ -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.