author | cniehaus <cniehaus> | 2002-09-21 19:44:05 (UTC) |
---|---|---|
committer | cniehaus <cniehaus> | 2002-09-21 19:44:05 (UTC) |
commit | 6cb57ded60dbefea5c81de4e50ec64fe63dee379 (patch) (side-by-side diff) | |
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 @@ -4,48 +4,48 @@ 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 * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * ( at your option ) any later version. * * * **************************************************************************/ #include "datawidgetui.h" #include "dataTable.h" #include <qpe/config.h> #include <qstring.h> #include <qcombobox.h> #include <qlayout.h> #include <qhbox.h> #include <qlabel.h> dataWidgetUI::dataWidgetUI() : QWidget() { this->setCaption( tr( "Chemical Data" )); QGridLayout *qgrid = new QGridLayout( this, 2,1 ); dataCombo = new QComboBox( this ); //read in all names of the 118 elements - Config configobj( "oxygendata" ); + Config configobj( QPEApplication::qpeDir() +"share/oxygen/oxygendata", Config::File ); for ( int i = 1 ; i < 119 ; i++ ) { configobj.setGroup( QString::number( i ) ); QString foo = configobj.readEntry( "Name" ); dataCombo->insertItem( foo ); } OxydataWidget *oxyDW = new OxydataWidget(this); connect ( dataCombo, SIGNAL( activated(int) ), oxyDW, SLOT( setElement(int) ) ); oxyDW->setElement( 0 ); qgrid->addWidget( dataCombo, 0,0); qgrid->addWidget( oxyDW , 1,0 ); } |