summaryrefslogtreecommitdiff
authortille <tille>2002-11-17 17:41:36 (UTC)
committer tille <tille>2002-11-17 17:41:36 (UTC)
commit8b7363e22c3d8ba53baf14e6eb31ea3958b43e9c (patch) (unidiff)
treef9ada7584e39e37402e588b9c67f276c845ee832
parentc7e7142bc83a8f3d526452bce56c410f4e88c750 (diff)
downloadopie-8b7363e22c3d8ba53baf14e6eb31ea3958b43e9c.zip
opie-8b7363e22c3d8ba53baf14e6eb31ea3958b43e9c.tar.gz
opie-8b7363e22c3d8ba53baf14e6eb31ea3958b43e9c.tar.bz2
added atom symbols in table
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--noncore/apps/oxygen/oxyframe.cpp10
-rw-r--r--noncore/apps/oxygen/oxyframe.h6
-rw-r--r--noncore/apps/oxygen/psewidget.cpp2
3 files changed, 13 insertions, 5 deletions
diff --git a/noncore/apps/oxygen/oxyframe.cpp b/noncore/apps/oxygen/oxyframe.cpp
index c61c8e5..2ce40e7 100644
--- a/noncore/apps/oxygen/oxyframe.cpp
+++ b/noncore/apps/oxygen/oxyframe.cpp
@@ -19,13 +19,21 @@
19#include <qpe/config.h> 19#include <qpe/config.h>
20#include "oxyframe.h" 20#include "oxyframe.h"
21 21
22OxyFrame::OxyFrame(QWidget *parent, const char *name) : QFrame(parent,name) 22OxyFrame::OxyFrame(QWidget *parent, const char *name, QString symbol )
23 : QLabel(parent,name)
23{ 24{
24 N = name; 25 N = name;
25 this->setFrameStyle( QFrame::Box ); 26 this->setFrameStyle( QFrame::Box );
26 this->setLineWidth( 0 ); 27 this->setLineWidth( 0 );
27 this->setMidLineWidth( 1 ); 28 this->setMidLineWidth( 1 );
28 this->setFrameShadow( QFrame::Sunken ); 29 this->setFrameShadow( QFrame::Sunken );
30 setMinimumSize(6,6);
31 setScaledContents( true );
32 QFont font;
33 font.setWeight(QFont::Light);
34 font.setPixelSize(3);
35 setFont( font );
36 setText( symbol );
29} 37}
30 38
31void OxyFrame::mousePressEvent ( QMouseEvent * e ){ 39void OxyFrame::mousePressEvent ( QMouseEvent * e ){
diff --git a/noncore/apps/oxygen/oxyframe.h b/noncore/apps/oxygen/oxyframe.h
index 4543504..9736ea9 100644
--- a/noncore/apps/oxygen/oxyframe.h
+++ b/noncore/apps/oxygen/oxyframe.h
@@ -18,14 +18,14 @@
18#define _OXYFRAME_H 18#define _OXYFRAME_H
19 19
20 20
21#include <qframe.h> 21#include <qlabel.h>
22 22
23class OxyFrame : public QFrame 23class OxyFrame : public QLabel
24{ 24{
25 Q_OBJECT 25 Q_OBJECT
26 26
27 public: 27 public:
28 OxyFrame( QWidget *parent=0, const char *name=0); 28 OxyFrame( QWidget *parent=0, const char *name=0, QString symbol="" );
29 29
30 void mousePressEvent( QMouseEvent *); 30 void mousePressEvent( QMouseEvent *);
31 31
diff --git a/noncore/apps/oxygen/psewidget.cpp b/noncore/apps/oxygen/psewidget.cpp
index 18b41c3..d742e9c 100644
--- a/noncore/apps/oxygen/psewidget.cpp
+++ b/noncore/apps/oxygen/psewidget.cpp
@@ -40,7 +40,7 @@ PSEWidget::PSEWidget() : QWidget()
40 40
41 position( n+1,h,v ); 41 position( n+1,h,v );
42 QList<OxyFrame> PSEframe; 42 QList<OxyFrame> PSEframe;
43 PSEframe.append( new OxyFrame( this , QString::number(n) ) ); 43 PSEframe.append( new OxyFrame( this , QString::number(n), configobj.readEntry( "Symbol" ) ) );
44 grid->addWidget( PSEframe.current() , v/40+1 , h/40 ); 44 grid->addWidget( PSEframe.current() , v/40+1 , h/40 );
45 PSEframe.current()->setMinimumHeight( 11 ); 45 PSEframe.current()->setMinimumHeight( 11 );
46 PSEframe.current()->setPalette( QPalette( PSEColor( configobj.readEntry( "Block" ) ) ) ); 46 PSEframe.current()->setPalette( QPalette( PSEColor( configobj.readEntry( "Block" ) ) ) );