[vlmc-devel] commit: MetadataDisplayer: Display the file path. ( Hugo Beauzée-Luyssen )

git at videolan.org git at videolan.org
Sun Jun 20 23:50:33 CEST 2010


vlmc | branch: master | Hugo Beauzée-Luyssen <beauze.h at gmail.com> | Sun Jun 20 22:19:24 2010 +0200| [b473789141a206b1e66da7f397414de25452f9cd] | committer: Hugo Beauzée-Luyssen 

MetadataDisplayer: Display the file path.

> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=b473789141a206b1e66da7f397414de25452f9cd
---

 src/Gui/media/ClipMetadataDisplayer.cpp   |    2 +
 src/Gui/media/ui/ClipMetadataDisplayer.ui |   34 ++++++++++++++++++++--------
 2 files changed, 26 insertions(+), 10 deletions(-)

diff --git a/src/Gui/media/ClipMetadataDisplayer.cpp b/src/Gui/media/ClipMetadataDisplayer.cpp
index 985541e..a6102b3 100644
--- a/src/Gui/media/ClipMetadataDisplayer.cpp
+++ b/src/Gui/media/ClipMetadataDisplayer.cpp
@@ -56,6 +56,8 @@ ClipMetadataDisplayer::metadataUpdated( const Media *media )
     //nb tracks :
     m_ui->nbVideoTracksValueLabel->setText( QString::number( media->nbVideoTracks() ) );
     m_ui->nbAudioTracksValueLabel->setText( QString::number( media->nbAudioTracks() ) );
+    //Path:
+    m_ui->pathValueLabel->setText( media->fileInfo()->filePath() );
 }
 
 void
diff --git a/src/Gui/media/ui/ClipMetadataDisplayer.ui b/src/Gui/media/ui/ClipMetadataDisplayer.ui
index 42dd06f..39b7775 100644
--- a/src/Gui/media/ui/ClipMetadataDisplayer.ui
+++ b/src/Gui/media/ui/ClipMetadataDisplayer.ui
@@ -40,21 +40,21 @@
         </property>
        </widget>
       </item>
-      <item row="1" column="0">
+      <item row="2" column="0">
        <widget class="QLabel" name="durationLabel">
         <property name="text">
          <string>Duration</string>
         </property>
        </widget>
       </item>
-      <item row="1" column="1">
+      <item row="2" column="1">
        <widget class="QLabel" name="durationValueLabel">
         <property name="text">
          <string>---</string>
         </property>
        </widget>
       </item>
-      <item row="2" column="0">
+      <item row="3" column="0">
        <widget class="QLabel" name="resolutionLabel">
         <property name="sizePolicy">
          <sizepolicy hsizetype="Expanding" vsizetype="Preferred">
@@ -67,7 +67,7 @@
         </property>
        </widget>
       </item>
-      <item row="2" column="1">
+      <item row="3" column="1">
        <widget class="QLabel" name="resolutionValueLabel">
         <property name="sizePolicy">
          <sizepolicy hsizetype="Maximum" vsizetype="Minimum">
@@ -80,7 +80,7 @@
         </property>
        </widget>
       </item>
-      <item row="3" column="0">
+      <item row="4" column="0">
        <widget class="QLabel" name="fpsLabel">
         <property name="sizePolicy">
          <sizepolicy hsizetype="Expanding" vsizetype="Preferred">
@@ -93,41 +93,55 @@
         </property>
        </widget>
       </item>
-      <item row="3" column="1">
+      <item row="4" column="1">
        <widget class="QLabel" name="fpsValueLabel">
         <property name="text">
          <string>---</string>
         </property>
        </widget>
       </item>
-      <item row="4" column="0">
+      <item row="5" column="0">
        <widget class="QLabel" name="nbVideoTracks">
         <property name="text">
          <string>Number of video tracks</string>
         </property>
        </widget>
       </item>
-      <item row="5" column="0">
+      <item row="6" column="0">
        <widget class="QLabel" name="nbAudioTracks">
         <property name="text">
          <string>Number of audio tracks</string>
         </property>
        </widget>
       </item>
-      <item row="5" column="1">
+      <item row="6" column="1">
        <widget class="QLabel" name="nbAudioTracksValueLabel">
         <property name="text">
          <string>0</string>
         </property>
        </widget>
       </item>
-      <item row="4" column="1">
+      <item row="5" column="1">
        <widget class="QLabel" name="nbVideoTracksValueLabel">
         <property name="text">
          <string>0</string>
         </property>
        </widget>
       </item>
+      <item row="1" column="0">
+       <widget class="QLabel" name="pathLabel">
+        <property name="text">
+         <string>Path</string>
+        </property>
+       </widget>
+      </item>
+      <item row="1" column="1">
+       <widget class="QLabel" name="pathValueLabel">
+        <property name="text">
+         <string>---</string>
+        </property>
+       </widget>
+      </item>
      </layout>
     </widget>
    </item>



More information about the Vlmc-devel mailing list