author | cniehaus <cniehaus> | 2002-09-21 19:44:05 (UTC) |
---|---|---|
committer | cniehaus <cniehaus> | 2002-09-21 19:44:05 (UTC) |
commit | 6cb57ded60dbefea5c81de4e50ec64fe63dee379 (patch) (unidiff) | |
tree | 8dbdd4420a0d61068804ceb03d5f9d864e818453 | |
parent | 3838d736783c5d33197cb8d99f611ab214460bd9 (diff) | |
download | opie-6cb57ded60dbefea5c81de4e50ec64fe63dee379.zip opie-6cb57ded60dbefea5c81de4e50ec64fe63dee379.tar.gz opie-6cb57ded60dbefea5c81de4e50ec64fe63dee379.tar.bz2 |
make Max happy ;)
-rw-r--r-- | noncore/apps/oxygen/datawidgetui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/apps/oxygen/datawidgetui.cpp b/noncore/apps/oxygen/datawidgetui.cpp index 422b6f8..60cefd5 100644 --- a/noncore/apps/oxygen/datawidgetui.cpp +++ b/noncore/apps/oxygen/datawidgetui.cpp | |||
@@ -12,40 +12,40 @@ | |||
12 | * it under the terms of the GNU General Public License as published by * | 12 | * it under the terms of the GNU General Public License as published by * |
13 | * the Free Software Foundation; either version 2 of the License, or * | 13 | * the Free Software Foundation; either version 2 of the License, or * |
14 | * ( at your option ) any later version. * | 14 | * ( at your option ) any later version. * |
15 | * * | 15 | * * |
16 | **************************************************************************/ | 16 | **************************************************************************/ |
17 | 17 | ||
18 | #include "datawidgetui.h" | 18 | #include "datawidgetui.h" |
19 | #include "dataTable.h" | 19 | #include "dataTable.h" |
20 | 20 | ||
21 | #include <qpe/config.h> | 21 | #include <qpe/config.h> |
22 | #include <qstring.h> | 22 | #include <qstring.h> |
23 | #include <qcombobox.h> | 23 | #include <qcombobox.h> |
24 | #include <qlayout.h> | 24 | #include <qlayout.h> |
25 | #include <qhbox.h> | 25 | #include <qhbox.h> |
26 | #include <qlabel.h> | 26 | #include <qlabel.h> |
27 | 27 | ||
28 | dataWidgetUI::dataWidgetUI() : QWidget() | 28 | dataWidgetUI::dataWidgetUI() : QWidget() |
29 | { | 29 | { |
30 | this->setCaption( tr( "Chemical Data" )); | 30 | this->setCaption( tr( "Chemical Data" )); |
31 | QGridLayout *qgrid = new QGridLayout( this, 2,1 ); | 31 | QGridLayout *qgrid = new QGridLayout( this, 2,1 ); |
32 | 32 | ||
33 | dataCombo = new QComboBox( this ); | 33 | dataCombo = new QComboBox( this ); |
34 | 34 | ||
35 | //read in all names of the 118 elements | 35 | //read in all names of the 118 elements |
36 | Config configobj( "oxygendata" ); | 36 | Config configobj( QPEApplication::qpeDir() +"share/oxygen/oxygendata", Config::File ); |
37 | for ( int i = 1 ; i < 119 ; i++ ) | 37 | for ( int i = 1 ; i < 119 ; i++ ) |
38 | { | 38 | { |
39 | configobj.setGroup( QString::number( i ) ); | 39 | configobj.setGroup( QString::number( i ) ); |
40 | QString foo = configobj.readEntry( "Name" ); | 40 | QString foo = configobj.readEntry( "Name" ); |
41 | dataCombo->insertItem( foo ); | 41 | dataCombo->insertItem( foo ); |
42 | } | 42 | } |
43 | 43 | ||
44 | OxydataWidget *oxyDW = new OxydataWidget(this); | 44 | OxydataWidget *oxyDW = new OxydataWidget(this); |
45 | connect ( dataCombo, SIGNAL( activated(int) ), oxyDW, SLOT( setElement(int) ) ); | 45 | connect ( dataCombo, SIGNAL( activated(int) ), oxyDW, SLOT( setElement(int) ) ); |
46 | oxyDW->setElement( 0 ); | 46 | oxyDW->setElement( 0 ); |
47 | 47 | ||
48 | qgrid->addWidget( dataCombo, 0,0); | 48 | qgrid->addWidget( dataCombo, 0,0); |
49 | qgrid->addWidget( oxyDW , 1,0 ); | 49 | qgrid->addWidget( oxyDW , 1,0 ); |
50 | } | 50 | } |
51 | 51 | ||