Diffstat (limited to 'noncore/apps/oxygen/dataTable.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/oxygen/dataTable.cpp | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/noncore/apps/oxygen/dataTable.cpp b/noncore/apps/oxygen/dataTable.cpp index 70b5a6a..ff01417 100644 --- a/noncore/apps/oxygen/dataTable.cpp +++ b/noncore/apps/oxygen/dataTable.cpp @@ -1,3 +1,11 @@ /*************************************************************************** + application: : Oxygen + + begin : September 2002 + copyright : ( C ) 2002 by Carsten Niehaus + email : cniehaus@handhelds.org + **************************************************************************/ + +/*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * @@ -20,4 +28,5 @@ OxydataWidget::OxydataWidget(QWidget *parent) : QWidget(parent) { QGridLayout *qgrid = new QGridLayout( this, 2,1 ); + QHBox *hbox = new QHBox( this ); left = new QLabel( hbox ); @@ -25,6 +34,7 @@ OxydataWidget::OxydataWidget(QWidget *parent) : QWidget(parent) right = new QLabel( hbox ); - DataTable = new OxydataTable( 9,2, this ); - + right->setAlignment( AlignRight ); + middle->setAlignment( AlignHCenter ); + QFont bf; bf.setBold( true ); @@ -32,4 +42,7 @@ OxydataWidget::OxydataWidget(QWidget *parent) : QWidget(parent) middle->setFont( bf ); + DataTable = new OxydataTable( 9,2, this ); + DataTable->setColumnWidth ( 1 , 118 ); + DataTable->setColumnWidth ( 0 , 118 ); setTable(); @@ -82,4 +95,11 @@ OxydataTable::OxydataTable(int numRows, int numCols, QWidget *parent, } +int OxydataTable::alignment() const +{ + return AlignLeft | AlignVCenter; +}; + + + void OxydataTable::paintCell( QPainter *p, int row, int col, const QRect &cr, bool selected) { |