author | cniehaus <cniehaus> | 2002-09-19 10:29:38 (UTC) |
---|---|---|
committer | cniehaus <cniehaus> | 2002-09-19 10:29:38 (UTC) |
commit | 7bf6b71e9d7eadc9311af6a839b3425297346c2c (patch) (unidiff) | |
tree | 2b9a08cfec6ace06c6c4321cfb4c6f654b809287 /noncore/apps/oxygen/dataTable.cpp | |
parent | acf131576d76536872a6999274db19a20cb76a4d (diff) | |
download | opie-7bf6b71e9d7eadc9311af6a839b3425297346c2c.zip opie-7bf6b71e9d7eadc9311af6a839b3425297346c2c.tar.gz opie-7bf6b71e9d7eadc9311af6a839b3425297346c2c.tar.bz2 |
* nothing is hardcoded anylonger (thanks Max for the .conf-hint)
* removing obsolete includes
* making the PSE-data-widget a QWidget instead of a QDialog
* removing one obsolete slot
* making oxyDW private
Diffstat (limited to 'noncore/apps/oxygen/dataTable.cpp') (more/less context) (ignore 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 | |||
@@ -12,7 +12,6 @@ | |||
12 | #include "dataTable.h" | 12 | #include "dataTable.h" |
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> |
18 | #include <qlayout.h> | 17 | #include <qlayout.h> |
@@ -40,30 +39,30 @@ OxydataWidget::OxydataWidget(QWidget *parent) : QWidget(parent) | |||
40 | 39 | ||
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 | } |
69 | 68 | ||