![]() |
Home · All Namespaces · All Classes |
#include <clock.h>


Public Slots | |
| void | setShortDisplay (bool isShort) |
Public Member Functions | |
| Clock (QGraphicsItem *parent=NULL) | |
| ~Clock () | |
A widget for showing the current time.
Definition at line 37 of file clock.h.
| 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();
}
| void Clock::setShortDisplay | ( | bool | isShort | ) | [slot] |
| Copyright © 2010 Nokia Corporation | Generated on Thu Nov 4 2010 18:19:35 Doxygen 1.7.1 |
MeeGo Touch |