Mercurial > hg > svgui
diff widgets/ItemEditDialog.cpp @ 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 | b6397738444c |
children | 44675ab217a3 |
line wrap: on
line diff
--- a/widgets/ItemEditDialog.cpp Tue Jun 17 15:36:56 2014 +0100 +++ b/widgets/ItemEditDialog.cpp Tue Jun 17 15:55:27 2014 +0100 @@ -28,7 +28,7 @@ #include <float.h> // for FLT_MIN/MAX -ItemEditDialog::ItemEditDialog(size_t sampleRate, int options, +ItemEditDialog::ItemEditDialog(int sampleRate, int options, QString valueUnits, QWidget *parent) : QDialog(parent), m_sampleRate(sampleRate), @@ -50,7 +50,7 @@ int row = 0, subrow = 0; - size_t singleStep = RealTime::frame2RealTime(2, sampleRate).usec() - 1; + int singleStep = RealTime::frame2RealTime(2, sampleRate).usec() - 1; if ((options & ShowTime) || (options & ShowDuration)) { @@ -190,7 +190,7 @@ } void -ItemEditDialog::setFrameTime(long frame) +ItemEditDialog::setFrameTime(int frame) { if (!m_frameTimeSpinBox) return; @@ -202,7 +202,7 @@ m_resetButton->setEnabled(false); } -long +int ItemEditDialog::getFrameTime() const { return m_frameTimeSpinBox->value(); @@ -221,7 +221,7 @@ } void -ItemEditDialog::setFrameDuration(long duration) +ItemEditDialog::setFrameDuration(int duration) { if (!m_frameDurationSpinBox) return; @@ -233,7 +233,7 @@ m_resetButton->setEnabled(false); } -long +int ItemEditDialog::getFrameDuration() const { return m_frameDurationSpinBox->value(); @@ -303,7 +303,7 @@ { RealTime rt = getRealTime(); rt.sec = i; - size_t frame = RealTime::realTime2Frame(rt, m_sampleRate); + int frame = RealTime::realTime2Frame(rt, m_sampleRate); m_frameTimeSpinBox->setValue(frame); m_resetButton->setEnabled(true); } @@ -313,7 +313,7 @@ { RealTime rt = getRealTime(); rt.nsec = i * 1000; - size_t frame = RealTime::realTime2Frame(rt, m_sampleRate); + int frame = RealTime::realTime2Frame(rt, m_sampleRate); m_frameTimeSpinBox->setValue(frame); m_resetButton->setEnabled(true); } @@ -338,7 +338,7 @@ { RealTime rt = getRealDuration(); rt.sec = i; - size_t frame = RealTime::realTime2Frame(rt, m_sampleRate); + int frame = RealTime::realTime2Frame(rt, m_sampleRate); m_frameDurationSpinBox->setValue(frame); m_resetButton->setEnabled(true); } @@ -348,7 +348,7 @@ { RealTime rt = getRealDuration(); rt.nsec = i * 1000; - size_t frame = RealTime::realTime2Frame(rt, m_sampleRate); + int frame = RealTime::realTime2Frame(rt, m_sampleRate); m_frameDurationSpinBox->setValue(frame); m_resetButton->setEnabled(true); }