Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Education
Marble
Commits
65226b17
Commit
65226b17
authored
Jun 27, 2007
by
Torsten Rahn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing Marble's label colors.
svn path=/trunk/KDE/kdeedu/marble/; revision=680849
parent
0d7a4ed3
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
0 deletions
+9
-0
src/lib/MarbleModel.cpp
src/lib/MarbleModel.cpp
+2
-0
src/lib/MarbleWidget.cpp
src/lib/MarbleWidget.cpp
+1
-0
src/lib/PlaceMarkContainer.h
src/lib/PlaceMarkContainer.h
+6
-0
No files found.
src/lib/MarbleModel.cpp
View file @
65226b17
...
...
@@ -208,6 +208,8 @@ void MarbleModel::setMapTheme( const QString& selectedmap )
if
(
d
->
m_placeMarkContainer
==
0
)
d
->
m_placeMarkContainer
=
new
PlaceMarkContainer
(
"placecontainer"
);
d
->
m_placeMarkContainer
->
clearTextPixmaps
();
if
(
d
->
m_placemarkpainter
==
0
)
d
->
m_placemarkpainter
=
new
PlaceMarkPainter
(
this
);
...
...
src/lib/MarbleWidget.cpp
View file @
65226b17
...
...
@@ -353,6 +353,7 @@ void MarbleWidget::centerOn(const QModelIndex& index)
else
d
->
m_crosshair
.
setEnabled
(
false
);
d
->
m_model
->
placeMarkContainer
()
->
clearTextPixmaps
();
d
->
m_model
->
placeMarkContainer
()
->
sort
();
repaint
();
...
...
src/lib/PlaceMarkContainer.h
View file @
65226b17
...
...
@@ -53,6 +53,12 @@ class PlaceMarkContainer : public QVector<PlaceMark*>
}
}
inline
void
clearTextPixmaps
()
{
foreach
(
PlaceMark
*
mark
,
*
this
)
mark
->
clearTextPixmap
();
}
inline
void
clearSelected
()
{
foreach
(
PlaceMark
*
mark
,
*
this
)
{
...
...
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