-rw-r--r-- | noncore/apps/oxygen/psewidget.cpp | 2 | ||||
-rw-r--r-- | noncore/apps/oxygen/psewidget.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/noncore/apps/oxygen/psewidget.cpp b/noncore/apps/oxygen/psewidget.cpp index b396046..4f990b0 100644 --- a/noncore/apps/oxygen/psewidget.cpp +++ b/noncore/apps/oxygen/psewidget.cpp @@ -53,17 +53,17 @@ PSEWidget::PSEWidget(const QStringList &list) : QWidget() oxyDW = new OxydataWidget(this, "PSEWidget_oxyDW", names); oxyDW->setElement( 0 ); oxyDW->setLayout(); vlay->addLayout( grid ); vlay->addWidget( oxyDW ); } -QColor PSEWidget::PSEColor( QString block ) +QColor PSEWidget::PSEColor( QString block ) const { QColor c; if ( block == "s" ) c.setRgb( 213 , 233 , 231 ); else if ( block == "d" ) c.setRgb( 200,230,160 ); else if ( block == "p" ) c.setRgb( 238,146,138 ); else if ( block == "f" ) c.setRgb( 190 , 190 , 190 ); return c; }; diff --git a/noncore/apps/oxygen/psewidget.h b/noncore/apps/oxygen/psewidget.h index 42a2e38..ad40cf1 100644 --- a/noncore/apps/oxygen/psewidget.h +++ b/noncore/apps/oxygen/psewidget.h @@ -39,17 +39,17 @@ class PSEWidget : public QWidget QList<OxyFrame> PSEframe; int lastElement; private: QGridLayout *maingrid; void position( int, int&, int& ); - QColor PSEColor( QString ); + QColor PSEColor( QString ) const; QStringList names; public slots: void slotShowElement(QString); void inverseColor( QString ); }; |