src/documentmanager.cpp

Thu, 03 Oct 2019 23:44:28 +0300

author
Teemu Piippo <teemu@hecknology.net>
date
Thu, 03 Oct 2019 23:44:28 +0300
changeset 6
73e448b2943d
parent 5
593a658cba8e
child 8
44679e468ba9
permissions
-rw-r--r--

language support

3
55a55a9ec2c2 Added lots of code
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
1 #include "documentmanager.h"
55a55a9ec2c2 Added lots of code
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
2
5
Teemu Piippo <teemu@hecknology.net>
parents: 3
diff changeset
3 DocumentManager::DocumentManager(QObject* parent) :
Teemu Piippo <teemu@hecknology.net>
parents: 3
diff changeset
4 QObject{parent}
Teemu Piippo <teemu@hecknology.net>
parents: 3
diff changeset
5 {
Teemu Piippo <teemu@hecknology.net>
parents: 3
diff changeset
6 }
Teemu Piippo <teemu@hecknology.net>
parents: 3
diff changeset
7
3
55a55a9ec2c2 Added lots of code
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
8 Model* DocumentManager::newModel()
55a55a9ec2c2 Added lots of code
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
9 {
55a55a9ec2c2 Added lots of code
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
10 openModels.emplace_back();
55a55a9ec2c2 Added lots of code
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
11 return openModels.back().get();
55a55a9ec2c2 Added lots of code
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
12 }

mercurial