summaryrefslogtreecommitdiffstats
path: root/examples/tutorials/modelview
diff options
context:
space:
mode:
authorKim Motoyoshi Kalland <kim.kalland@nokia.com>2010-09-03 14:55:27 (GMT)
committerKim Motoyoshi Kalland <kim.kalland@nokia.com>2010-09-03 14:55:27 (GMT)
commit67bdfe3360c3319f2cda7197f34272dd5e3439c9 (patch)
tree415bb59a1e6fbff823252d70efaa92aa63859663 /examples/tutorials/modelview
parent344ae27327b3fd36b0288636f41d73d91694eb02 (diff)
downloadQt-67bdfe3360c3319f2cda7197f34272dd5e3439c9.zip
Qt-67bdfe3360c3319f2cda7197f34272dd5e3439c9.tar.gz
Qt-67bdfe3360c3319f2cda7197f34272dd5e3439c9.tar.bz2
Fixed compilation of the modelview tutorial on Windows.
Reviewed-by: Trond
Diffstat (limited to 'examples/tutorials/modelview')
-rwxr-xr-xexamples/tutorials/modelview/2_formatting/mymodel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/tutorials/modelview/2_formatting/mymodel.cpp b/examples/tutorials/modelview/2_formatting/mymodel.cpp
index 3e13ff4..2d2556c 100755
--- a/examples/tutorials/modelview/2_formatting/mymodel.cpp
+++ b/examples/tutorials/modelview/2_formatting/mymodel.cpp
@@ -89,7 +89,7 @@ QVariant MyModel::data(const QModelIndex &index, int role) const
if (row == 1 && col == 2) //change background only for cell(1,2)
{
- QBrush redBackground(QColor(Qt::red));
+ QBrush redBackground(Qt::red);
return redBackground;
}
break;