Silence noisy and harmless 'inline function declared as
dllimport: attribute ignored' warnings.
These can be safely ignored, but cause thousands of lines of
warnings during windows builds (eg mingw builds)
(Unfortunately a macro based approach CANNOT be used here -- that
breaks the mingw build, as it seems to have issues with nesting
_Pragma along with __declspec)
When constructing a URI for a SQL server connection, you can
now set a custom timeout for the connection using:
ds = QgsDataSourceUri()
# set host, etc
...
# set connection timeout to 20 seconds
ds.setParam('timeout', '20')
vl = QgsVectorLayer(ds.uri(), 'my layer', 'mssql')
Remove the older method which took explicit host/database/service/...
arguments, and ensure we always use the method which takes a full
QgsDataSourceUri argument. This ensures that the db connection
always has access to ALL the properties of the original data source
uri, including any additional parameters set on it.
The actions checked status are updated once the configuration dialog
is shown based on the current 3d map settings. However, these settings
may be updated by the configuration dialog. This means that the
actions need to be updated if the dialog is accepted instead.
This happens e.g. in combination with WMTS layers.
The symptom is, that the rendering progress bar doesn't disappear and it
consistently shows that some tiles are still being loaded.
This is caused by the signal of the loader being fired still in the
constructor when consumers of the loader couldn't connect to the
finished signal.
By using a `Qt::QueuedConnection` we make sure that the signal is only
sent later.
This adds a new widget for display of the current distance:elevation
scale ratio for elevation profile plots. The widget can also be
used to set a specific ratio. If the "lock" option is enabled for
the plot, then this scale ratio will be used instead of the
default 1:1 ratio when zooming and navigating the plot.