summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Jones <martin.jones@nokia.com>2009-11-27 01:50:11 (GMT)
committerMartin Jones <martin.jones@nokia.com>2009-11-27 01:50:11 (GMT)
commit03e80ad9057ecc12a3e61e8a968e390023e5561d (patch)
treeb21621e20bafa730e2d9cf8392c69ec742b01ca7
parent97a5db1cd10a230198cb61a0a52e79c4cdbb6fac (diff)
parent249bb31dc9fa12acff44ebf0effbdaedc43b5305 (diff)
downloadQt-03e80ad9057ecc12a3e61e8a968e390023e5561d.zip
Qt-03e80ad9057ecc12a3e61e8a968e390023e5561d.tar.gz
Qt-03e80ad9057ecc12a3e61e8a968e390023e5561d.tar.bz2
Merge branch 'kinetic-declarativeui' of git@scm.dev.nokia.troll.no:qt/kinetic into kinetic-declarativeui
-rwxr-xr-xdemos/declarative/minehunt/minehuntbin302213 -> 0 bytes
-rw-r--r--examples/declarative/loader/loader.pro2
-rw-r--r--examples/declarative/loader/qlistmodelinterface.h85
-rw-r--r--examples/declarative/loader/qmlfolderlistmodel.h4
-rw-r--r--tools/qmlviewer/qmlviewer.pro3
5 files changed, 90 insertions, 4 deletions
diff --git a/demos/declarative/minehunt/minehunt b/demos/declarative/minehunt/minehunt
deleted file mode 100755
index 94584a9..0000000
--- a/demos/declarative/minehunt/minehunt
+++ /dev/null
Binary files differ
diff --git a/examples/declarative/loader/loader.pro b/examples/declarative/loader/loader.pro
index 9ee0933..0ad71f7 100644
--- a/examples/declarative/loader/loader.pro
+++ b/examples/declarative/loader/loader.pro
@@ -1,5 +1,5 @@
SOURCES = main.cpp qmlfolderlistmodel.cpp
-HEADERS = qmlfolderlistmodel.h
+HEADERS = qmlfolderlistmodel.h qlistmodelinterface.h
RESOURCES = loader.qrc
QT += script declarative network
diff --git a/examples/declarative/loader/qlistmodelinterface.h b/examples/declarative/loader/qlistmodelinterface.h
new file mode 100644
index 0000000..738378e
--- /dev/null
+++ b/examples/declarative/loader/qlistmodelinterface.h
@@ -0,0 +1,85 @@
+/****************************************************************************
+**
+** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
+** Contact: Qt Software Information (qt-info@nokia.com)
+**
+** This file is part of the QtDeclarative module of the Qt Toolkit.
+**
+** $QT_BEGIN_LICENSE:LGPL$
+** No Commercial Usage
+** This file contains pre-release code and may not be distributed.
+** You may use this file in accordance with the terms and conditions
+** contained in the either Technology Preview License Agreement or the
+** Beta Release License Agreement.
+**
+** GNU Lesser General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU Lesser
+** General Public License version 2.1 as published by the Free Software
+** Foundation and appearing in the file LICENSE.LGPL included in the
+** packaging of this file. Please review the following information to
+** ensure the GNU Lesser General Public License version 2.1 requirements
+** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
+**
+** In addition, as a special exception, Nokia gives you certain
+** additional rights. These rights are described in the Nokia Qt LGPL
+** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this
+** package.
+**
+** GNU General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU
+** General Public License version 3.0 as published by the Free Software
+** Foundation and appearing in the file LICENSE.GPL included in the
+** packaging of this file. Please review the following information to
+** ensure the GNU General Public License version 3.0 requirements will be
+** met: http://www.gnu.org/copyleft/gpl.html.
+**
+** If you are unsure which license is appropriate for your use, please
+** contact the sales department at qt-sales@nokia.com.
+** $QT_END_LICENSE$
+**
+****************************************************************************/
+
+#ifndef QLISTMODELINTERFACE_H
+#define QLISTMODELINTERFACE_H
+
+#include <QtCore/QHash>
+#include <QtCore/QVariant>
+
+
+QT_BEGIN_HEADER
+
+QT_BEGIN_NAMESPACE
+
+QT_MODULE(Declarative)
+
+class Q_DECLARATIVE_EXPORT QListModelInterface : public QObject
+{
+ Q_OBJECT
+ public:
+ QListModelInterface(QObject *parent = 0) : QObject(parent) {}
+ virtual ~QListModelInterface() {}
+
+ virtual int count() const = 0;
+ virtual QHash<int,QVariant> data(int index, const QList<int>& roles = QList<int>()) const = 0;
+ virtual bool setData(int index, const QHash<int,QVariant>& values)
+ { Q_UNUSED(index); Q_UNUSED(values); return false; }
+
+ virtual QList<int> roles() const = 0;
+ virtual QString toString(int role) const = 0;
+
+ Q_SIGNALS:
+ void itemsInserted(int index, int count);
+ void itemsRemoved(int index, int count);
+ void itemsMoved(int from, int to, int count);
+ void itemsChanged(int index, int count, const QList<int> &roles);
+
+ protected:
+ QListModelInterface(QObjectPrivate &dd, QObject *parent)
+ : QObject(dd, parent) {}
+};
+
+
+QT_END_NAMESPACE
+
+QT_END_HEADER
+#endif //QTREEMODELINTERFACE_H
diff --git a/examples/declarative/loader/qmlfolderlistmodel.h b/examples/declarative/loader/qmlfolderlistmodel.h
index f4fa9ed..f50719a 100644
--- a/examples/declarative/loader/qmlfolderlistmodel.h
+++ b/examples/declarative/loader/qmlfolderlistmodel.h
@@ -42,8 +42,8 @@
#ifndef QMLFOLDERLISTMODEL_H
#define QMLFOLDERLISTMODEL_H
-#include <QtDeclarative/qml.h>
-#include <QtDeclarative/QListModelInterface>
+#include <qml.h>
+#include "qlistmodelinterface.h"
class QmlContext;
class QModelIndex;
diff --git a/tools/qmlviewer/qmlviewer.pro b/tools/qmlviewer/qmlviewer.pro
index 899a3ab..ed26d00 100644
--- a/tools/qmlviewer/qmlviewer.pro
+++ b/tools/qmlviewer/qmlviewer.pro
@@ -22,7 +22,8 @@ SOURCES += main.cpp \
qfxtester.cpp
FORMS = recopts.ui \
proxysettings.ui
-include($$QT_SOURCE_TREE/tools/shared/deviceskin/deviceskin.pri)
+INCLUDEPATH += ../../include/QtDeclarative
+include(../shared/deviceskin/deviceskin.pri)
target.path = $$[QT_INSTALL_BINS]
INSTALLS += target