Diffstat (limited to 'noncore/graphics/drawpad/thumbnailview.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/graphics/drawpad/thumbnailview.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/noncore/graphics/drawpad/thumbnailview.h b/noncore/graphics/drawpad/thumbnailview.h index 88c3b27..2eac667 100644 --- a/noncore/graphics/drawpad/thumbnailview.h +++ b/noncore/graphics/drawpad/thumbnailview.h | |||
@@ -18,12 +18,14 @@ | |||
18 | #include <qwidget.h> | 18 | #include <qwidget.h> |
19 | 19 | ||
20 | class DrawPad; | 20 | class DrawPad; |
21 | class DrawPadCanvas; | 21 | class DrawPadCanvas; |
22 | class Page; | 22 | class Page; |
23 | 23 | ||
24 | #include <qdatetime.h> | ||
25 | |||
24 | class QToolButton; | 26 | class QToolButton; |
25 | 27 | ||
26 | class PageListBoxItem : public QListBoxItem | 28 | class PageListBoxItem : public QListBoxItem |
27 | { | 29 | { |
28 | public: | 30 | public: |
29 | PageListBoxItem(Page* page, QListBox* parent); | 31 | PageListBoxItem(Page* page, QListBox* parent); |
@@ -33,19 +35,21 @@ public: | |||
33 | int width(const QListBox* lb) const; | 35 | int width(const QListBox* lb) const; |
34 | void paint(QPainter *painter); | 36 | void paint(QPainter *painter); |
35 | 37 | ||
36 | Page* page() const; | 38 | Page* page() const; |
37 | 39 | ||
38 | private: | 40 | private: |
41 | QString dateTimeString(QDateTime dateTime); | ||
42 | |||
39 | Page* m_pPage; | 43 | Page* m_pPage; |
40 | 44 | ||
41 | QPixmap m_thumbnail; | 45 | QPixmap m_thumbnail; |
42 | 46 | ||
43 | QString m_titleText; | 47 | QString m_titleText; |
44 | QString m_dimensionText; | 48 | QString m_dimensionText; |
45 | QString m_dateTimeText; | 49 | QString m_dateText; |
46 | 50 | ||
47 | QColor m_alternateColor; | 51 | QColor m_alternateColor; |
48 | }; | 52 | }; |
49 | 53 | ||
50 | class PageListBox : public QListBox | 54 | class PageListBox : public QListBox |
51 | { | 55 | { |