36 Commits

Author SHA1 Message Date
Mathieu Pellerin
f3ced09632
improve sorting of field values for the query builder (#6046) 2018-01-12 15:48:02 +07:00
David
ac6d251859 sort the values in query builder
after filling the values into the model, they are sorted ascending.
2017-12-15 08:13:45 +01:00
Nyall Dawson
fea2726c1c Flip autoconnected slots to explicit connections, pt 1 2017-10-09 07:30:52 +10:00
Jorge Gustavo Rocha
fe59a19e17 Change all ocurrences on_buttonBox_helpRequested to showHelp
Add help button to 3 dialogs
Fix missing QStringLiteral
Fix CMakeLists.txt indentation
Fix qhelp.h and qgis_sip.h includes with <>
2017-08-15 23:51:03 +02:00
Nyall Dawson
3388857526 Move uniqueValues to QgsFeatureSource
Also change signature of QgsVectorLayer/QgsVectorDataProvider
uniqueValues method to match (and improve API)
2017-06-05 16:59:08 +10:00
Nyall Dawson
ae59e35dac Complete daily allocation of Qt5 connect transitions 2017-04-04 09:40:25 +10:00
Alessandro Pasotti
1822caa803 QgsSettings: removed leading slashs from keys 2017-03-08 11:11:47 +01:00
Juergen E. Fischer
a10c890383 More QgsSettings updates:
* revives WMS
* QgsSettings::clear() added
* section added to QgsSettings::contains()
* type parameter added to sip binding of QgsSettings.value()
* TODO: customization & evis
2017-03-04 02:37:59 +01:00
Denis Rouzaud
e7079eead9 run astyle on src/gui 2017-03-03 09:09:37 +01:00
Matthias Kuhn
f4bc53695e Manage null representation value in QgsApplication::nullRepresentation() 2016-12-20 01:20:08 +01:00
Nyall Dawson
4166a3ea62 Fix most clazy qstring-unneeded-heap-allocations warnings
By flipping string literals to QStringLiteral/QLatin1String

see

https://woboq.com/blog/qstringliteral.html
2016-10-24 15:26:24 +10:00
Nyall Dawson
4f3564cc7b Avoid potential QgsFields detachments 2016-08-05 06:08:07 +10:00
Matthias Kuhn
e9b4b0c666 Pass enums by value 2016-07-23 00:20:29 +02:00
Nyall Dawson
b7e1cae4f0 Switch double quoted single character to single quotes for some
QString methods

Using single quotes is a significant performance boost. Rough
benchmarks indicate the QString single quote methods take
about 15% of the time the double quote variants take.
2015-11-02 17:55:08 +11:00
Nyall Dawson
1969e09b6f Also avoid detaching QgsFields and QgsAttributes where possible 2015-10-20 20:36:08 +11:00
Nyall Dawson
c49b5b777f Change a lot of arguments to const references in core/gui
Rationale:
- there was a lot of large objects passed by value, so potentially
there's a speed bump from this
- even for implicitly shared classes like QString/QList there's still
a (small) cost for copying the objects when there's no reason to
- it's the right thing to do!
2015-10-07 12:02:04 +11:00
Matthias Kuhn
e832b2a28a Add QgsVectorLayer::fields() as alias to pendingFields()
pendingFields() is not very intuitive and leads to confusion for new developers.
2015-08-04 15:13:31 +02:00
Denis Rouzaud
9e3183c63f Revert "sort includes"
This reverts commit 2b7d3d3c73b50ba6dc74abec6dd652ff1b87c0ec.
2015-06-10 14:54:47 +02:00
Denis Rouzaud
2b7d3d3c73 sort includes 2015-06-10 13:59:08 +02:00
Juergen E. Fischer
12d7cfca03 indentation update 2015-04-07 14:27:39 +02:00
Hugo Mercier
4a52750a48 Allow provider-level filtering on layers with joined fields (fix conflicts) 2015-03-25 11:32:00 +01:00
Salvatore Larosa
da3516ca87 [query builder] editor enhancements: QTextEdit => QgsCodeEditorSQL 2014-09-23 10:41:00 +02:00
Juergen E. Fischer
5b2824f788 indentation update 2014-05-21 22:18:59 +02:00
Nathan Woodrow
2ff79d31c8 Expand label wording in filter dialog 2014-05-19 08:46:22 +10:00
Denis Rouzaud
7ab5e0aa42 query builder: give focus to the SQL text area when shown 2014-05-01 15:15:53 +02:00
Carl Simonson
665f0a32fe Replace WFlags with WindowFlags
It has long been in Qt 4 that the WFlags window flags argument has been
renamed to WindowFlags. In fact, WFlags is just a typedef to WindowFlags.
In Qt 5, this will go away, so we can change this now to make transition
easier in the future.

This should not have any affect on API or ABI, as the symbol names already
have WindowFlags in them anyway.

This change concentrates on the sources in the src directory. There are
a few more places in the python directory that can be done later.
2014-03-27 10:43:11 +01:00
Nyall Dawson
e1dc810b49 Also set focus to text box after double clicking lists in vector field dialog 2013-07-25 09:24:26 +10:00
Juergen E. Fischer
71759760cf fix #7865 2013-06-29 21:15:50 +02:00
Martin Dobias
51122d263a Store attributes and fields in vectors instead of maps 2012-10-20 22:19:55 +02:00
Juergen E. Fischer
d79c2963d3 implement #3337 2012-06-30 09:53:32 +02:00
Juergen E. Fischer
ed70b941e8 - replace SaQueryBuilder with QgsQueryBuilder
- replace SaDbFilterProxyModel with QgsDbFilterProxyModel
- remove spurious copy of QgsDbFilterProxyModel from postgres provider
- fix #4491
2012-05-26 10:21:45 +02:00
Juergen E. Fischer
9843384a76 fix #2766 2012-03-06 13:52:31 +01:00
Alexander Bruy
27249d88d1 force most core dialogs to remember their state and restore it when
opened (adresses #206)
2012-01-19 18:44:21 +02:00
Juergen E. Fischer
79f828325d query builder: support null values in values lists 2011-12-27 17:03:40 +01:00
Juergen E. Fischer
3828f22122 fix #4305 2011-12-25 19:23:18 +01:00
Juergen E. Fischer
bcb9057889 missed to include moved querybuilder files 2011-09-08 13:17:02 +02:00