Diffstat (limited to 'noncore/graphics/drawpad/thumbnailview.h') (more/less context) (show 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 | |||
@@ -12,46 +12,50 @@ | |||
12 | ***************************************************************************/ | 12 | ***************************************************************************/ |
13 | 13 | ||
14 | #ifndef THUMBNAILVIEW_H | 14 | #ifndef THUMBNAILVIEW_H |
15 | #define THUMBNAILVIEW_H | 15 | #define THUMBNAILVIEW_H |
16 | 16 | ||
17 | #include <qlistbox.h> | 17 | #include <qlistbox.h> |
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); |
30 | ~PageListBoxItem(); | 32 | ~PageListBoxItem(); |
31 | 33 | ||
32 | int height(const QListBox* lb) const; | 34 | int height(const QListBox* lb) const; |
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 | { |
52 | public: | 56 | public: |
53 | PageListBox(DrawPadCanvas* drawPadCanvas, QWidget* parent = 0, const char* name = 0); | 57 | PageListBox(DrawPadCanvas* drawPadCanvas, QWidget* parent = 0, const char* name = 0); |
54 | ~PageListBox(); | 58 | ~PageListBox(); |
55 | 59 | ||
56 | void updateView(); | 60 | void updateView(); |
57 | 61 | ||