summaryrefslogtreecommitdiff
path: root/noncore/apps/oxygen/datawidgetui.cpp
Unidiff
Diffstat (limited to 'noncore/apps/oxygen/datawidgetui.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/oxygen/datawidgetui.cpp16
1 files changed, 5 insertions, 11 deletions
diff --git a/noncore/apps/oxygen/datawidgetui.cpp b/noncore/apps/oxygen/datawidgetui.cpp
index fa3f40d..8188515 100644
--- a/noncore/apps/oxygen/datawidgetui.cpp
+++ b/noncore/apps/oxygen/datawidgetui.cpp
@@ -6,18 +6,17 @@
6 * ( at your option ) any later version. * 6 * ( at your option ) any later version. *
7 * * 7 * *
8 **************************************************************************/ 8 **************************************************************************/
9#include "oxygen.h" 9
10#include "datawidgetui.h" 10#include "datawidgetui.h"
11 11
12#include <qpe/config.h> 12#include <qpe/config.h>
13#include <qstring.h> 13#include <qstring.h>
14#include <qcombobox.h> 14#include <qcombobox.h>
15#include <qlayout.h> 15#include <qlayout.h>
16#include <qtable.h>
17#include <qhbox.h> 16#include <qhbox.h>
18#include <qlabel.h> 17#include <qlabel.h>
19 18
20dataWidgetUI::dataWidgetUI() : QDialog() 19dataWidgetUI::dataWidgetUI() : QWidget()
21{ 20{
22 this->setCaption("Chemical Data"); 21 this->setCaption("Chemical Data");
23 22
@@ -30,19 +29,14 @@ dataWidgetUI::dataWidgetUI() : QDialog()
30 qgrid->addWidget( oxyDW , 1,0 ); 29 qgrid->addWidget( oxyDW , 1,0 );
31 30
32 connect ( dataCombo, SIGNAL( activated(int) ), oxyDW, SLOT( setElement(int) ) ); 31 connect ( dataCombo, SIGNAL( activated(int) ), oxyDW, SLOT( setElement(int) ) );
33 Config test( "/home/opie/Settings/oxygendata", Config::File ); 32 Config configobj( "oxygendata" );
34 33
35 //read in all names of the 118 elements 34 //read in all names of the 118 elements
36 for ( int i = 1 ; i < 119 ; i++ ) 35 for ( int i = 1 ; i < 119 ; i++ )
37 { 36 {
38 test.setGroup( QString::number( i ) ); 37 configobj.setGroup( QString::number( i ) );
39 QString foo = test.readEntry( "Name" ); 38 QString foo = configobj.readEntry( "Name" );
40 dataCombo->insertItem( foo ); 39 dataCombo->insertItem( foo );
41 } 40 }
42} 41}
43 42
44
45
46void dataWidgetUI::slotShowData(int number){
47 oxyDW->setElement( 6 );
48}