12 Commits

Author SHA1 Message Date
Even Rouault
5e4707fcbf Enable -DQT_USE_QSTRINGBUILDER and fix related build errors
Background:
https://www.qt.io/blog/2011/06/13/string-concatenation-with-qstringbuilder

When enabling -DQT_USE_QSTRINGBUILDER, QString() concatenation with operator +
are done in a more efficient way, especially with repeated + operators.

Qt and creator themselves are built with that enabled.
2020-10-12 06:23:12 +10:00
Nyall Dawson
324fb40500 QgsFileWidget should also accept dropped plain text paths 2019-02-09 07:27:39 +10:00
Nyall Dawson
8ad2d7291f More unit tests 2019-02-09 07:27:39 +10:00
Nyall Dawson
2857f585ae File widget should also accept drops from browser 2019-02-09 07:27:39 +10:00
Nyall Dawson
d741c73d9b Dropping a file onto a file widget in directory mode should set the widget
to the folder containing that file, not reject the event entirely
2019-02-09 07:27:39 +10:00
Alessandro Pasotti
b947406155 More robust multiple paths split and utility static method 2017-08-24 08:29:40 +02:00
Alessandro Pasotti
d1fb2490a7 Allow multiple raster selection from GDAL source select widget
Since I'm using QgsFileWidget I also added
multiple files support to that widget and
tests for this new behavior.
2017-08-23 16:17:15 +02:00
Nyall Dawson
b1a6c790cf Remove QgsFileDropEdit widget and integrate functionality into QgsFileWidget
It makes no sense to have two classes covering this use case, with
partial functionality in each. Smash the two together so we can
safely use QgsFileWidget for all use cases in future.
2017-08-06 23:26:46 +10:00
Juergen E. Fischer
b9162dccdf scripts/astyle-all.sh run 2017-03-03 15:37:12 +01:00
Matthias Kuhn
dfd9833467 Let all tests work with a proper QgsApplication instance 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
Denis Rouzaud
c063838f52 rename QgsFilePickerWidget to QgsFileWidget 2016-01-15 10:08:34 +01:00