Diffstat (limited to 'noncore/graphics/drawpad/page.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/graphics/drawpad/page.cpp | 24 |
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 | ||
16 | Page::Page() | 16 | Page::Page() |
17 | : QPixmap() | 17 | : QPixmap() |
18 | { | 18 | { |
19 | m_lastModified = QDateTime::currentDateTime(); | ||
19 | } | 20 | } |
20 | 21 | ||
21 | Page::Page(int w, int h) | 22 | Page::Page(int w, int h) |
22 | : QPixmap(w, h) | 23 | : QPixmap(w, h) |
23 | { | 24 | { |
25 | m_lastModified = QDateTime::currentDateTime(); | ||
24 | } | 26 | } |
25 | 27 | ||
26 | Page::Page(const QSize& size) | 28 | Page::Page(const QSize& size) |
27 | : QPixmap(size) | 29 | : QPixmap(size) |
28 | { | 30 | { |
31 | m_lastModified = QDateTime::currentDateTime(); | ||
29 | } | 32 | } |
30 | 33 | ||
31 | Page::~Page() | 34 | Page::~Page() |
32 | { | 35 | { |
33 | } | 36 | } |
37 | |||
38 | QString Page::title() const | ||
39 | { | ||
40 | return m_title; | ||
41 | } | ||
42 | |||
43 | QDateTime Page::lastModified() const | ||
44 | { | ||
45 | return m_lastModified; | ||
46 | } | ||
47 | |||
48 | void Page::setTitle(QString title) | ||
49 | { | ||
50 | m_title = title; | ||
51 | } | ||
52 | |||
53 | void Page::setLastModified(QDateTime lastModified) | ||
54 | { | ||
55 | m_lastModified = lastModified; | ||
56 | } | ||
57 | |||