author | cniehaus <cniehaus> | 2002-09-17 11:26:33 (UTC) |
---|---|---|
committer | cniehaus <cniehaus> | 2002-09-17 11:26:33 (UTC) |
commit | bb15715567b88dd01f074092c1c4c3b7e0702693 (patch) (unidiff) | |
tree | 01bbe60177230f5e9b5b482c4e436e454b5c933e /noncore/apps/oxygen/dataTable.h | |
parent | 92b88813ad8d6352fbf74964fc56dfc1a2aada8c (diff) | |
download | opie-bb15715567b88dd01f074092c1c4c3b7e0702693.zip opie-bb15715567b88dd01f074092c1c4c3b7e0702693.tar.gz opie-bb15715567b88dd01f074092c1c4c3b7e0702693.tar.bz2 |
first attempt of a reimplementation of paintCell
Diffstat (limited to 'noncore/apps/oxygen/dataTable.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/oxygen/dataTable.h | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/noncore/apps/oxygen/dataTable.h b/noncore/apps/oxygen/dataTable.h index 7fd9517..5adbcc2 100644 --- a/noncore/apps/oxygen/dataTable.h +++ b/noncore/apps/oxygen/dataTable.h | |||
@@ -5,18 +5,30 @@ | |||
5 | * it under the terms of the GNU General Public License as published by * | 5 | * it under the terms of the GNU General Public License as published by * |
6 | * the Free Software Foundation; either version 2 of the License, or * | 6 | * the Free Software Foundation; either version 2 of the License, or * |
7 | * ( at your option ) any later version. * | 7 | * ( at your option ) any later version. * |
8 | * * | 8 | * * |
9 | **************************************************************************/ | 9 | **************************************************************************/ |
10 | 10 | ||
11 | #ifndef _DATATABLE_H | ||
12 | #define _DATATABLE_H | ||
13 | |||
14 | |||
11 | #include <qtable.h> | 15 | #include <qtable.h> |
12 | 16 | ||
13 | class dataTable : public QTable | 17 | class OxydataTable : public QTable |
14 | { | 18 | { |
15 | Q_OBJECT | 19 | Q_OBJECT |
16 | 20 | ||
17 | public: | 21 | public: |
18 | dataTable(); | 22 | OxydataTable(); |
23 | OxydataTable( int numRows, int numCols, | ||
24 | QWidget *parent = 0, const char *name = 0 ); | ||
19 | 25 | ||
20 | protected: | 26 | protected: |
27 | /* | ||
28 | * This method is reimplemented form QTable. It implements the colourisation | ||
29 | * of every second row. | ||
30 | */ | ||
21 | virtual void paintCell( QPainter *p, int row, int col, const QRect &cr, bool selected ); | 31 | virtual void paintCell( QPainter *p, int row, int col, const QRect &cr, bool selected ); |
22 | }; | 32 | }; |
33 | |||
34 | #endif | ||