Skip to content

Commit

Permalink
Background color for overview widget now set as background color of w…
Browse files Browse the repository at this point in the history
…indows.

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5006 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
wonder committed Mar 11, 2006
1 parent 64d8bc0 commit 0b3e22f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 0 additions & 3 deletions src/gui/qgsmapcanvas.cpp
Expand Up @@ -841,9 +841,6 @@ void QgsMapCanvas::setCanvasColor(const QColor & theColor)


// background of Q3Canvas // background of Q3Canvas
mCanvas->setBackgroundColor(theColor); mCanvas->setBackgroundColor(theColor);

if (mMapOverview)
mMapOverview->setbgColor(theColor);
} // setbgColor } // setbgColor




Expand Down
3 changes: 2 additions & 1 deletion src/gui/qgsmapoverviewcanvas.cpp
Expand Up @@ -70,7 +70,8 @@ QgsMapOverviewCanvas::QgsMapOverviewCanvas(QWidget * parent, QgsMapCanvas* mapCa


mMapRender = new QgsMapRender; mMapRender = new QgsMapRender;
mMapRender->setOverview(); mMapRender->setOverview();
setbgColor(Qt::white);
setbgColor(palette().window().color());
} }


QgsMapOverviewCanvas::~QgsMapOverviewCanvas() QgsMapOverviewCanvas::~QgsMapOverviewCanvas()
Expand Down

0 comments on commit 0b3e22f

Please sign in to comment.