summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMarius Bugge Monsen <mmonsen@trolltech.com>2009-10-01 16:14:18 +0200
committerMarius Bugge Monsen <mmonsen@trolltech.com>2009-10-01 16:14:18 +0200
commitf50738e6de28b84853af278672466eaa439f5569 (patch)
tree03b55a6253e91925f5b665565aedd145f4197ffd /src
parent30ad000c7bffcc1a3228a46c1d44dc99a4eb0d1b (diff)
Update the photoBrowser example to use the QStateMachine::SignalEvent type.
Rename QtDataRole::key() to QtDataRole::name().
Diffstat (limited to 'src')
-rw-r--r--src/qdataroles_p.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/qdataroles_p.h b/src/qdataroles_p.h
index 7c37584..f792524 100644
--- a/src/qdataroles_p.h
+++ b/src/qdataroles_p.h
@@ -75,8 +75,8 @@ public:
UserRole = 32
};
- static QByteArray key(int value) {
- const QMetaObject &metaObject = QtDataRoles().staticMetaObject;//static_cast<QtDataRoles*>(0)->staticQtMetaObject;
+ static QByteArray name(int value) {
+ const QMetaObject &metaObject = QtDataRoles().staticMetaObject;
const int index = metaObject.indexOfEnumerator("ItemDataRole");
if (index == -1)
qWarning() << "QtDataRoles: could not find ItemDataRoles enumerator";
@@ -85,7 +85,7 @@ public:
}
static int value(const QByteArray &name) {
- const QMetaObject &metaObject = QtDataRoles().staticMetaObject;//static_cast<QtDataRoles*>(0)->staticQtMetaObject;
+ const QMetaObject &metaObject = QtDataRoles().staticMetaObject;
const int index = metaObject.indexOfEnumerator("ItemDataRole");
if (index == -1)
qWarning() << "QtDataRoles: could not find ItemDataRoles enumerator";