1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 11:48:10 +00:00

SoundPlayer: Accept drop events

Files can now be dragged into the window and loading errors will be
handled more gracefully.
This commit is contained in:
Julian Offenhäuser 2020-12-02 23:58:00 +01:00 committed by Andreas Kling
parent 017490aa7f
commit 228fa1c51d
3 changed files with 20 additions and 3 deletions

View file

@ -45,6 +45,8 @@ public:
private:
explicit SoundPlayerWidget(GUI::Window&, NonnullRefPtr<Audio::ClientConnection>);
virtual void drop_event(GUI::DropEvent&) override;
void update_position(const int position);
void update_ui();
int normalize_rate(int) const;