qtmeetings sources to Maemo garage
[qtmeetings] / src / UserInterface / Components / TimeDisplayWidget.cpp
diff --git a/src/UserInterface/Components/TimeDisplayWidget.cpp b/src/UserInterface/Components/TimeDisplayWidget.cpp
new file mode 100644 (file)
index 0000000..8267ca0
--- /dev/null
@@ -0,0 +1,40 @@
+#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