51570 Commits

Author SHA1 Message Date
Denis Rouzaud
95142cc19e use Exclude field by default for relation search widget wrapper
fix #20201
2018-10-25 16:38:22 -04:00
Nyall Dawson
3088574c50 Fix failing oauth2 test
The presence of the state parameter which has no QPROPERTY
counterpart in QgsAuthOAuth2Config was causing the
conversion for json to qobject to fail.
2018-10-26 04:46:42 +10:00
Nyall Dawson
7b3f3cfafb [oauth2] Show a list of directories searched for predefined configuration
files in the list tooltip/help text

Immediately gives users more clues about how to use these
files and where they must be placed
2018-10-26 04:46:42 +10:00
Nyall Dawson
b8361e4f9e [outh2] Don't crash when trying to parse an invalid json configuration file 2018-10-26 04:46:42 +10:00
Nyall Dawson
b5dc84d7db Fix some clazy warnings 2018-10-26 04:46:42 +10:00
Nyall Dawson
e24e5c7860 [oauth2] Use token url if refresh token url is not specified
The refresh token url is marked as optional -- so we fallback
on the token url if user has not specified a specific refresh URL
2018-10-26 04:46:42 +10:00
Denis Rouzaud
6fc36dcd1a
use QgsFeatureRequest::setNoAttributes (#8332) 2018-10-25 10:01:04 -08:00
Denis Rouzaud
bf5537e230
fix crash when changing screen while rendering (#8328)
remove this assert since by the time the map is rendered the screen changed and might not have the same DPR.
2018-10-25 08:03:27 -08:00
Denis Rouzaud
699d8487dc
add QgsFeatureRequest::setNoAttributes (#8326)
since it's more convenient than setSubsetOfAttributes( QgsAttributesList() )
2018-10-25 07:35:05 -08:00
Alessandro Pasotti
653a668531
Merge pull request #8325 from elpaso/bugfix-other-db-styles
Fix show other DB styles when there are no styles for current layer
2018-10-25 16:56:35 +02:00
Matthias Kuhn
dc334ac028
Merge pull request #8223 from signedav/json_tests
QgsServer Tests for JSON fields
2018-10-25 16:41:40 +02:00
Alessandro Pasotti
b0104a2807
Merge pull request #8324 from elpaso/bugfix-unreported-ensure-qml-extention-on-save-style-to-file
Bugfix unreported ensure qml extention on save style to file
2018-10-25 16:03:49 +02:00
Matthias Kuhn
4acb12d18e
Merge pull request #8281 from m-kuhn/copyValueMapToClipboard
Allow copying value map definitions to clipboard
2018-10-25 15:57:48 +02:00
Denis Rouzaud
6a9cff3fd2
reserve space in feature list for performance (#8322) 2018-10-25 05:19:13 -08:00
Denis Rouzaud
d1423decc8 add theme style.qss.auto to gitignore 2018-10-25 09:11:59 -04:00
Alessandro Pasotti
f73673060b Fix show other DB styles when there are no styles for current layer
Aka: cleaning my own mess :)
2018-10-25 14:36:04 +02:00
Denis Rouzaud
cd509de59c
fix typo 2018-10-25 08:35:46 -04:00
Alessandro Pasotti
6afb8def0a Add a test for saveNamedStyle to file path 2018-10-25 14:20:18 +02:00
Alessandro Pasotti
08f2a02adf Ensure save as style file appends qml extension
... or you'll save in the DB instead
2018-10-25 14:19:31 +02:00
signedav
0a2689d94e rearanged imports 2018-10-25 13:29:13 +02:00
Denis Rouzaud
0959e9f453
force Night Mapping theme on Mac Mojave with Dark Theme (#8309)
* force Night Mapping theme on Mac Mojave with Dark Theme

otherwise QGIS is pretty unusable
see #20195

* [themes] add automatic mode to base theme on OS theme

only effective on Mac OS for now

* Revert "add auto theme based on OS to choose default / dark theme"

This reverts commit d012451cadb4653421eb49711ac99ed48e064622.

* apply auto theme only for Qt < 5.12

* Update src/app/qgisapp.cpp

* better doc
2018-10-25 03:16:46 -08:00
Peter Petrik
20a205d881 fix for different vector rendering types 2018-10-25 13:16:17 +02:00
Peter Petrik
b0bd629336 fix #19939: render mesh arrows also on the edge of the canvas 2018-10-25 13:16:17 +02:00
Ted Meyer
a1d6f29e87 Use time.process_time() instead of time.clock()
time.clock is set to be deprecated in python3.8,
and was replaced by time.process_time in python3.3
2018-10-25 20:48:48 +10:00
Matthias Kuhn
02888959a2
Merge pull request #8263 from signedav/gpkg_offline_editing
[Bugfix] offline editing with gpkg
2018-10-25 11:54:56 +02:00
Nyall Dawson
ce0f8e3600 Fix broken status bar font size logic
The logic which was put in place to drop the status bar font size
by a couple of points was being overridden by style sheet settings.

Fix this and ensure that all right-located status bar widgets
correctly use the smaller font size. Also tweak locator width a little.
2018-10-25 19:53:01 +10:00
Nyall Dawson
ac44bf2514 Avoid crash when setting application font/font size in options dialog
https://bugreports.qt.io/browse/QTBUG-69204 causes a segfault
in Qt >= 5.11 if we change the stylesheet on the fly.

Workaround this by only setting the stylesheet once at startup,
and require a restart if settings change which modify the
stylesheet.

Just a workaround -- the upstream bug is being looked at,
but better to require a restart than crash.
2018-10-25 19:53:01 +10:00
Nyall Dawson
4f432820db Don't set app stylesheet font/font size if it isn't changed from
the default

Potentially avoids some hidpi scaling issues
2018-10-25 19:53:01 +10:00
Nyall Dawson
728b9fcf9b Avoid heap allocations 2018-10-25 19:53:01 +10:00
Nyall Dawson
4fdec37c17 Remove some unused members 2018-10-25 19:53:01 +10:00
signedav
ba1fe9de0e remove username/password in db connection in test project 2018-10-25 11:40:44 +02:00
rldhont
3ff5c8299d
Merge pull request #8319 from rldhont/fix-dbmanager-sql-layer-set-unique-combo-3
[BUGFIX][DbManager] SQL Layer: fix unique combo setting in QGIS 3
2018-10-25 11:31:27 +02:00
Matthias Kuhn
8f4f7f11ac
Merge pull request #8230 from m-kuhn/gdalDoNotPersistEstimatedMetadata
Do not persist estimated GDAL metadata
2018-10-25 10:20:54 +02:00
Etienne Trimaille
d6a2cbf178 add missing optional flag in some qgs expression helps 2018-10-25 18:20:23 +10:00
rldhont
236edd2723
Merge pull request #8318 from rldhont/processing-convertformat-geopackage
[Processing] Add GeoPackage support in alg qgis:convertformat (forward)
2018-10-25 10:19:03 +02:00
Borys Jurgiel
221df8e65e Follow up 88b80394c09045c 2018-10-25 18:11:36 +10:00
Borys Jurgiel
d0813a8822 Introduce QgsGui::HigFlags and don't capitalize menu entries and dialog titles in languages other than English. Fixes #19724 2018-10-25 18:11:36 +10:00
rldhont
2eb22d93ff [BUGFIX][DbManager] SQL Layer: fix unique combo setting in QGIS 3
When opening Update SQL layer, the unique combobox is not well set specifically with oracle.

It's a forward porting of #7872

Funded by Ifremer
2018-10-25 09:30:59 +02:00
rldhont
1d246de545 [Processing] Add GeoPackage support in alg qgis:convertformat (forward)
This is the forward porting of #8143
2018-10-25 09:20:29 +02:00
Nyall Dawson
0bd1b7ab81 Fix failing dox test 2018-10-25 16:41:11 +10:00
Nyall Dawson
244ba5ca3a [afs] Handle invalid responses returned from FeatureServer multipoint
layers, where individual features may have point geometries

Not sure if this is a bug in ArcGIS server (probably, yeah, let's
go with definitely. I couldn't check the source to see.) But in
general QGIS approach is to be forgiving and do our best to
make up for badly behaved servers).

See https://community.esri.com/thread/14037
2018-10-25 10:52:02 +10:00
Nyall Dawson
b039cd12dc Unit test for QgsMessageBarItem::dismiss 2018-10-25 10:51:44 +10:00
Nyall Dawson
d67982415a [ux] Auto dismiss message bar items when a link is clicked in the item
At this stage the user has already read and acted upon the notification,
so requiring them to explicity dismiss the notification is an
annoying extra action.
2018-10-25 10:51:44 +10:00
Nyall Dawson
124f738188 Allow message bar items to be dismissed from QgsMessageBarItem 2018-10-25 10:51:44 +10:00
Nyall Dawson
0a02432b0c Clazy warnings 2018-10-25 10:51:44 +10:00
Nathan Woodrow
01d2fc58cb
UX - Add icon for field types in expression widget (#8195) 2018-10-25 09:59:03 +10:00
Borys Jurgiel
302529a10c
Merge pull request #8289 from borysiasty/csv_string_quoting
[needs-docs] Save layer as CSV: add STRING_QUOTING option to the predefined drop-down widgets
2018-10-24 18:37:32 +02:00
Denis Rouzaud
745526dff0 rename params of virtual methods to match parent class, add missing private cond 2018-10-24 07:54:06 -08:00
Denis Rouzaud
fa92f41eb5 add missing doxymentation to gui/layout 2018-10-24 07:54:06 -08:00
Denis Rouzaud
3663de9103 [API docs] add missing gui/layout 2018-10-24 07:54:06 -08:00