Skip to content
Permalink
Browse files
Added accessor for canvas bg colour
git-svn-id: http://svn.osgeo.org/qgis/trunk@7876 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
timlinux committed Jan 9, 2008
1 parent 3a42ef5 commit 0b6ba60135bc59ae355e973ba1dd41839b12c9c7
Showing with 6 additions and 0 deletions.
  1. +4 −0 src/gui/qgsmapcanvas.cpp
  2. +2 −0 src/gui/qgsmapcanvas.h
@@ -941,6 +941,10 @@ void QgsMapCanvas::setCanvasColor(const QColor & theColor)
mScene->setBackgroundBrush(bgBrush);
} // setbgColor

QColor QgsMapCanvas::canvasColor() const
{
return mScene->backgroundBrush().color();
}

int QgsMapCanvas::layerCount() const
{
@@ -160,6 +160,8 @@ class GUI_EXPORT QgsMapCanvas : public QGraphicsView

/** Write property of QColor bgColor. */
virtual void setCanvasColor(const QColor & _newVal);
/** Read property of QColor bgColor. */
virtual QColor canvasColor() const;

/** Emits signal scalChanged to update scale in main window */
void updateScale();

0 comments on commit 0b6ba60

Please sign in to comment.