author | zecke <zecke> | 2003-06-11 10:24:16 (UTC) |
---|---|---|
committer | zecke <zecke> | 2003-06-11 10:24:16 (UTC) |
commit | 188319af82322c84f02e1abb848d908ca8f9e26c (patch) (unidiff) | |
tree | e88f078a70ded124b1cf0adc2b2a039f564e861b /libopie | |
parent | 4d05b57498f6b2f135ecd55e5fde5e6ebc21c160 (diff) | |
download | opie-188319af82322c84f02e1abb848d908ca8f9e26c.zip opie-188319af82322c84f02e1abb848d908ca8f9e26c.tar.gz opie-188319af82322c84f02e1abb848d908ca8f9e26c.tar.bz2 |
do what the FIXME says... const fixes
-rw-r--r-- | libopie/oticker.cpp | 4 | ||||
-rw-r--r-- | libopie/oticker.h | 6 |
2 files changed, 4 insertions, 6 deletions
diff --git a/libopie/oticker.cpp b/libopie/oticker.cpp index 9a7044d..4fb5945 100644 --- a/libopie/oticker.cpp +++ b/libopie/oticker.cpp | |||
@@ -59,12 +59,12 @@ OTicker::OTicker( QWidget* parent ) | |||
59 | OTicker::~OTicker() { | 59 | OTicker::~OTicker() { |
60 | } | 60 | } |
61 | 61 | ||
62 | void OTicker::setBackgroundColor(QColor backcolor) { | 62 | void OTicker::setBackgroundColor(const QColor& backcolor) { |
63 | backgroundcolor = backcolor; | 63 | backgroundcolor = backcolor; |
64 | update(); | 64 | update(); |
65 | } | 65 | } |
66 | 66 | ||
67 | void OTicker::setForegroundColor(QColor backcolor) { | 67 | void OTicker::setForegroundColor(const QColor& backcolor) { |
68 | foregroundcolor = backcolor; | 68 | foregroundcolor = backcolor; |
69 | update(); | 69 | update(); |
70 | } | 70 | } |
diff --git a/libopie/oticker.h b/libopie/oticker.h index c52e317..0b88919 100644 --- a/libopie/oticker.h +++ b/libopie/oticker.h | |||
@@ -78,16 +78,14 @@ public: | |||
78 | * @param color QColor color to be set. | 78 | * @param color QColor color to be set. |
79 | * | 79 | * |
80 | */ | 80 | */ |
81 | //FIXME const QColor& please -zecke | 81 | void setBackgroundColor(const QColor& color); |
82 | void setBackgroundColor(QColor color); | ||
83 | /*! | 82 | /*! |
84 | * @fn setForegroundColor(QColor color) | 83 | * @fn setForegroundColor(QColor color) |
85 | * @brief sets color of text | 84 | * @brief sets color of text |
86 | * @param color QColor color of text | 85 | * @param color QColor color of text |
87 | * | 86 | * |
88 | */ | 87 | */ |
89 | // FIXME const QColor& please -zecke | 88 | void setForegroundColor(const QColor& color); |
90 | void setForegroundColor(QColor color); | ||
91 | /*! | 89 | /*! |
92 | * @fn setFrame(int style) | 90 | * @fn setFrame(int style) |
93 | * @brief sets frame style | 91 | * @brief sets frame style |