equal
deleted
inserted
replaced
39 \param parent The parent of type QGraphicsItem. |
39 \param parent The parent of type QGraphicsItem. |
40 */ |
40 */ |
41 AnalogClockWidget::AnalogClockWidget(QGraphicsItem *parent) |
41 AnalogClockWidget::AnalogClockWidget(QGraphicsItem *parent) |
42 : HbWidget(parent) |
42 : HbWidget(parent) |
43 { |
43 { |
44 HbStyleLoader::registerFilePath(":/resource"); |
44 bool result = HbStyleLoader::registerFilePath(":/resource/analogclockwidget.widgetml"); |
|
45 result = HbStyleLoader::registerFilePath(":/resource/analogclockwidget.css"); |
|
46 |
45 updatePrimitives(); |
47 updatePrimitives(); |
46 mTimer = new QTimer(this); |
48 mTimer = new QTimer(this); |
47 connect(mTimer, SIGNAL(timeout()), SLOT(tick())); |
49 connect(mTimer, SIGNAL(timeout()), SLOT(tick())); |
48 mTimer->start(clockUpdateInterval); |
50 mTimer->start(clockUpdateInterval); |
49 } |
51 } |