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

QuickShow: Switch to full screen mode on double click

More respect to user behavior on image viewers :)
This commit is contained in:
Hüseyin ASLITÜRK 2020-06-16 10:47:47 +03:00 committed by Andreas Kling
parent 016fc9c133
commit bf3d98012a
3 changed files with 12 additions and 2 deletions

View file

@ -160,6 +160,11 @@ void QSWidget::resize_event(GUI::ResizeEvent& event)
GUI::Widget::resize_event(event);
}
void QSWidget::doubleclick_event(GUI::MouseEvent&)
{
on_doubleclick();
}
void QSWidget::paint_event(GUI::PaintEvent& event)
{
Frame::paint_event(event);