diff widgets/ItemEditDialog.h @ 807:e4773943c9c1 warnfix_no_size_t

More unsigned/long and warning fixes
author Chris Cannam
date Tue, 17 Jun 2014 15:55:27 +0100
parents ad1fe715b480
children e0f08e108064
line wrap: on
line diff
--- a/widgets/ItemEditDialog.h	Tue Jun 17 15:36:56 2014 +0100
+++ b/widgets/ItemEditDialog.h	Tue Jun 17 15:55:27 2014 +0100
@@ -37,17 +37,17 @@
         ShowText       = 1 << 3
     };
 
-    ItemEditDialog(size_t sampleRate, int options, QString valueUnits = "",
+    ItemEditDialog(int sampleRate, int options, QString valueUnits = "",
                    QWidget *parent = 0);
 
-    void setFrameTime(long frame);
-    long getFrameTime() const;
+    void setFrameTime(int frame);
+    int getFrameTime() const;
 
     void setRealTime(RealTime rt);
     RealTime getRealTime() const;
 
-    void setFrameDuration(long frame);
-    long getFrameDuration() const;
+    void setFrameDuration(int frame);
+    int getFrameDuration() const;
     
     void setRealDuration(RealTime rt);
     RealTime getRealDuration() const;
@@ -70,9 +70,9 @@
     void reset();
 
 protected:
-    size_t m_sampleRate;
-    long m_defaultFrame;
-    long m_defaultDuration;
+    int m_sampleRate;
+    int m_defaultFrame;
+    int m_defaultDuration;
     float m_defaultValue;
     QString m_defaultText;
     QSpinBox *m_frameTimeSpinBox;