author | cniehaus <cniehaus> | 2002-09-20 19:24:32 (UTC) |
---|---|---|
committer | cniehaus <cniehaus> | 2002-09-20 19:24:32 (UTC) |
commit | 681e6e75efaa5577d376d0bb191afdf323cb4e75 (patch) (side-by-side diff) | |
tree | d35ee106655e5b288e73491a2701ddc0141f4fde /noncore/apps/oxygen/dataTable.cpp | |
parent | c958d7cb5069e06b5cf9e9df6e78bcb644ce26a2 (diff) | |
download | opie-681e6e75efaa5577d376d0bb191afdf323cb4e75.zip opie-681e6e75efaa5577d376d0bb191afdf323cb4e75.tar.gz opie-681e6e75efaa5577d376d0bb191afdf323cb4e75.tar.bz2 |
before starting to hack QTableItem I wanted to have a safe point in cvs
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,2 +1,10 @@ /*************************************************************************** + application: : Oxygen + + begin : September 2002 + copyright : ( C ) 2002 by Carsten Niehaus + email : cniehaus@handhelds.org + **************************************************************************/ + +/*************************************************************************** * * @@ -21,2 +29,3 @@ OxydataWidget::OxydataWidget(QWidget *parent) : QWidget(parent) QGridLayout *qgrid = new QGridLayout( this, 2,1 ); + QHBox *hbox = new QHBox( this ); @@ -26,4 +35,5 @@ OxydataWidget::OxydataWidget(QWidget *parent) : QWidget(parent) - DataTable = new OxydataTable( 9,2, this ); - + right->setAlignment( AlignRight ); + middle->setAlignment( AlignHCenter ); + QFont bf; @@ -33,2 +43,5 @@ OxydataWidget::OxydataWidget(QWidget *parent) : QWidget(parent) + DataTable = new OxydataTable( 9,2, this ); + DataTable->setColumnWidth ( 1 , 118 ); + DataTable->setColumnWidth ( 0 , 118 ); setTable(); @@ -83,2 +96,9 @@ 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) |