summaryrefslogtreecommitdiff
path: root/noncore/apps/oxygen/dataTable.h
Side-by-side diff
Diffstat (limited to 'noncore/apps/oxygen/dataTable.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/oxygen/dataTable.h23
1 files changed, 13 insertions, 10 deletions
diff --git a/noncore/apps/oxygen/dataTable.h b/noncore/apps/oxygen/dataTable.h
index 00063d4..a4a3b18 100644
--- a/noncore/apps/oxygen/dataTable.h
+++ b/noncore/apps/oxygen/dataTable.h
@@ -16,7 +16,6 @@
class QLabel;
class OxydataTable;
-class QTableItem;
/*
* A OxydataWidget shows all known data of an element. It can
@@ -60,9 +59,6 @@ class OxydataTable : public QTable
OxydataTable( int numRows, int numCols,
QWidget *parent = 0, const char *name = 0 );
- virtual int alignment() const;
-// virtual QTableItem *item( int row, int col ) const;
-
protected:
/*
* This method is reimplemented form QTable. It implements the colourisation
@@ -70,12 +66,19 @@ class OxydataTable : public QTable
*/
virtual void paintCell( QPainter *p, int row, int col, const QRect &cr, bool selected );
};
+/*
+ * A OxydataQTI is a QTableItem which has the ability to set an alignment.
+ * In Oxygen we only have two colums so I can use the simple col()%2.
+ *
+ * Author: Robert Gogolok <robertgogolok@gmx.de>
+ */
-//X class OxydataQTI : QTableItem
-//X {
-//X Q_OBJECT
-//X
-//X public:
-//X OxydataQTI(
+class OxydataQTI : public QTableItem
+{
+ public:
+ OxydataQTI(QTable * table, EditType et, const QString & text );
+
+ virtual int alignment() const;
+};
#endif