mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 13:38:11 +00:00
Ladybird: Remember window position and size on close
This commit is contained in:
parent
bf927344fb
commit
b7b02693b9
5 changed files with 63 additions and 1 deletions
|
@ -7,7 +7,9 @@
|
|||
#pragma once
|
||||
|
||||
#include <AK/DeprecatedString.h>
|
||||
#include <QPoint>
|
||||
#include <QSettings>
|
||||
#include <QSize>
|
||||
|
||||
namespace Ladybird {
|
||||
|
||||
|
@ -15,6 +17,15 @@ class Settings : public QObject {
|
|||
public:
|
||||
Settings();
|
||||
|
||||
Optional<QPoint> last_position();
|
||||
void set_last_position(QPoint const& last_position);
|
||||
|
||||
QSize last_size();
|
||||
void set_last_size(QSize const& last_size);
|
||||
|
||||
bool is_maximized();
|
||||
void set_is_maximized(bool is_maximized);
|
||||
|
||||
QString new_tab_page();
|
||||
void set_new_tab_page(QString const& page);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue