Changeset View
Changeset View
Standalone View
Standalone View
src/plugins/render/twitter/twitterPlugin.cpp
Show All 29 Lines | 29 | { | |||
---|---|---|---|---|---|
30 | return QStringList("twitter"); | 30 | return QStringList("twitter"); | ||
31 | } | 31 | } | ||
32 | 32 | | |||
33 | QString twitterPlugin::renderPolicy() const | 33 | QString twitterPlugin::renderPolicy() const | ||
34 | { | 34 | { | ||
35 | return QString("ALWAYS"); | 35 | return QString("ALWAYS"); | ||
36 | } | 36 | } | ||
37 | 37 | | |||
38 | QStringList twitterPlugin::renderPosition() const | 38 | RenderPositions twitterPlugin::renderPositions() const | ||
39 | { | 39 | { | ||
40 | return QStringList("ALWAYS_ON_TOP"); | 40 | return AlwaysOnTopRenderPosition; | ||
41 | } | 41 | } | ||
42 | 42 | | |||
43 | QString twitterPlugin::name() const | 43 | QString twitterPlugin::name() const | ||
44 | { | 44 | { | ||
45 | return tr("twitter "); | 45 | return tr("twitter "); | ||
46 | } | 46 | } | ||
47 | 47 | | |||
48 | QString twitterPlugin::guiString() const | 48 | QString twitterPlugin::guiString() const | ||
Show All 27 Lines | |||||
76 | } | 76 | } | ||
77 | 77 | | |||
78 | bool twitterPlugin::isInitialized() const | 78 | bool twitterPlugin::isInitialized() const | ||
79 | { | 79 | { | ||
80 | return true; | 80 | return true; | ||
81 | } | 81 | } | ||
82 | 82 | | |||
83 | bool twitterPlugin::render(GeoPainter *painter, ViewportParams *viewport, | 83 | bool twitterPlugin::render(GeoPainter *painter, ViewportParams *viewport, | ||
84 | const QString& renderPos, GeoSceneLayer * layer) | 84 | RenderPosition renderPos, GeoSceneLayer *layer) | ||
85 | { | 85 | { | ||
86 | QBrush brush(QColor(99, 198, 198, 80)); | 86 | QBrush brush(QColor(99, 198, 198, 80)); | ||
87 | painter->setPen(QColor(198, 99, 99, 255)); | 87 | painter->setPen(QColor(198, 99, 99, 255)); | ||
88 | brush.setColor(QColor(255, 255, 255, 200)); | 88 | brush.setColor(QColor(255, 255, 255, 200)); | ||
89 | brush.setStyle(Qt::SolidPattern); | 89 | brush.setStyle(Qt::SolidPattern); | ||
90 | painter->setBrush(brush); | 90 | painter->setBrush(brush); | ||
91 | 91 | | |||
92 | if (privateFlagForRenderingTwitts >= 1) { | 92 | if (privateFlagForRenderingTwitts >= 1) { | ||
▲ Show 20 Lines • Show All 70 Lines • Show Last 20 Lines |