summaryrefslogtreecommitdiff
path: root/libopie
authorzecke <zecke>2003-06-11 10:24:16 (UTC)
committer zecke <zecke>2003-06-11 10:24:16 (UTC)
commit188319af82322c84f02e1abb848d908ca8f9e26c (patch) (unidiff)
treee88f078a70ded124b1cf0adc2b2a039f564e861b /libopie
parent4d05b57498f6b2f135ecd55e5fde5e6ebc21c160 (diff)
downloadopie-188319af82322c84f02e1abb848d908ca8f9e26c.zip
opie-188319af82322c84f02e1abb848d908ca8f9e26c.tar.gz
opie-188319af82322c84f02e1abb848d908ca8f9e26c.tar.bz2
do what the FIXME says... const fixes
Diffstat (limited to 'libopie') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie/oticker.cpp4
-rw-r--r--libopie/oticker.h6
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
@@ -50,30 +50,30 @@ OTicker::OTicker( QWidget* parent )
50 setTextFormat(Qt::RichText); 50 setTextFormat(Qt::RichText);
51 Config cfg("qpe"); 51 Config cfg("qpe");
52 cfg.setGroup("Appearance"); 52 cfg.setGroup("Appearance");
53 backgroundcolor = QColor( cfg.readEntry( "Background", "#E5E1D5" ) ); 53 backgroundcolor = QColor( cfg.readEntry( "Background", "#E5E1D5" ) );
54 foregroundcolor= Qt::black; 54 foregroundcolor= Qt::black;
55 updateTimerTime = 50; 55 updateTimerTime = 50;
56 scrollLength = 1; 56 scrollLength = 1;
57} 57}
58 58
59OTicker::~OTicker() { 59OTicker::~OTicker() {
60} 60}
61 61
62void OTicker::setBackgroundColor(QColor backcolor) { 62void OTicker::setBackgroundColor(const QColor& backcolor) {
63 backgroundcolor = backcolor; 63 backgroundcolor = backcolor;
64 update(); 64 update();
65} 65}
66 66
67void OTicker::setForegroundColor(QColor backcolor) { 67void OTicker::setForegroundColor(const QColor& backcolor) {
68 foregroundcolor = backcolor; 68 foregroundcolor = backcolor;
69 update(); 69 update();
70} 70}
71 71
72void OTicker::setFrame(int frameStyle) { 72void OTicker::setFrame(int frameStyle) {
73 setFrameStyle( frameStyle/*WinPanel | Sunken */); 73 setFrameStyle( frameStyle/*WinPanel | Sunken */);
74 update(); 74 update();
75} 75}
76 76
77void OTicker::setText( const QString& text ) { 77void OTicker::setText( const QString& text ) {
78 pos = 0; // reset it everytime the text is changed 78 pos = 0; // reset it everytime the text is changed
79 scrollText = text; 79 scrollText = text;
diff --git a/libopie/oticker.h b/libopie/oticker.h
index c52e317..0b88919 100644
--- a/libopie/oticker.h
+++ b/libopie/oticker.h
@@ -69,34 +69,32 @@ public:
69 * @fn setText(const QString& ) 69 * @fn setText(const QString& )
70 * @brief sets text to be displayed 70 * @brief sets text to be displayed
71 * @param text QString text to be displayed. 71 * @param text QString text to be displayed.
72 * 72 *
73 */ 73 */
74 void setText( const QString& text ) ; 74 void setText( const QString& text ) ;
75/*! 75/*!
76 * @fn setBackgroundColor(QColor color) 76 * @fn setBackgroundColor(QColor color)
77 * @brief sets color of the ticker's background 77 * @brief sets color of the ticker's background
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
94 * @param style int Frame style to be see. See Qt::WidgetFlags. 92 * @param style int Frame style to be see. See Qt::WidgetFlags.
95 * 93 *
96 */ 94 */
97 void setFrame(int style); 95 void setFrame(int style);
98/*! 96/*!
99 * @fn setUpdateTime(int timeout) 97 * @fn setUpdateTime(int timeout)
100 * @brief sets time of update 98 * @brief sets time of update
101 * @param timeout int time in milliseconds between updates. 99 * @param timeout int time in milliseconds between updates.
102 * 100 *