summaryrefslogtreecommitdiff
authorcniehaus <cniehaus>2002-12-30 19:33:56 (UTC)
committer cniehaus <cniehaus>2002-12-30 19:33:56 (UTC)
commite34eef8e2f2a36797ef980d505a99948f88a5df2 (patch) (unidiff)
tree8cd79691b4b059688ca99af3158c3b62ceed649f
parent74fae7e68acd91e61bdff6f7703021246a0c1fbc (diff)
downloadopie-e34eef8e2f2a36797ef980d505a99948f88a5df2.zip
opie-e34eef8e2f2a36797ef980d505a99948f88a5df2.tar.gz
opie-e34eef8e2f2a36797ef980d505a99948f88a5df2.tar.bz2
add a const
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/oxygen/psewidget.cpp2
-rw-r--r--noncore/apps/oxygen/psewidget.h2
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
@@ -55,13 +55,13 @@ PSEWidget::PSEWidget(const QStringList &list) : QWidget()
55 oxyDW->setLayout(); 55 oxyDW->setLayout();
56 56
57 vlay->addLayout( grid ); 57 vlay->addLayout( grid );
58 vlay->addWidget( oxyDW ); 58 vlay->addWidget( oxyDW );
59} 59}
60 60
61QColor PSEWidget::PSEColor( QString block ) 61QColor PSEWidget::PSEColor( QString block ) const
62{ 62{
63 QColor c; 63 QColor c;
64 if ( block == "s" ) c.setRgb( 213 , 233 , 231 ); 64 if ( block == "s" ) c.setRgb( 213 , 233 , 231 );
65 else if ( block == "d" ) c.setRgb( 200,230,160 ); 65 else if ( block == "d" ) c.setRgb( 200,230,160 );
66 else if ( block == "p" ) c.setRgb( 238,146,138 ); 66 else if ( block == "p" ) c.setRgb( 238,146,138 );
67 else if ( block == "f" ) c.setRgb( 190 , 190 , 190 ); 67 else if ( block == "f" ) c.setRgb( 190 , 190 , 190 );
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
@@ -41,13 +41,13 @@ class PSEWidget : public QWidget
41 int lastElement; 41 int lastElement;
42 42
43 private: 43 private:
44 QGridLayout *maingrid; 44 QGridLayout *maingrid;
45 45
46 void position( int, int&, int& ); 46 void position( int, int&, int& );
47 QColor PSEColor( QString ); 47 QColor PSEColor( QString ) const;
48 QStringList names; 48 QStringList names;
49 49
50 public slots: 50 public slots:
51 void slotShowElement(QString); 51 void slotShowElement(QString);
52 void inverseColor( QString ); 52 void inverseColor( QString );
53 53