/[projects]/infoscreen/clockoverlay.cpp
ViewVC logotype

Diff of /infoscreen/clockoverlay.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 883 by torben, Thu Jun 24 08:59:43 2010 UTC revision 890 by torben, Thu Jun 24 12:50:01 2010 UTC
# Line 4  Line 4 
4  ClockOverlay::ClockOverlay(QWidget* parent)  ClockOverlay::ClockOverlay(QWidget* parent)
5      : QLCDNumber(parent)      : QLCDNumber(parent)
6  {  {
7        QPalette palette;
8        palette.setColor(QPalette::Window, Qt::white );
9    
10        palette.setColor(QPalette::WindowText, Qt::darkBlue );
11        palette.setColor(QPalette::Light, Qt::darkBlue ); //Light and dark are used for shadows when SegmentStyle is filled or Outline
12        palette.setColor(QPalette::Dark, Qt::darkBlue ); //they are also used in the border
13    
14    
15        this->setSegmentStyle( Flat );
16        this->setAutoFillBackground ( true );
17        this->setPalette(palette);
18  }  }
19    
20    
# Line 14  void ClockOverlay::timerTick() Line 25  void ClockOverlay::timerTick()
25    
26      this->display( QTime::currentTime().toString(format) );      this->display( QTime::currentTime().toString(format) );
27    
28    
29      this->raise();      this->raise();
30  }  }
31    

Legend:
Removed from v.883  
changed lines
  Added in v.890

  ViewVC Help
Powered by ViewVC 1.1.20