Diffstat (limited to 'noncore/apps/oxygen/dataTable.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/apps/oxygen/dataTable.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/noncore/apps/oxygen/dataTable.cpp b/noncore/apps/oxygen/dataTable.cpp index 6c6b9dc..bb786ea 100644 --- a/noncore/apps/oxygen/dataTable.cpp +++ b/noncore/apps/oxygen/dataTable.cpp | |||
@@ -3,31 +3,26 @@ | |||
3 | * This program is free software; you can redistribute it and/or modify * | 3 | * This program is free software; you can redistribute it and/or modify * |
4 | * it under the terms of the GNU General Public License as published by * | 4 | * it under the terms of the GNU General Public License as published by * |
5 | * the Free Software Foundation; either version 2 of the License, or * | 5 | * the Free Software Foundation; either version 2 of the License, or * |
6 | * ( at your option ) any later version. * | 6 | * ( at your option ) any later version. * |
7 | * * | 7 | * * |
8 | **************************************************************************/ | 8 | **************************************************************************/ |
9 | #include "oxygen.h" | ||
10 | 9 | ||
11 | #include "dataTable.h" | 10 | #include "dataTable.h" |
12 | #include <qtable.h> | ||
13 | 11 | ||
14 | OxydataTable::OxydataTable(int numRows, int numCols, QWidget *parent, | 12 | OxydataTable::OxydataTable(int numRows, int numCols, QWidget *parent, |
15 | const char *name) : QTable(numRows, numRows, parent, name) | 13 | const char *name) : QTable(numRows, numRows, parent, name) |
16 | { | 14 | { |
17 | } | 15 | } |
18 | 16 | ||
19 | void OxydataTable::paintCell( QPainter *p, int row, int col, const QRect &cr, bool selected) | 17 | void OxydataTable::paintCell( QPainter *p, int row, int col, const QRect &cr, bool selected) |
20 | { | 18 | { |
21 | if ( cr.width() == 0 || cr.height() == 0 ) | 19 | if ( cr.width() == 0 || cr.height() == 0 ) |
22 | return; | 20 | return; |
23 | selected = FALSE; | 21 | selected = FALSE; |
24 | 22 | ||
25 | int w = cr.width(); | ||
26 | int h = cr.height(); | ||
27 | |||
28 | QTableItem *itm = item( row, col ); | 23 | QTableItem *itm = item( row, col ); |
29 | QColorGroup colgrp = colorGroup(); | 24 | QColorGroup colgrp = colorGroup(); |
30 | if ( itm ) | 25 | if ( itm ) |
31 | { | 26 | { |
32 | if ( row%2 ) | 27 | if ( row%2 ) |
33 | colgrp.setColor( QColorGroup::Base, QColor( cyan ) ); | 28 | colgrp.setColor( QColorGroup::Base, QColor( cyan ) ); |