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
@@ -7,27 +7,51 @@
7 * This program is free software; you can redistribute it and/or modify * 7 * This program is free software; you can redistribute it and/or modify *
8 * it under the terms of the GNU General Public License as published by * 8 * it under the terms of the GNU General Public License as published by *
9 * the Free Software Foundation; either version 2 of the License, or * 9 * the Free Software Foundation; either version 2 of the License, or *
10 * (at your option) any later version. * 10 * (at your option) any later version. *
11 * * 11 * *
12 ***************************************************************************/ 12 ***************************************************************************/
13 13
14#include "page.h" 14#include "page.h"
15 15
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