26 Commits

Author SHA1 Message Date
Nyall Dawson
fea2726c1c Flip autoconnected slots to explicit connections, pt 1 2017-10-09 07:30:52 +10:00
Nyall Dawson
8c3939e756 More efficient use of QStrings
- use .isEmpty() instead of == QLatin1String( "" ) to check for
empty strings
- use .clear() instead of = QLatin1String( "" ) to empty a string
- remove unnecessary QString initializations
2017-09-28 05:25:51 +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
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
Matthias Kuhn
e9b4b0c666 Pass enums by value 2016-07-23 00:20:29 +02: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
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
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
Juergen E. Fischer
ee17616def save and restore message viewer geometry 2013-06-29 18:30:37 +02:00
nyalldawson
a3573cedf4 Add parameter for QgsMessageViewer to disable deleteOnClose, allows retrieving checkBoxState after dialog has closed 2013-05-06 08:39:29 +10:00
Juergen E. Fischer
5a3a87fde2 [FEATURE] support 64bit feature ids 2011-06-16 20:30:07 +02:00
Juergen E. Fischer
5a6d3cebcc remove svn Id tags 2011-05-26 23:05:55 +02:00
jef
d0e5af4cb1 improve wms error and progress reporting (fixes #1576)
git-svn-id: http://svn.osgeo.org/qgis/trunk@15763 c8812cc2-4d05-0410-92ff-de0c093fc19c
2011-04-18 22:34:36 +00:00
jef
4b46398bc4 astyle re-indentation & iostream=>QgsDebugMsg migration cleanup
git-svn-id: http://svn.osgeo.org/qgis/trunk@9138 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-08-23 21:37:31 +00:00
telwertowski
784ce74d40 Remove use of Qt3 support inline routines which redirect old Qt3 names to new Qt4 names. Remove USE_QT3SUPPORT from top-level CMakeLists and add it to GRASS provider/plugin CMakeLists so that all use of Qt3 names and libraries is limited to these two directories.
git-svn-id: http://svn.osgeo.org/qgis/trunk@8630 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-06-09 03:30:50 +00:00
jef
7e4fd6ff5c fix python support for QgsMessageViewer
git-svn-id: http://svn.osgeo.org/qgis/trunk@7669 c8812cc2-4d05-0410-92ff-de0c093fc19c
2007-11-27 12:31:41 +00:00
g_j_m
286c3e4245 Fix for ticket #611 (add a "don't show this again toggle" to the snap
vertex warning dialog box)
Also includes a small re-organisation of the QgsMessageViewer class


git-svn-id: http://svn.osgeo.org/qgis/trunk@7668 c8812cc2-4d05-0410-92ff-de0c093fc19c
2007-11-27 09:14:36 +00:00
wonder
46a2d125a2 Merged refactoring branch back to trunk.
git-svn-id: http://svn.osgeo.org/qgis/trunk@6415 c8812cc2-4d05-0410-92ff-de0c093fc19c
2007-01-09 02:39:15 +00:00
g_j_m
0527a4b2e8 Provide an optional checkbox in the message viewer for such things as
a "don't show this message again" use.



git-svn-id: http://svn.osgeo.org/qgis/trunk@5835 c8812cc2-4d05-0410-92ff-de0c093fc19c
2006-09-18 09:48:34 +00:00
g_j_m
32fcc4a4db - Change to API for QgsMessageViewer (allow plain text or html input,
required changes in all code that uses QgsMessageViewer)

- Improvements to messages when qgis can't find a key column in a
postgres table
- Fix a couple of bugs when loading postgres tables (invalid layers
would appear to load, giving a legend entry, but not show anything on
the map)
- Tidy up of #includes in postgres files


git-svn-id: http://svn.osgeo.org/qgis/trunk@4911 c8812cc2-4d05-0410-92ff-de0c093fc19c
2006-02-28 06:50:37 +00:00
g_j_m
6c8b16b991 Migrate qt3 stuff to qt4.
git-svn-id: http://svn.osgeo.org/qgis/trunk@4779 c8812cc2-4d05-0410-92ff-de0c093fc19c
2006-01-29 08:45:51 +00:00
telwertowski
36547f4972 Convert deprecated Qt3 QDialog(parent, name, modal, flags) constructors to Qt4 QDialog(parent, flags) constructors. Use QgisGui::ModalDialogFlags to specify modal dialogs.
git-svn-id: http://svn.osgeo.org/qgis/trunk@4688 c8812cc2-4d05-0410-92ff-de0c093fc19c
2006-01-15 12:08:18 +00:00
timlinux
42636d6ba8 Moved all sources for gui lib into src/gui and updated all dependent classes and makefiles
git-svn-id: http://svn.osgeo.org/qgis/trunk@4619 c8812cc2-4d05-0410-92ff-de0c093fc19c
2006-01-08 23:18:32 +00:00