File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed
python/core/auto_generated Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -60,14 +60,14 @@ Returns the size of the resulting map image
60
60
Sets the size of the resulting map image
61
61
%End
62
62
63
- int devicePixelRatio() const;
63
+ float devicePixelRatio() const;
64
64
%Docstring
65
65
Returns device pixel ratio
66
66
67
67
.. versionadded:: 3.4
68
68
%End
69
69
70
- void setDevicePixelRatio( int dpr );
70
+ void setDevicePixelRatio( float dpr );
71
71
%Docstring
72
72
Sets the device pixel ratio
73
73
Original file line number Diff line number Diff line change @@ -230,12 +230,12 @@ void QgsMapSettings::setOutputSize( QSize size )
230
230
updateDerived ();
231
231
}
232
232
233
- int QgsMapSettings::devicePixelRatio () const
233
+ float QgsMapSettings::devicePixelRatio () const
234
234
{
235
235
return mDevicePixelRatio ;
236
236
}
237
237
238
- void QgsMapSettings::setDevicePixelRatio ( int dpr )
238
+ void QgsMapSettings::setDevicePixelRatio ( float dpr )
239
239
{
240
240
mDevicePixelRatio = dpr;
241
241
}
Original file line number Diff line number Diff line change @@ -85,13 +85,13 @@ class CORE_EXPORT QgsMapSettings
85
85
* Returns device pixel ratio
86
86
* \since QGIS 3.4
87
87
*/
88
- int devicePixelRatio () const ;
88
+ float devicePixelRatio () const ;
89
89
90
90
/* *
91
91
* Sets the device pixel ratio
92
92
* \since QGIS 3.4
93
93
*/
94
- void setDevicePixelRatio ( int dpr );
94
+ void setDevicePixelRatio ( float dpr );
95
95
96
96
/* *
97
97
* Returns the device output size of the map canvas
@@ -423,7 +423,7 @@ class CORE_EXPORT QgsMapSettings
423
423
double mDpi ;
424
424
425
425
QSize mSize ;
426
- int mDevicePixelRatio = 1 ;
426
+ float mDevicePixelRatio = 1.0 ;
427
427
428
428
QgsRectangle mExtent ;
429
429
You can’t perform that action at this time.
0 commit comments