From aef34909dcfb2ffb637c9d3693e395c15b255cb2 Mon Sep 17 00:00:00 2001 From: cniehaus Date: Thu, 19 Sep 2002 19:34:26 +0000 Subject: wow, this works now :)) Elemental: ich hab' dich! --- (limited to 'noncore/apps/oxygen/psewidget.cpp') diff --git a/noncore/apps/oxygen/psewidget.cpp b/noncore/apps/oxygen/psewidget.cpp index ab1467c..506e0cb 100644 --- a/noncore/apps/oxygen/psewidget.cpp +++ b/noncore/apps/oxygen/psewidget.cpp @@ -17,16 +17,18 @@ #include "oxyframe.h" -Element::Element( const QString &name ) +/*Element::Element( const QString &name ) { -} +}*/ PSEWidget::PSEWidget() : QWidget() { this->setCaption( "Periodic System" ); - QGridLayout *grid = new QGridLayout( this, 18,10 ); + QVBoxLayout *vlay = new QVBoxLayout( this ); + + QGridLayout *grid = new QGridLayout( 18,10 ); int h=0, v=0; for( int n = 0 ; n < 118 ; n++ ) { @@ -34,9 +36,19 @@ PSEWidget::PSEWidget() : QWidget() QList PSEframe; PSEframe.append( new OxyFrame( this , QString::number( n ) ) ); grid->addWidget( PSEframe.current() , v/40+1 , h/40 ); + PSEframe.current()->setMinimumHeight( 11 ); + connect( PSEframe.current(), SIGNAL( clicked() ), this, SLOT( slotShowElement() )); } + + OxydataWidget *oxyDW = new OxydataWidget(this); + oxyDW->setElement( 1 ); + + vlay->addLayout( grid ); + vlay->addWidget( oxyDW ); } +void PSEWidget::slotShowElement(){ qDebug( "ja genau" );}; + void PSEWidget::position(int n, int& h, int& v) { //Hydrogen -- cgit v0.9.0.2