| Home · All Namespaces · All Classes |
#include <launcherpageview.h>


Public Member Functions | |
| LauncherPageView (LauncherPage *controller) | |
| virtual | ~LauncherPageView () |
Protected Slots | |
| virtual void | updateData (const QList< const char * > &modifications) |
| | |
Protected Member Functions | |
| virtual void | setupModel () |
| REIMPLEMENTATION | |
Definition at line 34 of file launcherpageview.h.
| LauncherPageView::LauncherPageView | ( | LauncherPage * | controller | ) |
Constructs an LauncherPageView.
| container | the LauncherPage controller to be used |
Definition at line 28 of file launcherpageview.cpp.
:
MWidgetView(controller),
layout(new MLayout),
policy(new MFlowLayoutPolicy(layout))
{
policy->setObjectName("LauncherPageFlowLayoutPolicy");
controller->setLayout(layout);
}
| LauncherPageView::~LauncherPageView | ( | ) | [virtual] |
Destroys the LauncherPageView.
Definition at line 37 of file launcherpageview.cpp.
{
// remove buttons from layout to avoid multi deletion (buttons are in model as QSharedPointer's)
foreach (QSharedPointer<LauncherButton> button, model()->launcherButtons()) {
removeButtonFromLayout(button.data());
}
}
| void LauncherPageView::setupModel | ( | ) | [protected, virtual] |
REIMPLEMENTATION
Definition at line 94 of file launcherpageview.cpp.
{
MWidgetView::setupModel();
QList<const char *> modifications;
modifications << LauncherPageModel::LauncherButtons;
updateData(modifications);
}

| void LauncherPageView::updateData | ( | const QList< const char * > & | modifications | ) | [protected, virtual, slot] |
REIMPLEMENTATION
Definition at line 45 of file launcherpageview.cpp.
{
MWidgetView::updateData(modifications);
const char *member;
foreach(member, modifications) {
if (member == LauncherPageModel::LauncherButtons) {
updateLayoutFromModel();
}
}
}
| Copyright © 2010 Nokia Corporation | Generated on Thu Nov 4 2010 18:20:42 Doxygen 1.7.1 |
MeeGo Touch |