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

QuickShow: Add Delete action

Delete current file from file system.
This commit is contained in:
Hüseyin ASLITÜRK 2020-04-12 16:40:05 +03:00 committed by Andreas Kling
parent f88ceb872a
commit 6c1af174a1
3 changed files with 62 additions and 11 deletions

View file

@ -42,6 +42,15 @@ QSWidget::~QSWidget()
{
}
void QSWidget::clear()
{
m_bitmap = nullptr;
m_path = {};
on_scale_change(100);
update();
}
void QSWidget::flip(Gfx::Orientation orientation)
{
m_bitmap = m_bitmap->flipped(orientation);