mirror of
https://github.com/RGBCube/serenity
synced 2025-09-15 13:36:16 +00:00
QuickShow: Switch to full screen mode on double click
More respect to user behavior on image viewers :)
This commit is contained in:
parent
016fc9c133
commit
bf3d98012a
3 changed files with 12 additions and 2 deletions
|
@ -57,10 +57,12 @@ public:
|
|||
void load_from_file(const String&);
|
||||
|
||||
Function<void(int)> on_scale_change;
|
||||
Function<void()> on_doubleclick;
|
||||
Function<void(const GUI::DropEvent&)> on_drop;
|
||||
|
||||
private:
|
||||
QSWidget();
|
||||
virtual void doubleclick_event(GUI::MouseEvent&) override;
|
||||
virtual void paint_event(GUI::PaintEvent&) override;
|
||||
virtual void resize_event(GUI::ResizeEvent&) override;
|
||||
virtual void mousedown_event(GUI::MouseEvent&) override;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue