Updated reveal zone check boxes

I saw in some images from other platforms it can take up alot of space.
Made the boxed horizontal, rather than vertical.

WIP Remade reveal zone

+ darkened card area to eaisily see boundries
+ reverted back to using a window
+ window can be resized
+ removed fake title bar and "X"
+ moved all cards revealed slightly to the right, makes it easier to
drag-select from the left

Cleanup

Changed style to use cockatrice icon

Changed cast

from static_cast to qstyleoption_cast
This commit is contained in:
Matt Lowe 2015-05-02 21:18:02 +02:00
parent cf24f4aa04
commit 1e0c4cbf87
3 changed files with 20 additions and 26 deletions

View file

@ -16,6 +16,7 @@ class GameScene;
class ServerInfo_Card;
class QGraphicsSceneMouseEvent;
class QGraphicsSceneWheelEvent;
class QStyleOption;
class TitleLabel : public QGraphicsWidget {
Q_OBJECT
@ -68,7 +69,7 @@ public:
void retranslateUi();
protected:
void closeEvent(QCloseEvent *event);
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
void initStyleOption(QStyleOption *option) const;
};
#endif