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
8b588c6f
Commit
8b588c6f
authored
Aug 06, 2014
by
Peng Liu
Browse files
Merge branch 'ctrlaltca-pr256' into handle-PNGs-2
parents
4bb1d28a
6502a182
Changes
1
Hide whitespace changes
Inline
Side-by-side
cockatrice/src/carddatabase.cpp
View file @
8b588c6f
...
...
@@ -132,11 +132,12 @@ void PictureLoader::processLoadQueue()
<<
_picsPath
+
"/downloadedPics/"
+
ptl
.
getSetName
()
+
"/"
+
ptl
.
getCard
()
->
getCorrectedName
()
+
".full"
;
QImage
image
;
QImageReader
imgReader
;
imgReader
.
setDecideFormatFromContent
(
true
);
bool
found
=
false
;
//Iterates through the list of paths, searching for images with the desired name with any QImageReader-supported extension
for
(
int
i
=
0
;
i
<
picsPaths
.
length
()
&&
!
found
;
i
++
)
{
QImageReader
imgReader
;
imgReader
.
setFileName
(
picsPaths
.
at
(
i
));
if
(
imgReader
.
read
(
&
image
))
{
emit
imageLoaded
(
ptl
.
getCard
(),
image
);
...
...
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