summaryrefslogtreecommitdiff
path: root/demos/interview/model.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'demos/interview/model.cpp')
-rw-r--r--demos/interview/model.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/demos/interview/model.cpp b/demos/interview/model.cpp
index 840bc605df..88f200dd2e 100644
--- a/demos/interview/model.cpp
+++ b/demos/interview/model.cpp
@@ -109,7 +109,7 @@ QVariant Model::headerData(int section, Qt::Orientation orientation, int role) c
if (role == Qt::DisplayRole)
return QString::number(section);
if (role == Qt::DecorationRole)
- return qVariantFromValue(services);
+ return QVariant::fromValue(services);
return QAbstractItemModel::headerData(section, orientation, role);
}