Diffstat (limited to 'noncore/apps/oxygen/psewidget.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/apps/oxygen/psewidget.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/noncore/apps/oxygen/psewidget.cpp b/noncore/apps/oxygen/psewidget.cpp index d8e4086..b396046 100644 --- a/noncore/apps/oxygen/psewidget.cpp +++ b/noncore/apps/oxygen/psewidget.cpp | |||
@@ -23,13 +23,14 @@ | |||
23 | #include "psewidget.h" | 23 | #include "psewidget.h" |
24 | #include "oxyframe.h" | 24 | #include "oxyframe.h" |
25 | 25 | ||
26 | 26 | ||
27 | PSEWidget::PSEWidget() : QWidget() | 27 | PSEWidget::PSEWidget(const QStringList &list) : QWidget() |
28 | { | 28 | { |
29 | this->setCaption( tr( "Periodic System" ) ); | 29 | this->setCaption( tr( "Periodic System" ) ); |
30 | 30 | ||
31 | lastElement=1; | 31 | lastElement=1; |
32 | names = list; | ||
32 | 33 | ||
33 | QVBoxLayout *vlay = new QVBoxLayout( this ); | 34 | QVBoxLayout *vlay = new QVBoxLayout( this ); |
34 | 35 | ||
35 | QGridLayout *grid = new QGridLayout( 18,10 ); | 36 | QGridLayout *grid = new QGridLayout( 18,10 ); |
@@ -48,9 +49,9 @@ PSEWidget::PSEWidget() : QWidget() | |||
48 | connect( PSEframe.current(), SIGNAL( num(QString) ), this, SLOT( slotShowElement(QString) )); | 49 | connect( PSEframe.current(), SIGNAL( num(QString) ), this, SLOT( slotShowElement(QString) )); |
49 | connect( PSEframe.current(), SIGNAL( num(QString) ), this, SLOT( inverseColor(QString) )); | 50 | connect( PSEframe.current(), SIGNAL( num(QString) ), this, SLOT( inverseColor(QString) )); |
50 | } | 51 | } |
51 | 52 | ||
52 | oxyDW = new OxydataWidget(this); | 53 | oxyDW = new OxydataWidget(this, "PSEWidget_oxyDW", names); |
53 | oxyDW->setElement( 0 ); | 54 | oxyDW->setElement( 0 ); |
54 | oxyDW->setLayout(); | 55 | oxyDW->setLayout(); |
55 | 56 | ||
56 | vlay->addLayout( grid ); | 57 | vlay->addLayout( grid ); |