Home · All Namespaces · All Classes

Clock Class Reference

#include <clock.h>

Inheritance diagram for Clock:
Inheritance graph
[legend]
Collaboration diagram for Clock:
Collaboration graph
[legend]

List of all members.

Public Slots

void setShortDisplay (bool isShort)

Public Member Functions

 Clock (QGraphicsItem *parent=NULL)
 ~Clock ()

Detailed Description

A widget for showing the current time.

Definition at line 37 of file clock.h.


Constructor & Destructor Documentation

Clock::Clock ( QGraphicsItem *  parent = NULL  )  [explicit]

Constructs a new Clock.

Definition at line 23 of file clock.cpp.

00023                                   :
00024     MWidgetController(new ClockModel, parent),
00025     locale(new MLocale())
00026 {
00027     // Set the initial 24 hour mode
00028     updateLocaleSettings();
00029 
00030 #ifdef HAVE_QMSYSTEM
00031     // Be interested in changes to system time
00032     connect(&qmTime, SIGNAL(timeOrSettingsChanged(MeeGo::QmTimeWhatChanged)),
00033             this, SLOT(updateSettings(MeeGo::QmTimeWhatChanged)));
00034 #endif
00035 
00036     // Be interested in changes to 24h mode
00037     connect(locale.data(), SIGNAL(settingsChanged()),
00038             this, SLOT(updateLocaleSettings()));
00039     locale->connectSettings();
00040 
00041     // Configure the timer
00042     timer.setSingleShot(true);
00043     connect(&timer, SIGNAL(timeout()), this, SLOT(updateModelAndSetupTimer()));
00044     updateModelAndSetupTimer();
00045 }

Clock::~Clock (  ) 

Definition at line 48 of file clock.cpp.

00049 {
00050 }


Member Function Documentation

void Clock::setShortDisplay ( bool  isShort  )  [slot]

Definition at line 88 of file clock.cpp.

00088                                         {
00089     // Set the short display model field
00090     model()->setShortDisplay(isShort);
00091 }


The documentation for this class was generated from the following files:

Copyright © 2010 Nokia Corporation Generated on Wed Nov 10 16:05:03 2010
Doxygen 1.6.1
MeeGo Touch