Diffstat (limited to 'noncore/apps/oxygen/dataTable.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/apps/oxygen/dataTable.cpp | 27 |
1 files changed, 13 insertions, 14 deletions
diff --git a/noncore/apps/oxygen/dataTable.cpp b/noncore/apps/oxygen/dataTable.cpp index 642a8be..5c7b35c 100644 --- a/noncore/apps/oxygen/dataTable.cpp +++ b/noncore/apps/oxygen/dataTable.cpp | |||
@@ -13,5 +13,4 @@ | |||
13 | #include <qwidget.h> | 13 | #include <qwidget.h> |
14 | #include <qhbox.h> | 14 | #include <qhbox.h> |
15 | #include <qvbox.h> | ||
16 | #include <qlabel.h> | 15 | #include <qlabel.h> |
17 | #include <qfont.h> | 16 | #include <qfont.h> |
@@ -41,28 +40,28 @@ OxydataWidget::OxydataWidget(QWidget *parent) : QWidget(parent) | |||
41 | void OxydataWidget::setElement( int el ) | 40 | void OxydataWidget::setElement( int el ) |
42 | { | 41 | { |
43 | Config test( "/home/opie/Settings/oxygendata", Config::File ); | 42 | Config configobj( "oxygendata" ); |
44 | test.setGroup( QString::number( el+1 )); | 43 | configobj.setGroup( QString::number( el+1 )); |
45 | 44 | ||
46 | left->setText( test.readEntry( "Symbol" ) ); | 45 | left->setText( configobj.readEntry( "Symbol" ) ); |
47 | middle->setText( test.readEntry( "Name" ) ); | 46 | middle->setText( configobj.readEntry( "Name" ) ); |
48 | right->setText( QString::number( el+1 ) ); | 47 | right->setText( QString::number( el+1 ) ); |
49 | 48 | ||
50 | QString weight = test.readEntry( "Weight" ); | 49 | QString weight = configobj.readEntry( "Weight" ); |
51 | DataTable->setText( 0,1,weight ); | 50 | DataTable->setText( 0,1,weight ); |
52 | QString block = test.readEntry( "Block" ); | 51 | QString block = configobj.readEntry( "Block" ); |
53 | DataTable->setText( 1,1,block ); | 52 | DataTable->setText( 1,1,block ); |
54 | QString grp = test.readEntry( "Group" ); | 53 | QString grp = configobj.readEntry( "Group" ); |
55 | DataTable->setText( 2,1,grp ); | 54 | DataTable->setText( 2,1,grp ); |
56 | QString en = test.readEntry( "EN" ); | 55 | QString en = configobj.readEntry( "EN" ); |
57 | DataTable->setText( 3,1,en ); | 56 | DataTable->setText( 3,1,en ); |
58 | QString ar = test.readEntry( "AR" ); | 57 | QString ar = configobj.readEntry( "AR" ); |
59 | DataTable->setText( 4,1,ar ) ; | 58 | DataTable->setText( 4,1,ar ) ; |
60 | QString ion = test.readEntry( "IE" ); | 59 | QString ion = configobj.readEntry( "IE" ); |
61 | DataTable->setText( 5,1,ion ); | 60 | DataTable->setText( 5,1,ion ); |
62 | QString dens = test.readEntry( "Density" ); | 61 | QString dens = configobj.readEntry( "Density" ); |
63 | DataTable->setText( 6,1,dens ); | 62 | DataTable->setText( 6,1,dens ); |
64 | QString bp = test.readEntry( "BP" ); | 63 | QString bp = configobj.readEntry( "BP" ); |
65 | DataTable->setText( 7,1,bp ); | 64 | DataTable->setText( 7,1,bp ); |
66 | QString mp = test.readEntry( "MP" ); | 65 | QString mp = configobj.readEntry( "MP" ); |
67 | DataTable->setText( 8,1,mp ); | 66 | DataTable->setText( 8,1,mp ); |
68 | } | 67 | } |