Changeset View
Changeset View
Standalone View
Standalone View
src/lib/marble/AbstractFloatItem.cpp
Show First 20 Lines • Show All 117 Lines • ▼ Show 20 Line(s) | 116 | { | |||
---|---|---|---|---|---|
118 | update(); | 118 | update(); | ||
119 | } | 119 | } | ||
120 | 120 | | |||
121 | QString AbstractFloatItem::renderPolicy() const | 121 | QString AbstractFloatItem::renderPolicy() const | ||
122 | { | 122 | { | ||
123 | return "ALWAYS"; | 123 | return "ALWAYS"; | ||
124 | } | 124 | } | ||
125 | 125 | | |||
126 | QStringList AbstractFloatItem::renderPosition() const | 126 | RenderPositions AbstractFloatItem::renderPositions() const | ||
127 | { | 127 | { | ||
128 | return QStringList( "FLOAT_ITEM" ); | 128 | return FloatItemRenderPosition; | ||
129 | } | 129 | } | ||
130 | 130 | | |||
131 | void AbstractFloatItem::setVisible( bool visible ) | 131 | void AbstractFloatItem::setVisible( bool visible ) | ||
132 | { | 132 | { | ||
133 | // Reimplemented since AbstractFloatItem does multiple inheritance | 133 | // Reimplemented since AbstractFloatItem does multiple inheritance | ||
134 | // and the (set)Visible() methods are available in both base classes! | 134 | // and the (set)Visible() methods are available in both base classes! | ||
135 | RenderPlugin::setVisible( visible ); | 135 | RenderPlugin::setVisible( visible ); | ||
136 | } | 136 | } | ||
▲ Show 20 Lines • Show All 60 Lines • ▼ Show 20 Line(s) | 196 | { | |||
197 | contextMenu()->exec( w->mapToGlobal( e->pos() ) ); | 197 | contextMenu()->exec( w->mapToGlobal( e->pos() ) ); | ||
198 | } | 198 | } | ||
199 | 199 | | |||
200 | void AbstractFloatItem::toolTipEvent ( QHelpEvent *e ) | 200 | void AbstractFloatItem::toolTipEvent ( QHelpEvent *e ) | ||
201 | { | 201 | { | ||
202 | Q_UNUSED( e ); | 202 | Q_UNUSED( e ); | ||
203 | } | 203 | } | ||
204 | 204 | | |||
205 | bool AbstractFloatItem::render( GeoPainter *painter, ViewportParams *viewport, | 205 | bool AbstractFloatItem::render(GeoPainter *painter, ViewportParams *viewport, | ||
206 | const QString& renderPos, GeoSceneLayer * layer ) | 206 | RenderPosition renderPos, GeoSceneLayer *layer) | ||
207 | { | 207 | { | ||
208 | Q_UNUSED(painter) | 208 | Q_UNUSED(painter) | ||
209 | Q_UNUSED(viewport) | 209 | Q_UNUSED(viewport) | ||
210 | Q_UNUSED(renderPos) | 210 | Q_UNUSED(renderPos) | ||
211 | Q_UNUSED(layer) | 211 | Q_UNUSED(layer) | ||
212 | 212 | | |||
213 | return true; | 213 | return true; | ||
214 | } | 214 | } | ||
▲ Show 20 Lines • Show All 44 Lines • Show Last 20 Lines |