6538 Commits

Author SHA1 Message Date
Nyall Dawson
c8f597983b Fix crash in attribute form after adding field
Fixes #18507
2018-03-22 16:23:51 +10:00
Nyall Dawson
df56de01a7 Update more labels to reflect project metadata in widget 2018-03-22 16:13:30 +11:00
Nyall Dawson
681cd41185 Synchronize project title field and project metadata title
field in project properties dialog

Since these two are equivalent, we automatically keep them
in sync.
2018-03-22 16:13:30 +11:00
Nyall Dawson
6ce184de79 Add tests for QgsMetadataWidget 2018-03-22 16:13:30 +11:00
Nyall Dawson
016f2288c6 Fix accidental class rename 2018-03-22 16:13:30 +11:00
Nyall Dawson
8bc45769df [FEATURE] Add metadata to QGIS projects
Allows for detailed metadata to be set in project properties,
including abstracts, keywords, contact details, links, etc.

Developed for Arpa Piemonte (Dipartimento Tematico Geologia e Dissesto)
within ERIKUS project
2018-03-22 16:13:30 +11:00
Nyall Dawson
f4ed93e1ca Add project metadata mode to QgsMetadataWidget 2018-03-22 16:13:30 +11:00
Nyall Dawson
d293c5d0a0 Code shuffle to avoid duplicate code 2018-03-22 16:13:30 +11:00
Nyall Dawson
1e05de049a Update metadata validator for base class split 2018-03-22 16:13:30 +11:00
Nyall Dawson
5cf2656ace Split metadata into two classes
A new base class QgsMetadataBase has been split off QgsLayerMetadata,
containing all non-layer specific metadata items.

This allows us to reuse the common metadata settings for other
non-layer items, e.g. projects.
2018-03-22 16:13:30 +11:00
Nyall Dawson
9c06d86ad8 Fix some HIG string violations 2018-03-22 12:32:08 +10:00
Salvatore Larosa
9a25d6764e
Merge pull request #6592 from slarosa/save_load_xyz
[FEATURE][needs-docs] Save/Load connections for XYZ Tiles
2018-03-20 09:31:24 +01:00
Nyall Dawson
26bdd920f4 [processing] Fix newlines are stripped from Python traces in log 2018-03-19 12:00:30 +11:00
Nyall Dawson
0ef6e1b666 Initialise some pointer members 2018-03-19 10:59:29 +10:00
Etienne Trimaille
648ce14d4f add colors in the log panel for critical and warning levels 2018-03-19 11:31:18 +11:00
Salvatore Larosa
57e198237a hide clear icon for QgsFilterLineEdit at first instantiation 2018-03-19 11:30:53 +11:00
Nyall Dawson
bf12404659 Revert 5b9be7a
Since the attribute table dialog object name is set to match
the layer/featureid combo, this commit was causing the attribute
form dialog to remember its position and size for each
feature/layer combo individually.

That's NOT what we want!

Fixes #18426
2018-03-16 12:01:46 +11:00
Nyall Dawson
f694f75f5d Add QgsTemporaryCursorOverride class
Temporarily sets a QApplication override cursor for the lifetime
of the object, then removes it

Makes it easier to ensure that the override is always removed
regardless of the exit path taken.
2018-03-16 10:57:52 +11:00
Alessandro Pasotti
4f05ed1dd7 [bugfix] value relation widget with Allow multiple selection doesn't resolve
Now it will accept arrays as well as string representations of arrays

Added a test

Fixes #16967 value relation widget with Allow multiple selection doesn't resolve the values anymore
2018-03-15 15:11:52 +01:00
Nyall Dawson
654a4a4af6 [processing] Fix algorithm progress bar resets to 0 when an algorithm
reports a non-fatal error

Fixes the "flashy" progress bar when an algorithm encounters a lot
of errors.
2018-03-15 13:43:01 +11:00
Salvatore Larosa
f55347ff31 [macos] move add button on the right in datasource manager 2018-03-14 22:44:04 +01:00
Denis Rouzaud
4c1e19c080 fix constraints not checked when they should be (#6550) 2018-03-14 07:49:37 -04:00
Salvatore Larosa
193c554b4c trigger editing on group item when grouping selected layers 2018-03-14 09:56:17 +01:00
Salvatore Larosa
281a3ed3aa fix capitalisation: followup 504e50df5e 2018-03-13 12:38:17 +01:00
Nyall Dawson
14c8b3c75d [neeeds-docs] Show all color schemes and tools for interacting with the in the
options->color tab

This brings all of QGIS' color scheme handling to a more logical and
user-discoverable place. Previously this functionality was only
available inside the color dialog itself (i.e. users would have to start
changing a color before they could create and edit schemes)
2018-03-13 10:39:49 +11:00
Nyall Dawson
40ceb7bdce Don't mark project dirty when legend nodes are expanded/collapsed 2018-03-13 10:10:23 +11:00
Salvatore Larosa
c5861710fa fix string: followup 504e50df5e 2018-03-12 23:00:13 +01:00
Salvatore Larosa
504e50df5e [FEATURE][needs-docs] Save/Load connections for Tiles XYZ 2018-03-12 18:56:56 +01:00
Matthias Kuhn
8f9d17e1d0
Merge pull request #6548 from 3nids/fix_datetime_null
fix #18299 date time widget does not correctly set value from calendar
2018-03-12 12:40:49 -04:00
Nyall Dawson
31a92543c7 Use some constants for search box highlighting styles 2018-03-12 13:08:09 +11:00
Régis Haubourg
5efa7bb21a Improves background color for search result in general option dialog
fixes 18142 by a lighter yellow background and keeping a black font
2018-03-12 13:08:09 +11:00
Nyall Dawson
dfa6b6ae19 Correctly set base style for QgsLayerTreeViewProxyStyle
Creates a new QgsProxyStyle subclass of QProxyStyle which
automatically sets the base style to match the current
application style (creating a new QStyle object, since
setting the base style takes ownership). Additionally,
QgsProxyStyle correctly parents the style to a parent
widget, avoiding leaks since calling QWidget::setStyle
doesn't transfer ownership.

Fixes incorrect theme used for layer tree view since
addition of indicator icons.
2018-03-11 10:23:18 +11:00
Denis Rouzaud
cc0c1bc6a4 [QgsFilterLineEdit] disable clear action when read only 2018-03-10 10:17:27 -09:00
Denis Rouzaud
f88edea306 finer tuning of style options 2018-03-10 11:21:51 -04:00
Denis Rouzaud
1d0b082e85 correctly emit NULL and not empty string for date/time widget for string fields 2018-03-10 08:56:59 -04:00
Denis Rouzaud
8bd4896908 fix #18299 date time widget does not correctly set value from calendar
the use of QStyle::subControlRect was returning only the rect of the arrows and not of the whole clickable area. QStyle::hitTestComplexControl has been used instead
2018-03-10 08:56:58 -04:00
Felis Pimeja
198bf77208 Vectorize console icons (#6515) 2018-03-09 09:53:53 +07:00
Matthias Kuhn
e969584ad9 Avoid freezing attribute form with recursion
The search widget wrappers for relations have two issues

* They recursively load whatever relations are defined. With self-referencing this leads to 💀
  This is addressed by only loading one level of relations in search widgets.

* They would load even when hidden, leading to long load times on attribute table opening.
  We now only actually load the form on the show event
2018-03-06 09:46:44 -05:00
Alessandro Pasotti
283f3b8e33 Don't crash when loading a project with unreachable wfs layers 2018-03-06 13:42:39 +01:00
Nathan Woodrow
f2e8c37ee5
[needs-docs] Add else rule UI option in rule based widget (#6529)
* [needs-docs] Add else rule UI option in rule based widget

* Review fixes
2018-03-06 16:48:05 +10:00
Salvatore Larosa
9edaf82874 fix spacing between label and icon in widget layer properties 2018-03-06 12:39:55 +07:00
Nyall Dawson
8e4b8a9518 Ensure that non-spatial layers are never set as canvas layers 2018-03-06 07:50:26 +11:00
Nathan Woodrow
4ef667db3d Add separator between rename and remove for browser 2018-03-05 10:13:28 +10:00
Matthias Kuhn
0d208298b7
Merge pull request #6506 from m-kuhn/fixRange
Fix Integer range widget with allowNull
2018-03-02 17:02:53 -05:00
Nyall Dawson
55814b8f23 Fix missing transform context warnings on status bar coordinate display 2018-03-02 16:09:42 +11:00
Matthias Kuhn
b37c410dbf Fix tests 2018-03-01 15:43:59 -05:00
Matthias Kuhn
0b49a83a89 Fix int range widget minimum value
The int range widget so far assigned NULL to the minimum value when allowNull was activated. This made it impossible to enter the minimum value into a range widget.

This also fixes some signals which in case of a NULL value would emit a slightly-below-minimum value for double and int spinboxes.

Fix #18297
2018-03-01 11:18:33 -05:00
Matthias Kuhn
752dc7d5b3 Replace dynamic_cast with qobject_cast 2018-03-01 10:44:21 -05:00
Harrissou Sant-anna
75f91e53c5 Add missing caption and some tweaks to map units dialog 2018-03-01 17:28:16 +11:00
Denis Rouzaud
95ab3d05e0 doxymentation and better wording 2018-02-28 13:43:10 -04:00