┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/panels/information/kmetadatawidget.cpp
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2010-02-26 20:08:09 +0000
committerPeter Penz <[email protected]>2010-02-26 20:08:09 +0000
commit65106c30375b026fa3c759b684f25af8d2cc31c2 (patch)
tree2eda0d121070f17d49d63f2c7cbe9fb7b70aa1fb /src/panels/information/kmetadatawidget.cpp
parent6479605c844427551d99b789274b9f85806bdf00 (diff)
use NFO URI to check whether the width and height should be merged as one label
svn path=/trunk/KDE/kdebase/apps/; revision=1096542
Diffstat (limited to 'src/panels/information/kmetadatawidget.cpp')
-rw-r--r--src/panels/information/kmetadatawidget.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/panels/information/kmetadatawidget.cpp b/src/panels/information/kmetadatawidget.cpp
index 4d2812637..8d66dfadc 100644
--- a/src/panels/information/kmetadatawidget.cpp
+++ b/src/panels/information/kmetadatawidget.cpp
@@ -499,18 +499,18 @@ QList<KLoadMetaDataThread::Item>
KLoadMetaDataThread::Item height;
foreach (const KLoadMetaDataThread::Item& item, items) {
- if (item.name == "width") {
+ if (item.name == QLatin1String("http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#width")) {
width = item;
- } else if (item.name == "height") {
+ } else if (item.name == QLatin1String("http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#height")) {
height = item;
} else {
// insert the item sorted by the label
int pos = 0;
- while ( mergedItems.count() > pos &&
- mergedItems[pos].label < item.label ) {
+ while ((mergedItems.count() > pos) &&
+ (mergedItems[pos].label < item.label)) {
++pos;
}
- mergedItems.insert( pos, item );
+ mergedItems.insert(pos, item);
}
}