author | cniehaus <cniehaus> | 2002-09-19 19:34:26 (UTC) |
---|---|---|
committer | cniehaus <cniehaus> | 2002-09-19 19:34:26 (UTC) |
commit | aef34909dcfb2ffb637c9d3693e395c15b255cb2 (patch) (unidiff) | |
tree | 24790ee542408f594b1e6b018dd0013435f75d84 | |
parent | 04fd73b51c766027f2168ed8220f7cbb7ca1486c (diff) | |
download | opie-aef34909dcfb2ffb637c9d3693e395c15b255cb2.zip opie-aef34909dcfb2ffb637c9d3693e395c15b255cb2.tar.gz opie-aef34909dcfb2ffb637c9d3693e395c15b255cb2.tar.bz2 |
wow, this works now :)) Elemental: ich hab' dich!
-rw-r--r-- | noncore/apps/oxygen/oxyframe.cpp | 3 | ||||
-rw-r--r-- | noncore/apps/oxygen/oxyframe.h | 5 | ||||
-rw-r--r-- | noncore/apps/oxygen/psewidget.cpp | 18 | ||||
-rw-r--r-- | noncore/apps/oxygen/psewidget.h | 3 |
4 files changed, 26 insertions, 3 deletions
diff --git a/noncore/apps/oxygen/oxyframe.cpp b/noncore/apps/oxygen/oxyframe.cpp index a7833be..d459d2b 100644 --- a/noncore/apps/oxygen/oxyframe.cpp +++ b/noncore/apps/oxygen/oxyframe.cpp | |||
@@ -21 +21,4 @@ OxyFrame::OxyFrame(QWidget *parent, const char *name) : QFrame(parent,name) | |||
21 | 21 | ||
22 | void OxyFrame::mousePressEvent ( QMouseEvent * e ){ | ||
23 | emit clicked(); | ||
24 | }; | ||
diff --git a/noncore/apps/oxygen/oxyframe.h b/noncore/apps/oxygen/oxyframe.h index 9c7dab5..6ff9e27 100644 --- a/noncore/apps/oxygen/oxyframe.h +++ b/noncore/apps/oxygen/oxyframe.h | |||
@@ -21,2 +21,7 @@ class OxyFrame : public QFrame | |||
21 | OxyFrame( QWidget *parent=0, const char *name=0); | 21 | OxyFrame( QWidget *parent=0, const char *name=0); |
22 | |||
23 | void mousePressEvent( QMouseEvent *); | ||
24 | |||
25 | signals: | ||
26 | void clicked(); | ||
22 | }; | 27 | }; |
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) |
diff --git a/noncore/apps/oxygen/psewidget.h b/noncore/apps/oxygen/psewidget.h index 3ea58e3..2a1e85c 100644 --- a/noncore/apps/oxygen/psewidget.h +++ b/noncore/apps/oxygen/psewidget.h | |||
@@ -78,2 +78,5 @@ class PSEWidget : public QWidget | |||
78 | 78 | ||
79 | public slots: | ||
80 | void slotShowElement(); | ||
81 | |||
79 | }; | 82 | }; |