summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Loehning <robert.loehning@nokia.com>2010-07-21 15:36:55 (GMT)
committerRobert Loehning <robert.loehning@nokia.com>2010-07-21 15:56:03 (GMT)
commit4e26c800f2274754a670b0353e3fb4afd55514c3 (patch)
tree3d7a3b6c7855e37b9a9b405905875aca5accb423
parentc2f14423632c840bacd0254f90cd6132ed62a390 (diff)
downloadQt-4e26c800f2274754a670b0353e3fb4afd55514c3.zip
Qt-4e26c800f2274754a670b0353e3fb4afd55514c3.tar.gz
Qt-4e26c800f2274754a670b0353e3fb4afd55514c3.tar.bz2
Compile fix for MSVC
-rwxr-xr-xexamples/tutorials/modelview/2_formatting/mymodel.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/tutorials/modelview/2_formatting/mymodel.cpp b/examples/tutorials/modelview/2_formatting/mymodel.cpp
index e34e014..98bbe02 100755
--- a/examples/tutorials/modelview/2_formatting/mymodel.cpp
+++ b/examples/tutorials/modelview/2_formatting/mymodel.cpp
@@ -89,7 +89,8 @@ 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));
+ QColor redColor(Qt::red);
+ QBrush redBackground(redColor);
return redBackground;
}
break;