Home · All Namespaces · All Classes
Public Slots | Public Member Functions

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.

                                  :
    MWidgetController(new ClockModel, parent),
    locale(new MLocale())
{
    // Set the initial 24 hour mode
    updateLocaleSettings();

#ifdef HAVE_QMSYSTEM
    // Be interested in changes to system time
    connect(&qmTime, SIGNAL(timeOrSettingsChanged(MeeGo::QmTimeWhatChanged)),
            this, SLOT(updateSettings(MeeGo::QmTimeWhatChanged)));
#endif

    // Be interested in changes to 24h mode
    connect(locale.data(), SIGNAL(settingsChanged()),
            this, SLOT(updateLocaleSettings()));
    locale->connectSettings();

    // Configure the timer
    timer.setSingleShot(true);
    connect(&timer, SIGNAL(timeout()), this, SLOT(updateModelAndSetupTimer()));
    updateModelAndSetupTimer();
}

Clock::~Clock (  ) 

Definition at line 48 of file clock.cpp.

{
}


Member Function Documentation

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

Definition at line 88 of file clock.cpp.

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


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

Copyright © 2010 Nokia Corporation Generated on Thu Nov 4 2010 18:19:35
Doxygen 1.7.1
MeeGo Touch