Diffstat (limited to 'noncore/apps/oxygen/psewidget.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/oxygen/psewidget.cpp | 18 |
1 files changed, 15 insertions, 3 deletions
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 | |||
@@ -19,5 +19,5 @@ | |||
19 | 19 | ||
20 | Element::Element( const QString &name ) | 20 | /*Element::Element( const QString &name ) |
21 | { | 21 | { |
22 | } | 22 | }*/ |
23 | 23 | ||
@@ -28,3 +28,5 @@ PSEWidget::PSEWidget() : QWidget() | |||
28 | 28 | ||
29 | QGridLayout *grid = new QGridLayout( this, 18,10 ); | 29 | QVBoxLayout *vlay = new QVBoxLayout( this ); |
30 | |||
31 | QGridLayout *grid = new QGridLayout( 18,10 ); | ||
30 | int h=0, v=0; | 32 | int h=0, v=0; |
@@ -36,5 +38,15 @@ PSEWidget::PSEWidget() : QWidget() | |||
36 | grid->addWidget( PSEframe.current() , v/40+1 , h/40 ); | 38 | grid->addWidget( PSEframe.current() , v/40+1 , h/40 ); |
39 | PSEframe.current()->setMinimumHeight( 11 ); | ||
40 | connect( PSEframe.current(), SIGNAL( clicked() ), this, SLOT( slotShowElement() )); | ||
37 | } | 41 | } |
42 | |||
43 | OxydataWidget *oxyDW = new OxydataWidget(this); | ||
44 | oxyDW->setElement( 1 ); | ||
45 | |||
46 | vlay->addLayout( grid ); | ||
47 | vlay->addWidget( oxyDW ); | ||
38 | } | 48 | } |
39 | 49 | ||
50 | void PSEWidget::slotShowElement(){ qDebug( "ja genau" );}; | ||
51 | |||
40 | void PSEWidget::position(int n, int& h, int& v) | 52 | void PSEWidget::position(int n, int& h, int& v) |