1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-11 02:08:46 -04:00

File Input: use millis instead of percent for navigation slider

This commit is contained in:
f4exb
2018-10-14 02:38:24 +02:00
parent b0b2af252c
commit a6557cd4f9
4 changed files with 14 additions and 14 deletions
@@ -303,7 +303,7 @@ void FileSourceGui::on_play_toggled(bool checked)
void FileSourceGui::on_navTimeSlider_valueChanged(int value)
{
if (m_enableNavTime && ((value >= 0) && (value <= 100)))
if (m_enableNavTime && ((value >= 0) && (value <= 1000)))
{
FileSourceInput::MsgConfigureFileSourceSeek* message = FileSourceInput::MsgConfigureFileSourceSeek::create(value);
m_sampleSource->getInputMessageQueue()->push(message);
@@ -387,7 +387,7 @@ void FileSourceGui::updateWithStreamTime()
if (!m_enableNavTime)
{
float posRatio = (float) t_sec / (float) m_recordLength;
ui->navTimeSlider->setValue((int) (posRatio * 100.0));
ui->navTimeSlider->setValue((int) (posRatio * 1000.0));
}
}