diff options
author | No'am Rosenthal <noam.rosenthal@nokia.com> | 2009-11-26 15:17:27 -0800 |
---|---|---|
committer | No'am Rosenthal <noam.rosenthal@nokia.com> | 2009-11-26 15:17:27 -0800 |
commit | cdb910b166c6d139dac3a7801d6aac848d8b51d9 (patch) | |
tree | b249f550caf9e6cf190dda84d4aea8e6b18df2aa /qmlscxml | |
parent | 88302167db167becb15b46ad1ef821251aed1769 (diff) |
WIP: QmlScxml
Diffstat (limited to 'qmlscxml')
-rw-r--r-- | qmlscxml/qmlscxml.cpp | 42 | ||||
-rw-r--r-- | qmlscxml/qmlscxml.h | 40 |
2 files changed, 82 insertions, 0 deletions
diff --git a/qmlscxml/qmlscxml.cpp b/qmlscxml/qmlscxml.cpp index 2183945..04a4c89 100644 --- a/qmlscxml/qmlscxml.cpp +++ b/qmlscxml/qmlscxml.cpp @@ -1,3 +1,43 @@ +/**************************************************************************** +** +** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of SCXML on Qt labs +** +** $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 Technology Preview License Agreement accompanying +** this package. +** +** 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.1, included in the file LGPL_EXCEPTION.txt in this package. +** +** If you have questions regarding the use of this file, please contact +** Nokia at qt-info@nokia.com. +** +** +** +** +** +** +** +** +** $QT_END_LICENSE$ +** +****************************************************************************/ #include "qmlscxml.h" #include "qscxml.h" #include <QDebug> @@ -147,12 +187,14 @@ void QmlScxml::setSource(const QUrl & u) void QmlScxml::onDataChanged(const QString & key) { + qDebug() << "onDataChanged" << key; m_data->blockSignals(true); scxml->setData(key,(*m_data)[key]); m_data->blockSignals(false); } void QmlScxml::onDataChanged(const QString & key, const QVariant & value) { + qDebug() << "onDataChanged" << key << value; if (m_data) { (*m_data)[key] = value; } diff --git a/qmlscxml/qmlscxml.h b/qmlscxml/qmlscxml.h index b44b45f..c727ecc 100644 --- a/qmlscxml/qmlscxml.h +++ b/qmlscxml/qmlscxml.h @@ -1,3 +1,43 @@ +/**************************************************************************** +** +** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of SCXML on Qt labs +** +** $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 Technology Preview License Agreement accompanying +** this package. +** +** 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.1, included in the file LGPL_EXCEPTION.txt in this package. +** +** If you have questions regarding the use of this file, please contact +** Nokia at qt-info@nokia.com. +** +** +** +** +** +** +** +** +** $QT_END_LICENSE$ +** +****************************************************************************/ #ifndef QMLSCXML_H #define QMLSCXML_H |