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
9e1ee500
Commit
9e1ee500
authored
Mar 17, 2012
by
Max-Wilhelm Bruker
Browse files
Merge branch 'devel' of
git://github.com/mbruker/Cockatrice
into devel
parents
22592048
76c7d963
Changes
1
Hide whitespace changes
Inline
Side-by-side
cockatrice/src/cardinfowidget.cpp
View file @
9e1ee500
...
@@ -4,6 +4,7 @@
...
@@ -4,6 +4,7 @@
#include
<QPushButton>
#include
<QPushButton>
#include
<QStyle>
#include
<QStyle>
#include
<QMouseEvent>
#include
<QMouseEvent>
#include
<QDesktopWidget>
#include
"cardinfowidget.h"
#include
"cardinfowidget.h"
#include
"carditem.h"
#include
"carditem.h"
#include
"carddatabase.h"
#include
"carddatabase.h"
...
@@ -74,8 +75,9 @@ CardInfoWidget::CardInfoWidget(ResizeMode _mode, const QString &cardName, QWidge
...
@@ -74,8 +75,9 @@ CardInfoWidget::CardInfoWidget(ResizeMode _mode, const QString &cardName, QWidge
textLabel
->
setMinimumHeight
(
100
);
textLabel
->
setMinimumHeight
(
100
);
setFixedWidth
(
sizeHint
().
width
());
setFixedWidth
(
sizeHint
().
width
());
}
else
if
(
mode
==
ModePopUp
)
{
}
else
if
(
mode
==
ModePopUp
)
{
setFixedWidth
(
350
);
QDesktopWidget
desktopWidget
;
pixmapWidth
=
250
;
pixmapWidth
=
desktopWidget
.
screenGeometry
().
height
()
/
3
/
aspectRatio
;
setFixedWidth
(
pixmapWidth
+
150
);
}
else
}
else
setFixedWidth
(
250
);
setFixedWidth
(
250
);
...
...
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