![]() |
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.
00029 : 00030 MStylableWidget(parent), 00031 m_enabled(false), 00032 m_active(false) 00033 { 00034 QGraphicsLinearLayout *layout = 00035 new QGraphicsLinearLayout (Qt::Vertical); 00036 00037 setObjectName ("LockLandArea"); 00038 00039 // Create the unlock icon 00040 MImageWidget *unlock_icon; 00041 00042 unlock_icon = new MImageWidget; 00043 unlock_icon->setImage ("icon-m-common-unlocked", QSize (32, 32)); 00044 unlock_icon->setZoomFactor (1.0); 00045 unlock_icon->setObjectName ("LockScreenUnlockIcon"); 00046 00047 m_unlock_icon = new MWidget; 00048 QGraphicsLinearLayout *icon_layout = 00049 new QGraphicsLinearLayout (Qt::Horizontal); 00050 icon_layout->addStretch (); 00051 icon_layout->addItem (unlock_icon); 00052 icon_layout->addStretch (); 00053 m_unlock_icon->setLayout (icon_layout); 00054 00055 // Add the unlock icon centered 00056 layout->addStretch (); 00057 layout->addItem (m_unlock_icon); 00058 layout->addStretch (); 00059 00060 setLayout (layout); 00061 00062 updateState (); 00063 }
| UnlockArea::~UnlockArea | ( | ) | [virtual] |
Definition at line 65 of file unlockarea.cpp.
| void UnlockArea::setActive | ( | bool | active | ) | [virtual] |
Definition at line 71 of file unlockarea.cpp.
| void UnlockArea::setEnabled | ( | bool | enabled | ) |
Definition at line 85 of file unlockarea.cpp.
| Copyright © 2010 Nokia Corporation | Generated on Wed Nov 10 16:05:14 2010 Doxygen 1.6.1 |
MeeGo Touch |