diff view/ViewManager.h @ 822:d974ed657176 tonioni

code to remove duration/sample rate from panes
author matthiasm
date Wed, 16 Jul 2014 14:35:00 +0100
parents 09026c875301
children d4446f267e12
line wrap: on
line diff
--- a/view/ViewManager.h	Tue Jul 15 15:54:41 2014 +0100
+++ b/view/ViewManager.h	Wed Jul 16 14:35:00 2014 +0100
@@ -158,6 +158,7 @@
 
     void setIlluminateLocalFeatures(bool i) { m_illuminateLocalFeatures = i; }
     void setShowWorkTitle(bool show) { m_showWorkTitle = show; }
+    void setShowDuration(bool show) { m_showDuration = show; }
 
     /**
      * The sample rate that is used for playback.  This is usually the
@@ -196,7 +197,7 @@
     bool shouldShowCentreLine() const { return m_showCentreLine; }
 
     bool shouldShowDuration() const {
-        return m_overlayMode != NoOverlays;
+        return m_overlayMode != NoOverlays && m_showDuration;
     }
     bool shouldShowFrameCount() const {
         return m_showCentreLine && shouldShowDuration();
@@ -350,6 +351,7 @@
     bool m_showCentreLine;
     bool m_illuminateLocalFeatures;
     bool m_showWorkTitle;
+    bool m_showDuration;
 
     QPalette m_lightPalette;
     QPalette m_darkPalette;