summaryrefslogtreecommitdiffstats
path: root/examples/xml/dombookmarks/xbeltree.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/xml/dombookmarks/xbeltree.cpp')
-rw-r--r--examples/xml/dombookmarks/xbeltree.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/xml/dombookmarks/xbeltree.cpp b/examples/xml/dombookmarks/xbeltree.cpp
index d90cdc03b4..76ea5fb2bb 100644
--- a/examples/xml/dombookmarks/xbeltree.cpp
+++ b/examples/xml/dombookmarks/xbeltree.cpp
@@ -153,7 +153,7 @@ bool XbelTree::write(QIODevice *device) const
void XbelTree::updateDomElement(const QTreeWidgetItem *item, int column)
{
- QDomElement element = item->data(0, DomElementRole).value<QDomElement>();
+ QDomElement element = qvariant_cast<QDomElement>(item->data(0, DomElementRole));
if (!element.isNull()) {
if (column == 0) {
QDomElement oldTitleElement = element.firstChildElement(titleElement());