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
caf39bc7
Commit
caf39bc7
authored
May 30, 2011
by
Max-Wilhelm Bruker
Browse files
fixed CardInfoWidget weirdness
parent
7cd4cef9
Changes
1
Hide whitespace changes
Inline
Side-by-side
cockatrice/src/tab_game.cpp
View file @
caf39bc7
...
...
@@ -786,11 +786,11 @@ void TabGame::showCardInfoPopup(const QPoint &pos, const QString &cardName)
infoPopup
->
setAttribute
(
Qt
::
WA_TransparentForMouseEvents
);
infoPopup
->
setCard
(
cardName
);
QRect
screenRect
=
qApp
->
desktop
()
->
screenGeometry
(
this
);
infoPopup
->
show
();
infoPopup
->
move
(
qMax
(
screenRect
.
left
(),
qMin
(
pos
.
x
()
-
infoPopup
->
width
()
/
2
,
screenRect
.
left
()
+
screenRect
.
width
()
-
infoPopup
->
width
())),
qMax
(
screenRect
.
top
(),
qMin
(
pos
.
y
()
-
infoPopup
->
height
()
/
2
,
screenRect
.
top
()
+
screenRect
.
height
()
-
infoPopup
->
height
()))
);
infoPopup
->
show
();
}
void
TabGame
::
deleteCardInfoPopup
()
...
...
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