summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Kamm <christian.d.kamm@nokia.com>2010-04-01 11:03:04 +0200
committerChristian Kamm <christian.d.kamm@nokia.com>2010-04-01 11:03:04 +0200
commitac077631251bbbc0152e654e44010534340522a9 (patch)
treeb03628bbad196e8b81008e5fcebe6460acb14444
parent2fd7e9569dbb24fbbdd2513d93444f4536921ff1 (diff)
Update example for recent customizability changes.
Reviewed-by: owolff
-rw-r--r--example/main.cpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/example/main.cpp b/example/main.cpp
index d79cb05..6160740 100644
--- a/example/main.cpp
+++ b/example/main.cpp
@@ -1,4 +1,6 @@
#include <QtGui/QApplication>
+#include <QtGui/QLabel>
+
#include "remotecontrolwidget.h"
#include "scriptadapter.h"
#include "components/scriptui.h"
@@ -14,7 +16,7 @@ int main(int argc, char *argv[])
RemoteControlWidget w;
LocationUi locationUi;
- w.addToolBoxPage(&locationUi);
+ w.addSimulateSubPage(&locationUi);
BatteryButton batteryButton;
w.addMenuButton(&batteryButton);
@@ -31,7 +33,12 @@ int main(int argc, char *argv[])
ScriptAdapter adapter;
adapter.addScriptInterface("location", locationUi.scriptInterface());
ScriptUi scriptUi(&adapter);
- w.addToolBoxPage(&scriptUi);
+ w.addSimulateSubPage(&scriptUi);
+
+ QLabel *viewLabel = new QLabel("Your widget here!");
+ PageWidget *view = new PageWidget("View", viewLabel);
+ view->setHideable(true);
+ w.addPage(view);
w.show();
return a.exec();