[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdeedu/marble/src/plugins/marble/test
From: Torsten Rahn <tackat () kde ! org>
Date: 2008-05-12 10:32:06
Message-ID: 1210588326.539550.23436.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 806759 by rahn:
- Some advertizing for aK^WAkademy 2008
M +18 -2 MarbleTestPlugin.cpp
--- trunk/KDE/kdeedu/marble/src/plugins/marble/test/MarbleTestPlugin.cpp \
#806758:806759 @@ -12,7 +12,7 @@
#include <QtGui/QColor>
#include <QtGui/QPixmap>
-
+#include <QtGui/QRadialGradient>
#include "MarbleDirs.h"
#include "GeoPainter.h"
#include "GeoDataPoint.h"
@@ -200,8 +200,24 @@
brush.setStyle( Qt::SolidPattern );
painter->setBrush( brush );
- painter->drawAnnotation ( sotm, "State of the Map,\n 12-13 July 2008,\n" );
+ painter->drawAnnotation ( sotm, "State of the Map,\n 12-13 July 2008,\n OSM \
conference" );
+ GeoDataPoint akademy2008(4.5, 51.1, 0.0, GeoDataPoint::Degree );
+
+ painter->setPen( QColor( 99, 99, 0 ) );
+
+ QRadialGradient radialGrad(QPointF(100, 100), 100);
+ radialGrad.setColorAt(0, QColor( 198, 198, 198, 200 ) );
+ radialGrad.setColorAt(0.5, QColor( 199, 198, 99, 200 ) );
+ radialGrad.setColorAt( 1, Qt::white );
+ radialGrad.setSpread( QGradient::ReflectSpread );
+
+ QBrush gradientBrush( radialGrad );
+// brush.setStyle( Qt::SolidPattern );
+ painter->setBrush( gradientBrush );
+
+ painter->drawAnnotation ( akademy2008, "Akademy 2008,\n 9-15 August 2008,\n \
KDE conference", QSize(130, 120), 10, 30, 15, 15 ); +
return true;
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic