summaryrefslogtreecommitdiff
path: root/examples/tutorials
diff options
context:
space:
mode:
authorKim Motoyoshi Kalland <kim.kalland@nokia.com>2010-09-03 16:55:27 +0200
committerKim Motoyoshi Kalland <kim.kalland@nokia.com>2010-09-03 16:55:27 +0200
commit67bdfe3360c3319f2cda7197f34272dd5e3439c9 (patch)
tree415bb59a1e6fbff823252d70efaa92aa63859663 /examples/tutorials
parent344ae27327b3fd36b0288636f41d73d91694eb02 (diff)
downloadqt4-tools-67bdfe3360c3319f2cda7197f34272dd5e3439c9.tar.gz
Fixed compilation of the modelview tutorial on Windows.
Reviewed-by: Trond
Diffstat (limited to 'examples/tutorials')
-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 3e13ff4407..2d2556c2f7 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;