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


Public Member Functions | |
| UnlockArea (QGraphicsItem *parent=NULL) | |
| virtual | ~UnlockArea () |
| void | setEnabled (bool enabled) |
| virtual void | setActive (bool active) |
Definition at line 36 of file unlockarea.h.
| UnlockArea::UnlockArea | ( | QGraphicsItem * | parent = NULL |
) |
Definition at line 29 of file unlockarea.cpp.
:
MStylableWidget(parent),
m_enabled(false),
m_active(false)
{
QGraphicsLinearLayout *layout =
new QGraphicsLinearLayout (Qt::Vertical);
setObjectName ("LockLandArea");
// Create the unlock icon
MImageWidget *unlock_icon;
unlock_icon = new MImageWidget;
unlock_icon->setImage ("icon-m-common-unlocked", QSize (32, 32));
unlock_icon->setZoomFactor (1.0);
unlock_icon->setObjectName ("LockScreenUnlockIcon");
m_unlock_icon = new MWidget;
QGraphicsLinearLayout *icon_layout =
new QGraphicsLinearLayout (Qt::Horizontal);
icon_layout->addStretch ();
icon_layout->addItem (unlock_icon);
icon_layout->addStretch ();
m_unlock_icon->setLayout (icon_layout);
// Add the unlock icon centered
layout->addStretch ();
layout->addItem (m_unlock_icon);
layout->addStretch ();
setLayout (layout);
updateState ();
}
| UnlockArea::~UnlockArea | ( | ) | [virtual] |
Definition at line 65 of file unlockarea.cpp.
{
// Free the resources here...
}
| void UnlockArea::setActive | ( | bool | active | ) | [virtual] |
Definition at line 71 of file unlockarea.cpp.
{
if (m_enabled == false)
return; /* no-op when disabled... */
if (m_active == active)
return;
m_active = active;
updateState ();
}
| void UnlockArea::setEnabled | ( | bool | enabled | ) |
Definition at line 85 of file unlockarea.cpp.
{
if (m_enabled == enabled)
return;
m_enabled = enabled;
// Set active to false when enable val. has been changed...
m_active = false;
updateState ();
}
| Copyright © 2010 Nokia Corporation | Generated on Thu Nov 4 2010 18:19:35 Doxygen 1.7.1 |
MeeGo Touch |