1 #include "TimeDisplayWidget.h"
\r
3 TimeDisplayWidget::TimeDisplayWidget( QTime aNow, QWidget *aParent ) :
\r
4 ObservedWidget( aParent )
\r
9 // if( aParent && aParent->isWidgetType() )
\r
11 // this->setBackgroundColor( aParent->palette().color( QPalette::Window ) );
\r
12 // this->setForegroundColor( aParent->palette().color( QPalette::WindowText ) );
\r
16 TimeDisplayWidget::~TimeDisplayWidget()
\r
20 QTime TimeDisplayWidget::time()
\r
22 return iCurrentTime;
\r
25 void TimeDisplayWidget::setBackgroundColor( QColor aColor )
\r
27 this->setBackgroundColor( aColor );
\r
30 void TimeDisplayWidget::setForegroundColor( QColor aColor )
\r
32 this->setForegroundColor( aColor );
\r
35 void TimeDisplayWidget::setTime( QTime aNow )
\r
37 iCurrentTime = aNow;
\r