aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorchning <ext-chi.ning@nokia.com>2010-02-16 17:39:12 +0200
committerchning <ext-chi.ning@nokia.com>2010-02-18 14:05:33 +0200
commit0dcaf7ab86d21aa38d5ccfa5c3da27a51fb71ce3 (patch)
treefd7015a744bdc55608918fd10a9cfad5cbf33343 /examples
parent9a8a873f3428de19adc4a279ad6be48e003a5bcb (diff)
Changes: Update imtoolbar example, remove unused DuiGConfItem stuff
Revby: TrustMe
Diffstat (limited to 'examples')
-rw-r--r--examples/examples.pro1
-rw-r--r--examples/imtoolbar/.gitignore1
-rw-r--r--examples/imtoolbar/main.cpp16
3 files changed, 2 insertions, 16 deletions
diff --git a/examples/examples.pro b/examples/examples.pro
index a62f81b2..7dea2cf0 100644
--- a/examples/examples.pro
+++ b/examples/examples.pro
@@ -20,4 +20,5 @@ SUBDIRS = \
separatorTest \
testwidget \
trackergrid \
+ imtoolbar \
diff --git a/examples/imtoolbar/.gitignore b/examples/imtoolbar/.gitignore
new file mode 100644
index 00000000..6950ffe6
--- /dev/null
+++ b/examples/imtoolbar/.gitignore
@@ -0,0 +1 @@
+imtoolbar
diff --git a/examples/imtoolbar/main.cpp b/examples/imtoolbar/main.cpp
index ce907e1b..c6e79b53 100644
--- a/examples/imtoolbar/main.cpp
+++ b/examples/imtoolbar/main.cpp
@@ -20,7 +20,6 @@
#include <DuiApplication>
#include <DuiApplicationWindow>
#include <DuiTheme>
-#include <DuiGConfItem>
#include "imtoolbarpage.h"
namespace
@@ -37,21 +36,6 @@ int main(int argc, char **argv)
DuiApplicationWindow window;
window.show();
- //register the toolbar
- DuiGConfItem toolbarsGConf(InputMethodToolbars);
- QStringList toolbars = toolbarsGConf.value().toStringList();
- bool changed = false;
- if (!toolbars.contains("toolbar1")) {
- toolbars.append("toolbar1");
- changed = true;
- }
- if (!toolbars.contains("toolbar2")) {
- toolbars.append("toolbar2");
- changed = true;
- }
- if (changed)
- toolbarsGConf.set(QVariant(toolbars));
-
// Create application page and make it visible.
ImToolbarPage page;
page.appear();