1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 21:17:44 +00:00

PDFViewer: Accept file drops

This commit is contained in:
Karol Kosek 2023-08-29 18:31:11 +02:00 committed by Tim Flynn
parent fa0606ea36
commit 40d732a73c
2 changed files with 31 additions and 0 deletions

View file

@ -30,6 +30,8 @@ public:
private:
PDFViewerWidget();
virtual void drag_enter_event(GUI::DragEvent&) override;
virtual void drop_event(GUI::DropEvent&) override;
void initialize_toolbar(GUI::Toolbar&);
PDF::PDFErrorOr<void> try_open_file(StringView path, NonnullOwnPtr<Core::File> file);