Diffstat (limited to 'noncore/apps/oxygen/dataTable.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/apps/oxygen/dataTable.cpp | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/noncore/apps/oxygen/dataTable.cpp b/noncore/apps/oxygen/dataTable.cpp index 20c2985..98d3bd8 100644 --- a/noncore/apps/oxygen/dataTable.cpp +++ b/noncore/apps/oxygen/dataTable.cpp | |||
@@ -40,14 +40,13 @@ OxydataWidget::OxydataWidget(QWidget *parent) : QWidget(parent) | |||
40 | QFont bf; | 40 | QFont bf; |
41 | bf.setBold( true ); | 41 | bf.setBold( true ); |
42 | bf.setPointSize( bf.pointSize()+2 ); | 42 | bf.setPointSize( bf.pointSize()+2 ); |
43 | middle->setFont( bf ); | 43 | middle->setFont( bf ); |
44 | 44 | ||
45 | DataTable = new OxydataTable( 9,2, this ); | 45 | DataTable = new OxydataTable( 9,2, this ); |
46 | DataTable->setColumnWidth ( 1 , ( parent->width()) ); | 46 | //DataTable->setColumnWidth ( 1 , ( parent->width())-10 ); |
47 | DataTable->setColumnWidth ( 0 , ( parent->width()) ); | ||
48 | setTable(); | 47 | setTable(); |
49 | 48 | ||
50 | qgrid->addWidget( hbox,0,0 ); | 49 | qgrid->addWidget( hbox,0,0 ); |
51 | qgrid->addWidget( DataTable,1,0 ); | 50 | qgrid->addWidget( DataTable,1,0 ); |
52 | } | 51 | } |
53 | 52 | ||
@@ -59,21 +58,21 @@ void OxydataWidget::setElement( int el ) | |||
59 | 58 | ||
60 | left->setText( configobj.readEntry( "Symbol" ) ); | 59 | left->setText( configobj.readEntry( "Symbol" ) ); |
61 | middle->setText( configobj.readEntry( "Name" ) ); | 60 | middle->setText( configobj.readEntry( "Name" ) ); |
62 | right->setText( QString::number( el+1 ) ); | 61 | right->setText( QString::number( el+1 ) ); |
63 | 62 | ||
64 | 63 | ||
65 | DataTable->setText( 0,1,( configobj.readEntry( "Weight" ) )+" u" ); | 64 | DataTable->setText( 0,1,tr( "%1 u" ).arg( configobj.readEntry( "Weight" ) ) ); |
66 | DataTable->setText( 1,1,configobj.readEntry( "Block" ) ); | 65 | DataTable->setText( 1,1,configobj.readEntry( "Block" ) ); |
67 | DataTable->setText( 2,1,configobj.readEntry( "Group" ) ); | 66 | DataTable->setText( 2,1,configobj.readEntry( "Group" ) ); |
68 | DataTable->setText( 3,1,( configobj.readEntry( "EN" ) )+" J" ); | 67 | DataTable->setText( 3,1,tr( "%1 J").arg( configobj.readEntry( "EN" ) ) ); |
69 | DataTable->setText( 4,1,configobj.readEntry( "AR" )+" nm" ) ; | 68 | DataTable->setText( 4,1,tr( "%1 nm" ).arg( configobj.readEntry( "AR" ) ) ) ; |
70 | DataTable->setText( 5,1,configobj.readEntry( "IE" )+" J" ); | 69 | DataTable->setText( 5,1,tr( "%1 J" ).arg( configobj.readEntry( "IE" ) ) ); |
71 | DataTable->setText( 6,1,configobj.readEntry( "Density" ) ); | 70 | DataTable->setText( 6,1,configobj.readEntry( "Density" ) ); |
72 | DataTable->setText( 7,1,configobj.readEntry( "BP" )+" K" ); | 71 | DataTable->setText( 7,1,tr( "%1 K" ).arg( configobj.readEntry( "BP" ) ) ); |
73 | DataTable->setText( 8,1,configobj.readEntry( "MP" )+" K" ); | 72 | DataTable->setText( 8,1,tr( "%1 K" ).arg( configobj.readEntry( "MP" ) ) ); |
74 | } | 73 | } |
75 | 74 | ||
76 | void OxydataWidget::setTable() const | 75 | void OxydataWidget::setTable() const |
77 | { | 76 | { |
78 | DataTable->setText( 0,0, tr( "Weight:" ) ); | 77 | DataTable->setText( 0,0, tr( "Weight:" ) ); |
79 | DataTable->setText( 1,0, tr( "Block" )) ; | 78 | DataTable->setText( 1,0, tr( "Block" )) ; |