summaryrefslogtreecommitdiff
path: root/libqtaux/oticker.cpp
Unidiff
Diffstat (limited to 'libqtaux/oticker.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--libqtaux/oticker.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/libqtaux/oticker.cpp b/libqtaux/oticker.cpp
index 29478fd..aa6aa9b 100644
--- a/libqtaux/oticker.cpp
+++ b/libqtaux/oticker.cpp
@@ -1,71 +1,73 @@
1/* 1/*
2                This file is part of the Opie Project 2                This file is part of the Opie Project
3 Copyright (c) 2002 L. Potter <ljp@llornkcor.com> 3 Copyright (c) 2002 L. Potter <ljp@llornkcor.com>
4 and Copyright (C) 2000-2002 Trolltech AS. All rights reserved.
5
4 =. 6 =.
5 .=l. 7 .=l.
6           .>+-= 8           .>+-=
7 _;:,     .>    :=|. This program is free software; you can 9 _;:,     .>    :=|. This program is free software; you can
8.> <`_,   >  .   <= redistribute it and/or modify it under 10.> <`_,   >  .   <= redistribute it and/or modify it under
9:`=1 )Y*s>-.--   : the terms of the GNU General Public 11:`=1 )Y*s>-.--   : the terms of the GNU General Public
10.="- .-=="i,     .._ License as published by the Free Software 12.="- .-=="i,     .._ License as published by the Free Software
11 - .   .-<_>     .<> Foundation; either version 2 of the License, 13 - .   .-<_>     .<> Foundation; either version 2 of the License,
12     ._= =}       : or (at your option) any later version. 14     ._= =}       : or (at your option) any later version.
13    .%`+i>       _;_. 15    .%`+i>       _;_.
14    .i_,=:_.      -<s. This program is distributed in the hope that 16    .i_,=:_.      -<s. This program is distributed in the hope that
15     +  .  -:.       = it will be useful, but WITHOUT ANY WARRANTY; 17     +  .  -:.       = it will be useful, but WITHOUT ANY WARRANTY;
16    : ..    .:,     . . . without even the implied warranty of 18    : ..    .:,     . . . without even the implied warranty of
17    =_        +     =;=|` MERCHANTABILITY or FITNESS FOR A 19    =_        +     =;=|` MERCHANTABILITY or FITNESS FOR A
18  _.=:.       :    :=>`: PARTICULAR PURPOSE. See the GNU 20  _.=:.       :    :=>`: PARTICULAR PURPOSE. See the GNU
19..}^=.=       =       ; Library General Public License for more 21..}^=.=       =       ; Library General Public License for more
20++=   -.     .`     .: details. 22++=   -.     .`     .: details.
21 :     =  ...= . :.=- 23 :     =  ...= . :.=-
22 -.   .:....=;==+<; You should have received a copy of the GNU 24 -.   .:....=;==+<; You should have received a copy of the GNU
23  -_. . .   )=.  = Library General Public License along with 25  -_. . .   )=.  = General Public License along with
24    --        :-=` this library; see the file COPYING.LIB. 26    --        :-=` this library; see the file COPYING.LIB.
25 If not, write to the Free Software Foundation, 27 If not, write to the Free Software Foundation,
26 Inc., 59 Temple Place - Suite 330, 28 Inc., 59 Temple Place - Suite 330,
27 Boston, MA 02111-1307, USA. 29 Boston, MA 02111-1307, USA.
28 30
29*/ 31*/
30 32
31#include "oticker.h" 33#include "oticker.h"
32 34
33/* OPIE */ 35/* OPIE */
34#include <opie2/odebug.h> 36#include <opie2/odebug.h>
35 37
36#include <qpe/config.h> 38#include <qpe/config.h>
37 39
38using namespace Opie::Ui; 40using namespace Opie::Ui;
39 41
40OTicker::OTicker( QWidget* parent ) 42OTicker::OTicker( QWidget* parent )
41 : QLabel( parent ) 43 : QLabel( parent )
42{ 44{
43 setTextFormat( Qt::RichText ); 45 setTextFormat( Qt::RichText );
44 Config cfg( "qpe" ); 46 Config cfg( "qpe" );
45 cfg.setGroup( "Appearance" ); 47 cfg.setGroup( "Appearance" );
46 backgroundcolor = QColor( cfg.readEntry( "Background", "#E5E1D5" ) ); 48 backgroundcolor = QColor( cfg.readEntry( "Background", "#E5E1D5" ) );
47 foregroundcolor = Qt::black; 49 foregroundcolor = Qt::black;
48 updateTimerTime = 50; 50 updateTimerTime = 50;
49 scrollLength = 1; 51 scrollLength = 1;
50} 52}
51 53
52OTicker::~OTicker() 54OTicker::~OTicker()
53{} 55{}
54 56
55void OTicker::setBackgroundColor( const QColor& backcolor ) 57void OTicker::setBackgroundColor( const QColor& backcolor )
56{ 58{
57 backgroundcolor = backcolor; 59 backgroundcolor = backcolor;
58 update(); 60 update();
59} 61}
60 62
61void OTicker::setForegroundColor( const QColor& backcolor ) 63void OTicker::setForegroundColor( const QColor& backcolor )
62{ 64{
63 foregroundcolor = backcolor; 65 foregroundcolor = backcolor;
64 update(); 66 update();
65} 67}
66 68
67void OTicker::setFrame( int frameStyle ) 69void OTicker::setFrame( int frameStyle )
68{ 70{
69 setFrameStyle( frameStyle /*WinPanel | Sunken */ ); 71 setFrameStyle( frameStyle /*WinPanel | Sunken */ );
70 update(); 72 update();
71} 73}