aboutsummaryrefslogtreecommitdiff
path: root/demos/widgetsgallery/templatepage.cpp
diff options
context:
space:
mode:
authorTomas Junnonen <tomas.junnonen@nokia.com>2010-04-12 13:50:25 +0300
committerTomas Junnonen <tomas.junnonen@nokia.com>2010-04-12 13:52:31 +0300
commitda73676c8a5af66b55523a9cdfbfbea2baa88a2a (patch)
tree0a3b8933a1817c152116da5fa8a7b5cdd8102e60 /demos/widgetsgallery/templatepage.cpp
parent8832674482d3b9a7fcf77b0cfdcb8e6fe4960b4d (diff)
Changes: Renamed dui to meegotouch
By: Holger, Daniel, Janne RevBy: Tomas, Holger
Diffstat (limited to 'demos/widgetsgallery/templatepage.cpp')
-rw-r--r--demos/widgetsgallery/templatepage.cpp36
1 files changed, 18 insertions, 18 deletions
diff --git a/demos/widgetsgallery/templatepage.cpp b/demos/widgetsgallery/templatepage.cpp
index f92ecf90..506223e3 100644
--- a/demos/widgetsgallery/templatepage.cpp
+++ b/demos/widgetsgallery/templatepage.cpp
@@ -4,7 +4,7 @@
** All rights reserved.
** Contact: Nokia Corporation (directui@nokia.com)
**
-** This file is part of libdui.
+** This file is part of libmeegotouch.
**
** If you have questions regarding the use of this file, please contact
** Nokia at directui@nokia.com.
@@ -19,14 +19,14 @@
#include "templatepage.h"
-#include <DuiLayout>
-#include <DuiLinearLayoutPolicy>
-#include <DuiApplication>
-#include <DuiWindow>
-#include <DuiButton>
-#include <DuiSeparator>
-#include <DuiLabel>
-#include <DuiLocale>
+#include <MLayout>
+#include <MLinearLayoutPolicy>
+#include <MApplication>
+#include <MWindow>
+#include <MButton>
+#include <MSeparator>
+#include <MLabel>
+#include <MLocale>
TemplatePage::TemplatePage() :
gid(0),
@@ -69,36 +69,36 @@ int TemplatePage::groupID()
void TemplatePage::createContent()
{
- DuiApplicationPage::createContent();
+ MApplicationPage::createContent();
createLayout();
- containerLayout = new DuiLayout(container);
- containerPolicy = new DuiLinearLayoutPolicy(containerLayout, Qt::Vertical);
+ containerLayout = new MLayout(container);
+ containerPolicy = new MLinearLayoutPolicy(containerLayout, Qt::Vertical);
containerLayout->setPolicy(containerPolicy);
}
void TemplatePage::createLayout()
{
QGraphicsWidget *panel = centralWidget();
- layout = new DuiLayout(panel);
+ layout = new MLayout(panel);
- landscapePolicy = new DuiLinearLayoutPolicy(layout, Qt::Horizontal);
+ landscapePolicy = new MLinearLayoutPolicy(layout, Qt::Horizontal);
landscapePolicy->setContentsMargins(0, 30, 0, 0);
- portraitPolicy = new DuiLinearLayoutPolicy(layout, Qt::Vertical);
+ portraitPolicy = new MLinearLayoutPolicy(layout, Qt::Vertical);
portraitPolicy->setContentsMargins(0, 30, 0, 0);
layout->setLandscapePolicy(landscapePolicy);
layout->setPortraitPolicy(portraitPolicy);
- container = new DuiWidget();
+ container = new MWidget();
container->setMinimumWidth(0);
container->setPreferredWidth(0);
container->setSizePolicy(QSizePolicy::Expanding,QSizePolicy::Preferred);
- separator = new DuiSeparator();
+ separator = new MSeparator();
separator->setOrientation(Qt::Vertical);
- infoLabel = new DuiLabel();
+ infoLabel = new MLabel();
infoLabel->setMinimumWidth(0);
infoLabel->setPreferredWidth(0);
infoLabel->setWordWrap(true);