Changeset View
Changeset View
Standalone View
Standalone View
src/lib/marble/layers/PopupLayer.cpp
Show First 20 Lines • Show All 72 Lines • ▼ Show 20 Line(s) | 64 | { | |||
---|---|---|---|---|---|
73 | connect( d->m_popupItem, SIGNAL(hide()), this, SLOT(hidePopupItem()) ); | 73 | connect( d->m_popupItem, SIGNAL(hide()), this, SLOT(hidePopupItem()) ); | ||
74 | } | 74 | } | ||
75 | 75 | | |||
76 | PopupLayer::~PopupLayer() | 76 | PopupLayer::~PopupLayer() | ||
77 | { | 77 | { | ||
78 | delete d; | 78 | delete d; | ||
79 | } | 79 | } | ||
80 | 80 | | |||
81 | QStringList PopupLayer::renderPosition() const | 81 | RenderPositions PopupLayer::renderPositions() const | ||
82 | { | 82 | { | ||
83 | return QStringList( "ALWAYS_ON_TOP" ); | 83 | return AlwaysOnTopRenderPosition; | ||
84 | } | 84 | } | ||
85 | 85 | | |||
86 | bool PopupLayer::render( GeoPainter *painter, ViewportParams *viewport, | 86 | bool PopupLayer::render(GeoPainter *painter, ViewportParams *viewport, | ||
87 | const QString&, GeoSceneLayer* ) | 87 | RenderPosition, GeoSceneLayer*) | ||
88 | { | 88 | { | ||
89 | if ( visible() ) { | 89 | if ( visible() ) { | ||
90 | d->setAppropriateSize( viewport ); | 90 | d->setAppropriateSize( viewport ); | ||
91 | d->m_popupItem->paintEvent( painter, viewport ); | 91 | d->m_popupItem->paintEvent( painter, viewport ); | ||
92 | } | 92 | } | ||
93 | 93 | | |||
94 | return true; | 94 | return true; | ||
95 | } | 95 | } | ||
▲ Show 20 Lines • Show All 119 Lines • Show Last 20 Lines |