File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -941,6 +941,10 @@ void QgsMapCanvas::setCanvasColor(const QColor & theColor)
941
941
mScene ->setBackgroundBrush (bgBrush);
942
942
} // setbgColor
943
943
944
+ QColor QgsMapCanvas::canvasColor () const
945
+ {
946
+ return mScene ->backgroundBrush ().color ();
947
+ }
944
948
945
949
int QgsMapCanvas::layerCount () const
946
950
{
Original file line number Diff line number Diff line change @@ -160,6 +160,8 @@ class GUI_EXPORT QgsMapCanvas : public QGraphicsView
160
160
161
161
/* * Write property of QColor bgColor. */
162
162
virtual void setCanvasColor (const QColor & _newVal);
163
+ /* * Read property of QColor bgColor. */
164
+ virtual QColor canvasColor () const ;
163
165
164
166
/* * Emits signal scalChanged to update scale in main window */
165
167
void updateScale ();
You can’t perform that action at this time.
0 commit comments