author | leseb <leseb> | 2002-06-10 20:24:06 (UTC) |
---|---|---|
committer | leseb <leseb> | 2002-06-10 20:24:06 (UTC) |
commit | 743296b2abaa9278ce7b83ebde55fbf2c198e218 (patch) (side-by-side diff) | |
tree | 22776ec0e2921fc36a61c9522e8a105e7a3eba13 /noncore/graphics/drawpad/thumbnailview.h | |
parent | 4e125ad47285d36a4be02e8b20b6fa36e387c1bc (diff) | |
download | opie-743296b2abaa9278ce7b83ebde55fbf2c198e218.zip opie-743296b2abaa9278ce7b83ebde55fbf2c198e218.tar.gz opie-743296b2abaa9278ce7b83ebde55fbf2c198e218.tar.bz2 |
Thumbnail view ready for page attributes
Diffstat (limited to 'noncore/graphics/drawpad/thumbnailview.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/graphics/drawpad/thumbnailview.h | 31 |
1 files changed, 20 insertions, 11 deletions
diff --git a/noncore/graphics/drawpad/thumbnailview.h b/noncore/graphics/drawpad/thumbnailview.h index eb748fa..88c3b27 100644 --- a/noncore/graphics/drawpad/thumbnailview.h +++ b/noncore/graphics/drawpad/thumbnailview.h @@ -16,4 +16,4 @@ +#include <qlistbox.h> #include <qwidget.h> -#include <qlistview.h> @@ -25,7 +25,11 @@ class QToolButton; -class PageListViewItem : public QListViewItem +class PageListBoxItem : public QListBoxItem { public: - PageListViewItem(Page* page, QListView* parent); - ~PageListViewItem(); + PageListBoxItem(Page* page, QListBox* parent); + ~PageListBoxItem(); + + int height(const QListBox* lb) const; + int width(const QListBox* lb) const; + void paint(QPainter *painter); @@ -35,9 +39,17 @@ private: Page* m_pPage; + + QPixmap m_thumbnail; + + QString m_titleText; + QString m_dimensionText; + QString m_dateTimeText; + + QColor m_alternateColor; }; -class PageListView : public QListView +class PageListBox : public QListBox { public: - PageListView(DrawPadCanvas* drawPadCanvas, QWidget* parent = 0, const char* name = 0); - ~PageListView(); + PageListBox(DrawPadCanvas* drawPadCanvas, QWidget* parent = 0, const char* name = 0); + ~PageListBox(); @@ -48,5 +60,2 @@ public: -protected: - void resizeEvent(QResizeEvent* e); - private: @@ -85,3 +94,3 @@ private: - PageListView* m_pPageListView; + PageListBox* m_pPageListBox; }; |