Diffstat (limited to 'noncore/apps/oxygen/psewidget.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/oxygen/psewidget.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/apps/oxygen/psewidget.cpp b/noncore/apps/oxygen/psewidget.cpp index a3bb505..449afef 100644 --- a/noncore/apps/oxygen/psewidget.cpp +++ b/noncore/apps/oxygen/psewidget.cpp | |||
@@ -38,25 +38,25 @@ PSEWidget::PSEWidget() : QWidget() | |||
38 | configobj.setGroup( QString::number( n+1 )); | 38 | configobj.setGroup( QString::number( n+1 )); |
39 | 39 | ||
40 | position( n+1,h,v ); | 40 | position( n+1,h,v ); |
41 | QList<OxyFrame> PSEframe; | 41 | QList<OxyFrame> PSEframe; |
42 | PSEframe.append( new OxyFrame( this , QString::number(n) ) ); | 42 | PSEframe.append( new OxyFrame( this , QString::number(n) ) ); |
43 | grid->addWidget( PSEframe.current() , v/40+1 , h/40 ); | 43 | grid->addWidget( PSEframe.current() , v/40+1 , h/40 ); |
44 | PSEframe.current()->setMinimumHeight( 11 ); | 44 | PSEframe.current()->setMinimumHeight( 11 ); |
45 | PSEframe.current()->setPalette( QPalette( PSEColor( configobj.readEntry( "Block" ) ) ) ); | 45 | PSEframe.current()->setPalette( QPalette( PSEColor( configobj.readEntry( "Block" ) ) ) ); |
46 | connect( PSEframe.current(), SIGNAL( num(QString) ), this, SLOT( slotShowElement(QString) )); | 46 | connect( PSEframe.current(), SIGNAL( num(QString) ), this, SLOT( slotShowElement(QString) )); |
47 | } | 47 | } |
48 | 48 | ||
49 | oxyDW = new OxydataWidget(this); | 49 | oxyDW = new OxydataWidget(this); |
50 | oxyDW->setElement( 1 ); | 50 | oxyDW->setElement( 0 ); |
51 | 51 | ||
52 | vlay->addLayout( grid ); | 52 | vlay->addLayout( grid ); |
53 | vlay->addWidget( oxyDW ); | 53 | vlay->addWidget( oxyDW ); |
54 | } | 54 | } |
55 | 55 | ||
56 | QColor PSEWidget::PSEColor( QString block ) | 56 | QColor PSEWidget::PSEColor( QString block ) |
57 | { | 57 | { |
58 | QColor c; | 58 | QColor c; |
59 | if ( block == "s" ) c.setRgb( 213 , 233 , 231 ); | 59 | if ( block == "s" ) c.setRgb( 213 , 233 , 231 ); |
60 | else if ( block == "d" ) c.setRgb( 200,230,160 ); | 60 | else if ( block == "d" ) c.setRgb( 200,230,160 ); |
61 | else if ( block == "p" ) c.setRgb( 238,146,138 ); | 61 | else if ( block == "p" ) c.setRgb( 238,146,138 ); |
62 | else if ( block == "f" ) c.setRgb( 190 , 190 , 190 ); | 62 | else if ( block == "f" ) c.setRgb( 190 , 190 , 190 ); |