-rw-r--r-- | noncore/apps/oxygen/dataTable.cpp | 27 |
1 files changed, 9 insertions, 18 deletions
diff --git a/noncore/apps/oxygen/dataTable.cpp b/noncore/apps/oxygen/dataTable.cpp index 5c7b35c..7516b06 100644 --- a/noncore/apps/oxygen/dataTable.cpp +++ b/noncore/apps/oxygen/dataTable.cpp | |||
@@ -37,42 +37,33 @@ OxydataWidget::OxydataWidget(QWidget *parent) : QWidget(parent) | |||
37 | qgrid->addWidget( DataTable,1,0 ); | 37 | qgrid->addWidget( DataTable,1,0 ); |
38 | } | 38 | } |
39 | 39 | ||
40 | void OxydataWidget::setElement( int el ) | 40 | void OxydataWidget::setElement( int el ) |
41 | { | 41 | { |
42 | Config configobj( "oxygendata" ); | 42 | Config configobj( "oxygendata" ); |
43 | configobj.setGroup( QString::number( el+1 )); | 43 | configobj.setGroup( QString::number( el+1 )); |
44 | 44 | ||
45 | left->setText( configobj.readEntry( "Symbol" ) ); | 45 | left->setText( configobj.readEntry( "Symbol" ) ); |
46 | middle->setText( configobj.readEntry( "Name" ) ); | 46 | middle->setText( configobj.readEntry( "Name" ) ); |
47 | right->setText( QString::number( el+1 ) ); | 47 | right->setText( QString::number( el+1 ) ); |
48 | 48 | ||
49 | QString weight = configobj.readEntry( "Weight" ); | 49 | DataTable->setText( 0,1,configobj.readEntry( "Weight" ) ); |
50 | DataTable->setText( 0,1,weight ); | 50 | DataTable->setText( 1,1,configobj.readEntry( "Block" ) ); |
51 | QString block = configobj.readEntry( "Block" ); | 51 | DataTable->setText( 2,1,configobj.readEntry( "Group" ) ); |
52 | DataTable->setText( 1,1,block ); | 52 | DataTable->setText( 3,1,configobj.readEntry( "EN" ) ); |
53 | QString grp = configobj.readEntry( "Group" ); | 53 | DataTable->setText( 4,1,configobj.readEntry( "AR" ) ) ; |
54 | DataTable->setText( 2,1,grp ); | 54 | DataTable->setText( 5,1,configobj.readEntry( "IE" ) ); |
55 | QString en = configobj.readEntry( "EN" ); | 55 | DataTable->setText( 6,1,configobj.readEntry( "Density" ) ); |
56 | DataTable->setText( 3,1,en ); | 56 | DataTable->setText( 7,1,configobj.readEntry( "BP" ) ); |
57 | QString ar = configobj.readEntry( "AR" ); | 57 | DataTable->setText( 8,1,configobj.readEntry( "MP" ) ); |
58 | DataTable->setText( 4,1,ar ) ; | ||
59 | QString ion = configobj.readEntry( "IE" ); | ||
60 | DataTable->setText( 5,1,ion ); | ||
61 | QString dens = configobj.readEntry( "Density" ); | ||
62 | DataTable->setText( 6,1,dens ); | ||
63 | QString bp = configobj.readEntry( "BP" ); | ||
64 | DataTable->setText( 7,1,bp ); | ||
65 | QString mp = configobj.readEntry( "MP" ); | ||
66 | DataTable->setText( 8,1,mp ); | ||
67 | } | 58 | } |
68 | 59 | ||
69 | void OxydataWidget::setTable() | 60 | void OxydataWidget::setTable() |
70 | { | 61 | { |
71 | DataTable->setText( 0,0, tr( "Weight:" ) ); | 62 | DataTable->setText( 0,0, tr( "Weight:" ) ); |
72 | DataTable->setText( 1,0, tr( "Block" )) ; | 63 | DataTable->setText( 1,0, tr( "Block" )) ; |
73 | DataTable->setText( 2,0, tr( "Group" )) ; | 64 | DataTable->setText( 2,0, tr( "Group" )) ; |
74 | DataTable->setText( 3,0, tr( "Electronegativity" )) ; | 65 | DataTable->setText( 3,0, tr( "Electronegativity" )) ; |
75 | DataTable->setText( 4,0, tr( "Atomic radius" )) ; | 66 | DataTable->setText( 4,0, tr( "Atomic radius" )) ; |
76 | DataTable->setText( 5,0, tr( "Ionizationenergie" )) ; | 67 | DataTable->setText( 5,0, tr( "Ionizationenergie" )) ; |
77 | DataTable->setText( 6,0, tr( "Density" )) ; | 68 | DataTable->setText( 6,0, tr( "Density" )) ; |
78 | DataTable->setText( 7,0, tr( "Boilingpoint" ) ); | 69 | DataTable->setText( 7,0, tr( "Boilingpoint" ) ); |