8267ca07927e65a79b2b571f22794a58c59a4792
[qtmeetings] / src / UserInterface / Components / TimeDisplayWidget.cpp
1 #include "TimeDisplayWidget.h"\r
2 \r
3 TimeDisplayWidget::TimeDisplayWidget( QTime aNow, QWidget *aParent ) :\r
4                 ObservedWidget( aParent )\r
5 \r
6 {\r
7         iCurrentTime = aNow;\r
8 \r
9 //      if( aParent && aParent->isWidgetType() )\r
10 //      {\r
11 //              this->setBackgroundColor( aParent->palette().color( QPalette::Window ) );\r
12 //              this->setForegroundColor( aParent->palette().color( QPalette::WindowText ) );\r
13 //      }\r
14 }\r
15 \r
16 TimeDisplayWidget::~TimeDisplayWidget()\r
17 {\r
18 }\r
19 \r
20 QTime TimeDisplayWidget::time()\r
21 {\r
22         return iCurrentTime;\r
23 }\r
24 \r
25 void TimeDisplayWidget::setBackgroundColor( QColor aColor )\r
26 {\r
27         this->setBackgroundColor( aColor );\r
28 }\r
29 \r
30 void TimeDisplayWidget::setForegroundColor( QColor aColor )\r
31 {\r
32         this->setForegroundColor( aColor );\r
33 }\r
34 \r
35 void TimeDisplayWidget::setTime( QTime aNow )\r
36 {\r
37         iCurrentTime = aNow;\r
38 \r
39         showTime();\r
40 }\r