Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
[core, qt] Generalized source change notification
Browse files Browse the repository at this point in the history
This same notification can in the future be used for other changes to a source.
  • Loading branch information
1ec5 committed Sep 26, 2016
1 parent 7ff036c commit 0f5b194
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion platform/qt/include/qmapbox.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ enum MapChange {
MapChangeDidFinishRenderingMap,
MapChangeDidFinishRenderingMapFullyRendered,
MapChangeDidFinishLoadingStyle,
MapChangeSourceAttributionDidChange
MapChangeSourceDidChange
};

struct Q_DECL_EXPORT CameraOptions {
Expand Down
2 changes: 1 addition & 1 deletion platform/qt/src/qmapbox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ static_assert(mbgl::underlying_type(QMapbox::MapChangeWillStartRenderingMap) ==
static_assert(mbgl::underlying_type(QMapbox::MapChangeDidFinishRenderingMap) == mbgl::underlying_type(mbgl::MapChangeDidFinishRenderingMap), "error");
static_assert(mbgl::underlying_type(QMapbox::MapChangeDidFinishRenderingMapFullyRendered) == mbgl::underlying_type(mbgl::MapChangeDidFinishRenderingMapFullyRendered), "error");
static_assert(mbgl::underlying_type(QMapbox::MapChangeDidFinishLoadingStyle) == mbgl::underlying_type(mbgl::MapChangeDidFinishLoadingStyle), "error");
static_assert(mbgl::underlying_type(QMapbox::MapChangeSourceAttributionDidChange) == mbgl::underlying_type(mbgl::MapChangeSourceAttributionDidChange), "error");
static_assert(mbgl::underlying_type(QMapbox::MapChangeSourceDidChange) == mbgl::underlying_type(mbgl::MapChangeSourceDidChange), "error");

namespace QMapbox {

Expand Down
2 changes: 1 addition & 1 deletion src/mbgl/map/change.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ enum MapChange : uint8_t {
MapChangeDidFinishRenderingMap = 12,
MapChangeDidFinishRenderingMapFullyRendered = 13,
MapChangeDidFinishLoadingStyle = 14,
MapChangeSourceAttributionDidChange = 15
MapChangeSourceDidChange = 15
};

} // namespace mbgl
2 changes: 1 addition & 1 deletion src/mbgl/map/map.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -982,7 +982,7 @@ void Map::onLowMemory() {
}

void Map::Impl::onSourceAttributionChanged(style::Source&, const std::string&) {
view.notifyMapChange(MapChangeSourceAttributionDidChange);
view.notifyMapChange(MapChangeSourceDidChange);
}

void Map::Impl::onUpdate(Update flags) {
Expand Down

0 comments on commit 0f5b194

Please sign in to comment.