From 4e26c800f2274754a670b0353e3fb4afd55514c3 Mon Sep 17 00:00:00 2001 From: Robert Loehning Date: Wed, 21 Jul 2010 17:36:55 +0200 Subject: Compile fix for MSVC --- examples/tutorials/modelview/2_formatting/mymodel.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- cgit v0.12