rewrote window saveing/serialization system

fixes #212
This commit is contained in:
fourtf
2018-04-06 23:31:34 +02:00
parent 2ab571fe54
commit 69d9557505
19 changed files with 291 additions and 316 deletions
+4 -7
View File
@@ -18,17 +18,14 @@ class NotebookTab : public BaseWidget
{
Q_OBJECT
const std::string uuid;
const std::string settingRoot;
public:
explicit NotebookTab(Notebook *_notebook, const std::string &_uuid);
explicit NotebookTab(Notebook *_notebook);
void updateSize();
SplitContainer *page;
QString getTitle() const;
const QString &getTitle() const;
void setTitle(const QString &newTitle);
bool isSelected() const;
void setSelected(bool value);
@@ -63,10 +60,10 @@ private:
Notebook *notebook;
pajlada::Settings::Setting<std::string> title;
QString title;
public:
pajlada::Settings::Setting<bool> useDefaultBehaviour;
bool useDefaultTitle = true;
private:
bool selected = false;