mirror of
https://github.com/strawberrymusicplayer/strawberry
synced 2025-01-29 00:30:01 +01:00
Use int in MainWindow::UpdateTrackSliderPosition
This commit is contained in:
parent
86c267eb89
commit
88562890ae
@ -1640,8 +1640,8 @@ void MainWindow::UpdateTrackSliderPosition() {
|
|||||||
|
|
||||||
PlaylistItemPtr item(app_->player()->GetCurrentItem());
|
PlaylistItemPtr item(app_->player()->GetCurrentItem());
|
||||||
|
|
||||||
const qint64 slider_position = std::floor(float(app_->player()->engine()->position_nanosec()) / kNsecPerMsec);
|
const int slider_position = std::floor(float(app_->player()->engine()->position_nanosec()) / kNsecPerMsec);
|
||||||
const qint64 slider_length = app_->player()->engine()->length_nanosec() / kNsecPerMsec;
|
const int slider_length = static_cast<int>(app_->player()->engine()->length_nanosec() / kNsecPerMsec);
|
||||||
|
|
||||||
// Update the slider
|
// Update the slider
|
||||||
ui_->track_slider->SetValue(slider_position, slider_length);
|
ui_->track_slider->SetValue(slider_position, slider_length);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user