summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTorsten Rahn <rahn@kde.org>2016-10-28 12:53:54 (GMT)
committerFriedrich W. H. Kossebau <kossebau@kde.org>2016-11-05 16:49:24 (GMT)
commit75d5925bd995ddb9f4539b7af60235a6b1f99ae5 (patch)
tree4e1d22e96c3fb087318c5bba96975f615aa724c3
parent3b54783554040eec8df01508ec965dce60f9e6fd (diff)
Set the QQuickPaintedItem opaque and don't render the application
background twice ...
-rw-r--r--src/apps/marble-maps/MainScreen.qml8
-rw-r--r--src/lib/marble/declarative/MarbleQuickItem.cpp1
2 files changed, 3 insertions, 6 deletions
diff --git a/src/apps/marble-maps/MainScreen.qml b/src/apps/marble-maps/MainScreen.qml
index 7aa8fde..e268382 100644
--- a/src/apps/marble-maps/MainScreen.qml
+++ b/src/apps/marble-maps/MainScreen.qml
@@ -25,17 +25,13 @@ ApplicationWindow {
width: 600
height: 400
+ color: palette.window
+
SystemPalette{
id: palette
colorGroup: SystemPalette.Active
}
- Rectangle {
- id: background
- anchors.fill: parent
- color: palette.window
- }
-
Item {
id: mapItem
anchors {
diff --git a/src/lib/marble/declarative/MarbleQuickItem.cpp b/src/lib/marble/declarative/MarbleQuickItem.cpp
index 9075786..ee1e151 100644
--- a/src/lib/marble/declarative/MarbleQuickItem.cpp
+++ b/src/lib/marble/declarative/MarbleQuickItem.cpp
@@ -187,6 +187,7 @@ namespace Marble
,d(new MarbleQuickItemPrivate(this))
{
setRenderTarget(QQuickPaintedItem::FramebufferObject);
+ setOpaquePainting(true);
qRegisterMetaType<Placemark*>("Placemark*");
foreach (AbstractFloatItem *item, d->m_map.floatItems()) {