Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Graphics
Kipi Plugins
Commits
78aa6209
Commit
78aa6209
authored
Apr 26, 2012
by
Gilles Caulier
🗼
Browse files
factorize
parent
53141940
Changes
1
Show whitespace changes
Inline
Side-by-side
timeadjust/clockphotodialog.cpp
View file @
78aa6209
...
@@ -174,14 +174,10 @@ bool ClockPhotoDialog::setImage(const KUrl& imageFile) const
...
@@ -174,14 +174,10 @@ bool ClockPhotoDialog::setImage(const KUrl& imageFile) const
{
{
bool
success
=
false
;
bool
success
=
false
;
// Raw housekeeping.
QString
rawFilesExt
(
KDcraw
::
rawFiles
());
QFileInfo
info
(
imageFile
.
path
());
// Try to load the image into the d->image variable.
// Try to load the image into the d->image variable.
bool
imageLoaded
=
false
;
bool
imageLoaded
=
false
;
if
(
rawFilesExt
.
toUpper
().
contains
(
info
.
suffix
().
toUpper
()
))
if
(
KPMetadata
::
isRawFile
(
imageFile
))
{
{
// In case of raw images, load the image the a QImage and convert it to
// In case of raw images, load the image the a QImage and convert it to
// the QPixmap for display.
// the QPixmap for display.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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