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
Libraries
Baloo Widgets
Commits
4123a2ad
Commit
4123a2ad
authored
Feb 03, 2022
by
Méven Car
Browse files
small adjustements around dimensions field
parent
e48b9815
Pipeline
#132532
passed with stage
in 41 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/filemetadataprovider.cpp
View file @
4123a2ad
...
...
@@ -129,7 +129,7 @@ void FileMetaDataProvider::slotFileFetchFinished(KJob *job)
const
auto
width
=
m_data
.
value
(
QStringLiteral
(
"width"
));
const
auto
height
=
m_data
.
value
(
QStringLiteral
(
"height"
));
if
(
width
.
type
()
==
QVariant
::
Double
&&
height
.
type
()
==
QVariant
::
Double
)
{
if
(
(
width
.
type
()
==
QVariant
::
Double
||
width
.
type
()
==
QVariant
::
Int
)
&&
(
height
.
type
()
==
QVariant
::
Double
||
height
.
type
()
==
QVariant
::
Int
)
)
{
m_data
.
insert
(
QStringLiteral
(
"dimensions"
),
i18nc
(
"width × height"
,
"%1 × %2"
,
width
.
toInt
(),
height
.
toInt
()));
}
}
...
...
@@ -508,6 +508,7 @@ QString FileMetaDataProvider::group(const QString &label) const
// Image Data
{
QStringLiteral
(
"width"
),
QStringLiteral
(
"2ImageA"
)},
{
QStringLiteral
(
"height"
),
QStringLiteral
(
"2ImageB"
)},
{
QStringLiteral
(
"dimensions"
),
QStringLiteral
(
"2ImageCA"
)},
{
QStringLiteral
(
"photoFNumber"
),
QStringLiteral
(
"2ImageC"
)},
{
QStringLiteral
(
"photoExposureTime"
),
QStringLiteral
(
"2ImageD"
)},
{
QStringLiteral
(
"photoExposureBiasValue"
),
QStringLiteral
(
"2ImageE"
)},
...
...
@@ -521,7 +522,6 @@ QString FileMetaDataProvider::group(const QString &label) const
{
QStringLiteral
(
"photoGpsAltitude"
),
QStringLiteral
(
"2ImageM"
)},
{
QStringLiteral
(
"manufacturer"
),
QStringLiteral
(
"2ImageN"
)},
{
QStringLiteral
(
"model"
),
QStringLiteral
(
"2ImageO"
)},
{
QStringLiteral
(
"dimensions"
),
QStringLiteral
(
"2ImageP"
)},
// Media Data
{
QStringLiteral
(
"title"
),
QStringLiteral
(
"3MediaA"
)},
...
...
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