summaryrefslogtreecommitdiff
path: root/noncore/graphics/drawpad/page.cpp
Unidiff
Diffstat (limited to 'noncore/graphics/drawpad/page.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/graphics/drawpad/page.cpp24
1 files changed, 24 insertions, 0 deletions
diff --git a/noncore/graphics/drawpad/page.cpp b/noncore/graphics/drawpad/page.cpp
index 35ec0e0..7034a20 100644
--- a/noncore/graphics/drawpad/page.cpp
+++ b/noncore/graphics/drawpad/page.cpp
@@ -16,18 +16,42 @@
16Page::Page() 16Page::Page()
17 : QPixmap() 17 : QPixmap()
18{ 18{
19 m_lastModified = QDateTime::currentDateTime();
19} 20}
20 21
21Page::Page(int w, int h) 22Page::Page(int w, int h)
22 : QPixmap(w, h) 23 : QPixmap(w, h)
23{ 24{
25 m_lastModified = QDateTime::currentDateTime();
24} 26}
25 27
26Page::Page(const QSize& size) 28Page::Page(const QSize& size)
27 : QPixmap(size) 29 : QPixmap(size)
28{ 30{
31 m_lastModified = QDateTime::currentDateTime();
29} 32}
30 33
31Page::~Page() 34Page::~Page()
32{ 35{
33} 36}
37
38QString Page::title() const
39{
40 return m_title;
41}
42
43QDateTime Page::lastModified() const
44{
45 return m_lastModified;
46}
47
48void Page::setTitle(QString title)
49{
50 m_title = title;
51}
52
53void Page::setLastModified(QDateTime lastModified)
54{
55 m_lastModified = lastModified;
56}
57