Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Marble
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
7
Merge Requests
7
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Education
Marble
Commits
6a738660
Commit
6a738660
authored
Jul 03, 2016
by
Bernhard Beschow
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove GeoDataFeature::presetStyle(), use StyleBuilder::presetStyle() directly
parent
c68ad733
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
10 deletions
+6
-10
src/lib/marble/geodata/data/GeoDataFeature.cpp
src/lib/marble/geodata/data/GeoDataFeature.cpp
+0
-6
src/lib/marble/geodata/data/GeoDataFeature.h
src/lib/marble/geodata/data/GeoDataFeature.h
+0
-2
src/lib/marble/osm/OsmPresetLibrary.cpp
src/lib/marble/osm/OsmPresetLibrary.cpp
+6
-2
No files found.
src/lib/marble/geodata/data/GeoDataFeature.cpp
View file @
6a738660
...
...
@@ -160,12 +160,6 @@ EnumFeatureId GeoDataFeature::featureId() const
return
d
->
featureId
();
}
QSharedPointer
<
const
GeoDataStyle
>
GeoDataFeature
::
presetStyle
(
GeoDataVisualCategory
category
)
{
return
GeoDataFeaturePrivate
::
s_styleBuilder
.
presetStyle
(
category
);
}
QString
GeoDataFeature
::
name
()
const
{
return
d
->
m_name
;
...
...
src/lib/marble/geodata/data/GeoDataFeature.h
View file @
6a738660
...
...
@@ -633,8 +633,6 @@ class GEODATA_EXPORT GeoDataFeature : public GeoDataObject
/// Unserialize the contents of the feature from @p stream.
virtual
void
unpack
(
QDataStream
&
stream
);
static
QSharedPointer
<
const
GeoDataStyle
>
presetStyle
(
GeoDataVisualCategory
category
);
protected:
// the d-pointer needs to be protected to be accessible from derived classes
GeoDataFeaturePrivate
*
d
;
...
...
src/lib/marble/osm/OsmPresetLibrary.cpp
View file @
6a738660
...
...
@@ -15,6 +15,7 @@
#include "GeoDataPlacemark.h"
#include "GeoDataStyle.h"
#include "OsmPlacemarkData.h"
#include "StyleBuilder.h"
#include <QMap>
...
...
@@ -467,8 +468,11 @@ void OsmPresetLibrary::initializeAdditionalOsmTags()
GeoDataStyle
::
ConstPtr
OsmPresetLibrary
::
presetStyle
(
const
OsmTag
&
tag
)
{
GeoDataFeature
::
GeoDataVisualCategory
category
=
osmVisualCategory
(
tag
.
first
+
"="
+
tag
.
second
);
return
GeoDataFeature
::
presetStyle
(
category
);
static
const
StyleBuilder
styleBuilder
;
const
GeoDataFeature
::
GeoDataVisualCategory
category
=
osmVisualCategory
(
tag
.
first
+
"="
+
tag
.
second
);
return
styleBuilder
.
presetStyle
(
category
);
}
bool
OsmPresetLibrary
::
hasVisualCategory
(
const
OsmTag
&
tag
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment