summaryrefslogtreecommitdiffstats
path: root/examples/itemviews/stardelegate/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/itemviews/stardelegate/main.cpp')
-rw-r--r--examples/itemviews/stardelegate/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/itemviews/stardelegate/main.cpp b/examples/itemviews/stardelegate/main.cpp
index d9f655d..444017e 100644
--- a/examples/itemviews/stardelegate/main.cpp
+++ b/examples/itemviews/stardelegate/main.cpp
@@ -71,7 +71,7 @@ void populateTableWidget(QTableWidget *tableWidget)
QTableWidgetItem *item2 = new QTableWidgetItem(staticData[row].artist);
QTableWidgetItem *item3 = new QTableWidgetItem;
item3->setData(0,
- qVariantFromValue(StarRating(staticData[row].rating)));
+ QVariant::fromValue(StarRating(staticData[row].rating)));
tableWidget->setItem(row, 0, item0);
tableWidget->setItem(row, 1, item1);