--- /dev/null
+#include "TimeDisplayWidget.h"\r
+\r
+TimeDisplayWidget::TimeDisplayWidget( QTime aNow, QWidget *aParent ) :\r
+ ObservedWidget( aParent )\r
+\r
+{\r
+ iCurrentTime = aNow;\r
+\r
+// if( aParent && aParent->isWidgetType() )\r
+// {\r
+// this->setBackgroundColor( aParent->palette().color( QPalette::Window ) );\r
+// this->setForegroundColor( aParent->palette().color( QPalette::WindowText ) );\r
+// }\r
+}\r
+\r
+TimeDisplayWidget::~TimeDisplayWidget()\r
+{\r
+}\r
+\r
+QTime TimeDisplayWidget::time()\r
+{\r
+ return iCurrentTime;\r
+}\r
+\r
+void TimeDisplayWidget::setBackgroundColor( QColor aColor )\r
+{\r
+ this->setBackgroundColor( aColor );\r
+}\r
+\r
+void TimeDisplayWidget::setForegroundColor( QColor aColor )\r
+{\r
+ this->setForegroundColor( aColor );\r
+}\r
+\r
+void TimeDisplayWidget::setTime( QTime aNow )\r
+{\r
+ iCurrentTime = aNow;\r
+\r
+ showTime();\r
+}\r