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:
parent
017490aa7f
commit
228fa1c51d
3 changed files with 20 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue