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/datawidgetui.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/datawidgetui.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/oxygen/datawidgetui.cpp | 25 |
1 files changed, 17 insertions, 8 deletions
diff --git a/noncore/apps/oxygen/datawidgetui.cpp b/noncore/apps/oxygen/datawidgetui.cpp index 2e99c0b..4dab109 100644 --- a/noncore/apps/oxygen/datawidgetui.cpp +++ b/noncore/apps/oxygen/datawidgetui.cpp @@ -1,2 +1,10 @@ /*************************************************************************** + application: : Oxygen + + begin : September 2002 + copyright : ( C ) 2002 by Carsten Niehaus + email : cniehaus@handhelds.org + **************************************************************************/ + +/*************************************************************************** * * @@ -10,2 +18,3 @@ #include "datawidgetui.h" +#include "dataTable.h" @@ -21,3 +30,2 @@ dataWidgetUI::dataWidgetUI() : QWidget() this->setCaption( tr( "Chemical Data" )); - QGridLayout *qgrid = new QGridLayout( this, 2,1 ); @@ -25,11 +33,5 @@ dataWidgetUI::dataWidgetUI() : QWidget() dataCombo = new QComboBox( this ); - OxydataWidget *oxyDW = new OxydataWidget(this); - oxyDW->setElement( 1 ); - qgrid->addWidget( dataCombo, 0,0); - qgrid->addWidget( oxyDW , 1,0 ); - - connect ( dataCombo, SIGNAL( activated(int) ), oxyDW, SLOT( setElement(int) ) ); - Config configobj( "oxygendata" ); //read in all names of the 118 elements + Config configobj( "oxygendata" ); for ( int i = 1 ; i < 119 ; i++ ) @@ -40,2 +42,9 @@ dataWidgetUI::dataWidgetUI() : QWidget() } + + OxydataWidget *oxyDW = new OxydataWidget(this); + connect ( dataCombo, SIGNAL( activated(int) ), oxyDW, SLOT( setElement(int) ) ); + oxyDW->setElement( 1 ); + + qgrid->addWidget( dataCombo, 0,0); + qgrid->addWidget( oxyDW , 1,0 ); } |