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


Signals | |
| void | unlocked () |
Public Member Functions | |
| LockScreenView (MSceneWindow *controller) | |
| ~LockScreenView () | |
Protected Member Functions | |
| virtual void | paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0) |
| REIMPLEMENTATION | |
Protected Attributes | |
| QGraphicsLinearLayout * | layout |
| | |
| MWidgetController * | lockScreenHeader |
| lock screen header widget | |
Definition at line 29 of file lockscreenview.h.
| LockScreenView::LockScreenView | ( | MSceneWindow * | controller | ) |
Definition at line 28 of file lockscreenview.cpp.
00028 : MSceneWindowView(controller), 00029 layout(new QGraphicsLinearLayout(Qt::Vertical)), 00030 lockScreenHeader(new MWidgetController), 00031 controller(controller), 00032 gconfBgLandscape(new MGConfItem(GCONF_BG_LANDSCAPE, this)), 00033 gconfBgPortrait(new MGConfItem(GCONF_BG_PORTRAIT, this)), 00034 landscapePixmap(new QPixmap), 00035 portraitPixmap(new QPixmap) 00036 { 00037 // Set the main layout 00038 layout->setContentsMargins(0, 0, 0, 0); 00039 layout->setSpacing(0); 00040 controller->setLayout(layout); 00041 00042 // Create a header for the lock screen 00043 lockScreenHeader->setViewType("lockScreenHeader"); 00044 layout->addItem(lockScreenHeader); 00045 00046 connect(gconfBgLandscape, SIGNAL(valueChanged()), this, SLOT(reloadLandscapeBackground())); 00047 connect(gconfBgPortrait, SIGNAL(valueChanged()), this, SLOT(reloadPortraitBackground())); 00048 00049 // Load the backgrounds if any... 00050 reloadLandscapeBackground(); 00051 reloadPortraitBackground(); 00052 }
| LockScreenView::~LockScreenView | ( | ) |
Definition at line 54 of file lockscreenview.cpp.
00055 { 00056 delete gconfBgLandscape; 00057 delete gconfBgPortrait; 00058 delete landscapePixmap; 00059 delete portraitPixmap; 00060 delete lockScreenHeader; 00061 }
| void LockScreenView::paint | ( | QPainter * | painter, | |
| const QStyleOptionGraphicsItem * | option, | |||
| QWidget * | widget = 0 | |||
| ) | [protected, virtual] |
REIMPLEMENTATION
Definition at line 63 of file lockscreenview.cpp.
| void LockScreenView::unlocked | ( | ) | [signal] |
QGraphicsLinearLayout* LockScreenView::layout [protected] |
Layout for the view
Definition at line 51 of file lockscreenview.h.
MWidgetController* LockScreenView::lockScreenHeader [protected] |
lock screen header widget
Definition at line 53 of file lockscreenview.h.
| Copyright © 2010 Nokia Corporation | Generated on Wed Nov 10 16:05:06 2010 Doxygen 1.6.1 |
MeeGo Touch |