author | cniehaus <cniehaus> | 2002-09-19 10:29:38 (UTC) |
---|---|---|
committer | cniehaus <cniehaus> | 2002-09-19 10:29:38 (UTC) |
commit | 7bf6b71e9d7eadc9311af6a839b3425297346c2c (patch) (side-by-side diff) | |
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 @@ -14,3 +14,2 @@ #include <qhbox.h> -#include <qvbox.h> #include <qlabel.h> @@ -42,26 +41,26 @@ void OxydataWidget::setElement( int el ) { - Config test( "/home/opie/Settings/oxygendata", Config::File ); - test.setGroup( QString::number( el+1 )); + Config configobj( "oxygendata" ); + configobj.setGroup( QString::number( el+1 )); - left->setText( test.readEntry( "Symbol" ) ); - middle->setText( test.readEntry( "Name" ) ); + left->setText( configobj.readEntry( "Symbol" ) ); + middle->setText( configobj.readEntry( "Name" ) ); right->setText( QString::number( el+1 ) ); - QString weight = test.readEntry( "Weight" ); + QString weight = configobj.readEntry( "Weight" ); DataTable->setText( 0,1,weight ); - QString block = test.readEntry( "Block" ); + QString block = configobj.readEntry( "Block" ); DataTable->setText( 1,1,block ); - QString grp = test.readEntry( "Group" ); + QString grp = configobj.readEntry( "Group" ); DataTable->setText( 2,1,grp ); - QString en = test.readEntry( "EN" ); + QString en = configobj.readEntry( "EN" ); DataTable->setText( 3,1,en ); - QString ar = test.readEntry( "AR" ); + QString ar = configobj.readEntry( "AR" ); DataTable->setText( 4,1,ar ) ; - QString ion = test.readEntry( "IE" ); + QString ion = configobj.readEntry( "IE" ); DataTable->setText( 5,1,ion ); - QString dens = test.readEntry( "Density" ); + QString dens = configobj.readEntry( "Density" ); DataTable->setText( 6,1,dens ); - QString bp = test.readEntry( "BP" ); + QString bp = configobj.readEntry( "BP" ); DataTable->setText( 7,1,bp ); - QString mp = test.readEntry( "MP" ); + QString mp = configobj.readEntry( "MP" ); DataTable->setText( 8,1,mp ); |