Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Donald Haase
Cockatrice
Commits
967e1a46
Commit
967e1a46
authored
Nov 05, 2014
by
poixen
Browse files
Removed comments
- Removed comments as-per request
parent
accd3ecc
Changes
1
Hide whitespace changes
Inline
Side-by-side
cockatrice/src/tablezone.cpp
View file @
967e1a46
...
@@ -26,16 +26,11 @@ const QColor TableZone::GRADIENT_COLORLESS = QColor(255, 255, 255, 0);
...
@@ -26,16 +26,11 @@ const QColor TableZone::GRADIENT_COLORLESS = QColor(255, 255, 255, 0);
TableZone
::
TableZone
(
Player
*
_p
,
QGraphicsItem
*
parent
)
TableZone
::
TableZone
(
Player
*
_p
,
QGraphicsItem
*
parent
)
:
SelectZone
(
_p
,
"table"
,
true
,
false
,
true
,
parent
),
active
(
false
)
:
SelectZone
(
_p
,
"table"
,
true
,
false
,
true
,
parent
),
active
(
false
)
{
{
// repaint the table if the background image changes
connect
(
settingsCache
,
SIGNAL
(
tableBgPathChanged
()),
this
,
SLOT
(
updateBgPixmap
()));
connect
(
settingsCache
,
SIGNAL
(
tableBgPathChanged
()),
this
,
SLOT
(
updateBgPixmap
()));
// reorganize the cards if the vertical coordinates are changed
connect
(
settingsCache
,
SIGNAL
(
invertVerticalCoordinateChanged
()),
this
,
SLOT
(
reorganizeCards
()));
connect
(
settingsCache
,
SIGNAL
(
invertVerticalCoordinateChanged
()),
this
,
SLOT
(
reorganizeCards
()));
// load in any current background pixel map
updateBgPixmap
();
updateBgPixmap
();
// calculate the width and height of the TableZone bounding rect
height
=
2
*
BOX_LINE_WIDTH
+
3
*
(
CARD_HEIGHT
+
20
)
+
2
*
PADDING_Y
;
height
=
2
*
BOX_LINE_WIDTH
+
3
*
(
CARD_HEIGHT
+
20
)
+
2
*
PADDING_Y
;
width
=
MIN_WIDTH
+
2
*
MARGIN_X
+
2
*
BOX_LINE_WIDTH
;
width
=
MIN_WIDTH
+
2
*
MARGIN_X
+
2
*
BOX_LINE_WIDTH
;
currentMinimumWidth
=
MIN_WIDTH
;
currentMinimumWidth
=
MIN_WIDTH
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment