summaryrefslogtreecommitdiffstats
path: root/examples/xmlpatterns
diff options
context:
space:
mode:
authorBenjamin Poulain <benjamin.poulain@nokia.com>2009-07-17 09:44:45 +0200
committerBenjamin Poulain <benjamin.poulain@nokia.com>2009-07-17 09:51:34 +0200
commit28c7798752b35d68eaa6f0dfe1cad91965f90729 (patch)
tree2cb679d7bd06a96913607b00ddd8d54ecf564e8b /examples/xmlpatterns
parent86ea4dbb5a748491656d9621ecd58238bc3e3d82 (diff)
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
Diffstat (limited to 'examples/xmlpatterns')
-rw-r--r--examples/xmlpatterns/trafficinfo/mainwindow.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/xmlpatterns/trafficinfo/mainwindow.cpp b/examples/xmlpatterns/trafficinfo/mainwindow.cpp
index 428ed76d21..c6bd313bd3 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);