[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [digikam] core/libs/imageproperties: polish
From:       Gilles Caulier <null () kde ! org>
Date:       2018-09-25 16:13:43
Message-ID: E1g4py3-0002VH-57 () code ! kde ! org
[Download RAW message or body]

Git commit 78be2bdf4e981a5215e4d8c043a67f9ec3a461a4 by Gilles Caulier.
Committed on 25/09/2018 at 16:13.
Pushed by cgilles into branch 'master'.

polish

M  +1    -1    core/libs/imageproperties/imagepropertiessidebar.cpp
M  +5    -5    core/libs/imageproperties/imagepropertiestab.cpp

https://commits.kde.org/digikam/78be2bdf4e981a5215e4d8c043a67f9ec3a461a4

diff --git a/core/libs/imageproperties/imagepropertiessidebar.cpp \
b/core/libs/imageproperties/imagepropertiessidebar.cpp index cb95d9a625..436ad16bee \
                100644
--- a/core/libs/imageproperties/imagepropertiessidebar.cpp
+++ b/core/libs/imageproperties/imagepropertiessidebar.cpp
@@ -326,7 +326,7 @@ void ImagePropertiesSideBar::setImagePropertiesInformation(const \
                QUrl& url)
     m_propertiesTab->setVideoVideoCodec(videoInfo.videoCodec.isEmpty()             ? \
                unavailable : videoInfo.videoCodec);
     m_propertiesTab->setVideoAudioBitRate(videoInfo.audioBitRate.isEmpty()         ? \
                unavailable : videoInfo.audioBitRate);
     m_propertiesTab->setVideoAudioChannelType(videoInfo.audioChannelType.isEmpty() ? \
                unavailable : videoInfo.audioChannelType);
-    m_propertiesTab->setVideoAudioCodec(videoInfo.audioCodec.isEmpty()   ? \
unavailable : videoInfo.audioCodec); +    \
m_propertiesTab->setVideoAudioCodec(videoInfo.audioCodec.isEmpty()             ? \
unavailable : videoInfo.audioCodec);  
     // -- Caption, ratings, tag information ---------------------
 
diff --git a/core/libs/imageproperties/imagepropertiestab.cpp \
b/core/libs/imageproperties/imagepropertiestab.cpp index 9229f8112f..8181ff5c8e \
                100644
--- a/core/libs/imageproperties/imagepropertiestab.cpp
+++ b/core/libs/imageproperties/imagepropertiestab.cpp
@@ -399,8 +399,8 @@ ImagePropertiesTab::ImagePropertiesTab(QWidget* const parent)
     glay4->addWidget(d->labelVideoAudioBitRate,     4, 1, 1, 1);
     glay4->addWidget(d->audioChannelType,           5, 0, 1, 1);
     glay4->addWidget(d->labelVideoAudioChannelType, 5, 1, 1, 1);
-    glay4->addWidget(d->audioCodec,            6, 0, 1, 1);
-    glay4->addWidget(d->labelVideoAudioCodec,  6, 1, 1, 1);
+    glay4->addWidget(d->audioCodec,                 6, 0, 1, 1);
+    glay4->addWidget(d->labelVideoAudioCodec,       6, 1, 1, 1);
     glay4->setContentsMargins(spacing, spacing, spacing, spacing);
     glay4->setSpacing(0);
     glay4->setColumnStretch(0, 10);
@@ -799,14 +799,14 @@ QStringList ImagePropertiesTab::shortenedTagPaths(const \
QStringList& tagPaths, Q  
     if (identifiers)
     {
-        for (int i = 0; i < tagPaths.size(); i++)
+        for (int i = 0 ; i < tagPaths.size() ; ++i)
         {
             tagsSorted << PathValuePair(tagPaths.at(i), (*identifiers).at(i));
         }
     }
     else
     {
-        for (int i = 0; i < tagPaths.size(); i++)
+        for (int i = 0 ; i < tagPaths.size() ; ++i)
         {
             tagsSorted << PathValuePair(tagPaths.at(i), QVariant());
         }
@@ -830,7 +830,7 @@ QStringList ImagePropertiesTab::shortenedTagPaths(const \
                QStringList& tagPaths, Q
         QStringList previousPath = previous.split(QLatin1Char('/'), \
QString::SkipEmptyParts);  int depth;
 
-        for (depth = 0; depth < currentPath.size() && depth < previousPath.size(); \
++depth) +        for (depth = 0 ; depth < currentPath.size() && depth < \
previousPath.size() ; ++depth)  {
             if (currentPath.at(depth) != previousPath.at(depth))
                 break;


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic