diff options
author | Benjamin Poulain <benjamin.poulain@nokia.com> | 2009-07-17 07:44:45 (GMT) |
---|---|---|
committer | Benjamin Poulain <benjamin.poulain@nokia.com> | 2009-07-17 07:51:34 (GMT) |
commit | 28c7798752b35d68eaa6f0dfe1cad91965f90729 (patch) | |
tree | 2cb679d7bd06a96913607b00ddd8d54ecf564e8b | |
parent | 86ea4dbb5a748491656d9621ecd58238bc3e3d82 (diff) | |
download | Qt-28c7798752b35d68eaa6f0dfe1cad91965f90729.zip Qt-28c7798752b35d68eaa6f0dfe1cad91965f90729.tar.gz Qt-28c7798752b35d68eaa6f0dfe1cad91965f90729.tar.bz2 |
Update the example TrafficInfo for GCC 3.3
The example TrafficInfo did not compile on GCC 3.3 due to a bug in the
parser of GCC.
Task-number: 258208
-rw-r--r-- | examples/xmlpatterns/trafficinfo/mainwindow.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/xmlpatterns/trafficinfo/mainwindow.cpp b/examples/xmlpatterns/trafficinfo/mainwindow.cpp index 428ed76..c6bd313 100644 --- a/examples/xmlpatterns/trafficinfo/mainwindow.cpp +++ b/examples/xmlpatterns/trafficinfo/mainwindow.cpp @@ -111,7 +111,9 @@ void MainWindow::mousePressEvent(QMouseEvent *event) void MainWindow::paintEvent(QPaintEvent*) { - QLinearGradient gradient(QPoint(width()/2, 0), QPoint(width()/2, height())); + const QPoint start(width()/2, 0); + const QPoint finalStop(width()/2, height()); + QLinearGradient gradient(start, finalStop); const QColor qtGreen(102, 176, 54); gradient.setColorAt(0, qtGreen.dark()); gradient.setColorAt(0.5, qtGreen); |