summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Loehning <robert.loehning@nokia.com>2010-07-21 17:40:24 (GMT)
committerRobert Loehning <robert.loehning@nokia.com>2010-07-21 17:40:24 (GMT)
commitc05f38f37fbe2192d135881de3dba087ac71ffe1 (patch)
tree5f77e3fc5fed6780e795be832d52963a87e7d5cf
parent4e26c800f2274754a670b0353e3fb4afd55514c3 (diff)
downloadQt-c05f38f37fbe2192d135881de3dba087ac71ffe1.zip
Qt-c05f38f37fbe2192d135881de3dba087ac71ffe1.tar.gz
Qt-c05f38f37fbe2192d135881de3dba087ac71ffe1.tar.bz2
Revert "Compile fix for MSVC"
This reverts commit 4e26c800f2274754a670b0353e3fb4afd55514c3. Already fixed in ceff2321d7b7eaa4608a1baa5de66dbce8733342
-rwxr-xr-xexamples/tutorials/modelview/2_formatting/mymodel.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/tutorials/modelview/2_formatting/mymodel.cpp b/examples/tutorials/modelview/2_formatting/mymodel.cpp
index 98bbe02..e34e014 100755
--- a/examples/tutorials/modelview/2_formatting/mymodel.cpp
+++ b/examples/tutorials/modelview/2_formatting/mymodel.cpp
@@ -89,8 +89,7 @@ QVariant MyModel::data(const QModelIndex &index, int role) const
if (row == 1 && col == 2) //change background only for cell(1,2)
{
- QColor redColor(Qt::red);
- QBrush redBackground(redColor);
+ QBrush redBackground(QColor(Qt::red));
return redBackground;
}
break;