summaryrefslogtreecommitdiff
path: root/noncore/apps/oxygen/datawidgetui.cpp
Unidiff
Diffstat (limited to 'noncore/apps/oxygen/datawidgetui.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/oxygen/datawidgetui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/apps/oxygen/datawidgetui.cpp b/noncore/apps/oxygen/datawidgetui.cpp
index 8188515..2e99c0b 100644
--- a/noncore/apps/oxygen/datawidgetui.cpp
+++ b/noncore/apps/oxygen/datawidgetui.cpp
@@ -1,42 +1,42 @@
1/*************************************************************************** 1/***************************************************************************
2 * * 2 * *
3 * This program is free software; you can redistribute it and/or modify * 3 * This program is free software; you can redistribute it and/or modify *
4 * it under the terms of the GNU General Public License as published by * 4 * it under the terms of the GNU General Public License as published by *
5 * the Free Software Foundation; either version 2 of the License, or * 5 * the Free Software Foundation; either version 2 of the License, or *
6 * ( at your option ) any later version. * 6 * ( at your option ) any later version. *
7 * * 7 * *
8 **************************************************************************/ 8 **************************************************************************/
9 9
10#include "datawidgetui.h" 10#include "datawidgetui.h"
11 11
12#include <qpe/config.h> 12#include <qpe/config.h>
13#include <qstring.h> 13#include <qstring.h>
14#include <qcombobox.h> 14#include <qcombobox.h>
15#include <qlayout.h> 15#include <qlayout.h>
16#include <qhbox.h> 16#include <qhbox.h>
17#include <qlabel.h> 17#include <qlabel.h>
18 18
19dataWidgetUI::dataWidgetUI() : QWidget() 19dataWidgetUI::dataWidgetUI() : QWidget()
20{ 20{
21 this->setCaption("Chemical Data"); 21 this->setCaption( tr( "Chemical Data" ));
22 22
23 QGridLayout *qgrid = new QGridLayout( this, 2,1 ); 23 QGridLayout *qgrid = new QGridLayout( this, 2,1 );
24 24
25 dataCombo = new QComboBox( this ); 25 dataCombo = new QComboBox( this );
26 OxydataWidget *oxyDW = new OxydataWidget(this); 26 OxydataWidget *oxyDW = new OxydataWidget(this);
27 oxyDW->setElement( 1 ); 27 oxyDW->setElement( 1 );
28 qgrid->addWidget( dataCombo, 0,0); 28 qgrid->addWidget( dataCombo, 0,0);
29 qgrid->addWidget( oxyDW , 1,0 ); 29 qgrid->addWidget( oxyDW , 1,0 );
30 30
31 connect ( dataCombo, SIGNAL( activated(int) ), oxyDW, SLOT( setElement(int) ) ); 31 connect ( dataCombo, SIGNAL( activated(int) ), oxyDW, SLOT( setElement(int) ) );
32 Config configobj( "oxygendata" ); 32 Config configobj( "oxygendata" );
33 33
34 //read in all names of the 118 elements 34 //read in all names of the 118 elements
35 for ( int i = 1 ; i < 119 ; i++ ) 35 for ( int i = 1 ; i < 119 ; i++ )
36 { 36 {
37 configobj.setGroup( QString::number( i ) ); 37 configobj.setGroup( QString::number( i ) );
38 QString foo = configobj.readEntry( "Name" ); 38 QString foo = configobj.readEntry( "Name" );
39 dataCombo->insertItem( foo ); 39 dataCombo->insertItem( foo );
40 } 40 }
41} 41}
42 42