107 Commits

Author SHA1 Message Date
Nyall Dawson
34003259b7 Replace use of math.h with cmath 2017-08-25 04:15:36 +10:00
Nyall Dawson
4b009f96ec Use std::round instead of qRound
Now that our minimum VS studio version allowed supports std::round,
we should use that in place of Qt's qRound method.

Because:
- it doesn't truncate to int, resulting in unpredictable
behaviour (refs #16925)
- better to stick to standard c++ methods wherever possible,
since they're likely better supported and optimised by the
compilers
- it's a tiny reduction to the barrier for entry to QGIS
development (I'm sick of pointing out the need to use
qRound during PR reviews!)
2017-08-25 02:35:27 +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
Harrissou Sant-anna
139fe68a4a Update broken links to documentation
Because links to doc are based on plain hyperlinks, changes in doc
structure affect these relations. This PR fixes the broken links.
2017-08-06 21:21:43 +02:00
Harrissou Sant-anna
15be88918f Replace "double click" and "doubleclick" by double-click 2017-07-07 01:26:38 +02:00
Harrissou Sant-anna
59e9f79658 ok is spelled OK 2017-07-03 08:49:50 +02:00
Nyall Dawson
ac94345331 Rename QgisGui to QgsGuiUtils
Better reflects what this namespace contains, and replaces the
non-standard Qgis prefix with the Qgs standard
2017-05-15 07:33:52 +10:00
Mathieu Pellerin
40dac8f00d [plugin manager] fix QGIS startup crash (fixes #16439) (#4360) 2017-04-12 23:10:41 +02:00
Nyall Dawson
06a53e125c /*! -> /**
We already have enough doxygen styles to manage!
2017-04-03 13:18:36 +10:00
Nyall Dawson
676dc1a1d6 Remove redundant doxygen comments from .cpp files, move to .h
where appropriate
2017-04-03 13:18:36 +10:00
Nyall Dawson
57eb237d20 Remove @author credits from doxygen
Because
- not widely used, seems strange that some authors get credit
while others don't
- already included in copyright header
2017-04-03 13:18:35 +10:00
Nyall Dawson
32326ab5df Replace "python" with "Python" in docs 2017-04-03 08:33:56 +10:00
Nyall Dawson
68437a1032 More Qt5 style connects 2017-03-27 08:08:58 +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
dccf8c9e13 run astyle on src/app 2017-03-03 09:09:37 +01:00
Denis Rouzaud
7812d4fb17 remove the-prefix from source code
this might result in variables having the same name as some methods
2017-02-21 18:14:58 +01:00
Nyall Dawson
d19e70700f Ensure all pointer variables are initialized to nullptr 2017-02-18 20:23:18 +10:00
Matthias Kuhn
dccf010a13 Fix building with -DWITH_BINDINGS=OFF 2017-02-14 16:24:02 +01:00
Alexandre Neto
290758a4bc More PNG to SVG replacements (#4065) 2017-01-28 11:17:43 +07:00
Alexander Bruy
57535763d7 use new QgsHelp where possible instead of builtin context help 2017-01-23 10:54:45 +02:00
Denis Rouzaud
0a63d1f2c2 [spellcheck] properly look into various cases and add more fixes" 2017-01-16 16:39:20 +01:00
Denis Rouzaud
37ebcdd1cd [spellcheck] allow inwords checks and line skipping
spell check will be done automatically in words by default (when some conditions are fulfilled)
possibility to avoid in words checking by adding :* at the end in spelling.dat

one can add #spellok at the end of a line of code to skip spell check on this line
2017-01-10 20:18:37 +01:00
Nyall Dawson
9021bb479c Remove "//! Destructor" doxygen comments
This documentation doesn't add any value
2016-12-30 13:52:57 +10:00
Alexandre Neto
932de2ab55 Replace PNGs by SVGs (#3896)
- removes no longer needed SVG compounds
- Improves cap and join style icons
2016-12-21 08:55:22 +07:00
Nyall Dawson
af55c022b2 Followup 4166a3, don't use QStringLiteral in definitions
Causes linker errors in some random cases
2016-10-25 08:34:00 +10: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
9459831422 Remove unused variables 2016-10-22 22:46:15 +10:00
borys
a6c04fc44c [Plugin Manager] Fix font size also in master (issue #15302) 2016-10-17 21:59:01 +02:00
Nyall Dawson
c628c0f434 Rework includes to forward declare as much as possible
Should speed up recompilation when headers change
2016-07-18 19:10:19 +10:00
Juergen E. Fischer
010a850f50 plugin manager: use relative font size 2016-07-07 22:21:08 +02:00
Matthias Kuhn
1316d9c72c Suppress startup warning
https://travis-ci.org/qgis/QGIS/jobs/142140038#L1537-L1539
2016-07-04 10:09:10 +02:00
Juergen E. Fischer
4b16c64ec0 plugin manager: show plugin description and allow voting without webkit 2016-06-24 19:51:52 +02:00
Alexander Bruy
6e1302047c [pluginmanager] show trusted plugins (fix #14916) 2016-06-01 13:48:47 +03:00
Alexander Bruy
e60ed0511f [pluginmanager] limit plugin icon maximum size to prevent breaking description page layout 2016-05-28 10:38:07 +03:00
Alexander Bruy
b5b0145c8f [pluginmanager] reword link to plugin bugtracker (fix #11582) 2016-05-25 18:47:09 +03:00
Nyall Dawson
013d6d3331 Fix more warnings 2015-12-21 19:30:32 +11:00
Nyall Dawson
18614e11e3 Avoid container detachments by using const methods wherever possible
eg QList::at() instead of QList:[], constFind instead of find, ...
2015-12-16 20:15:46 +11:00
Nyall Dawson
576875e998 Followup 320c696 use clang-modernize to replace 0/NULL use with nullptr 2015-12-15 11:24:51 +11: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
5ed3d1b73f Use QString::arg multi argument method to avoid extra heap allocations 2015-10-15 17:51:06 +11:00
Nyall Dawson
c6df096c38 Followup c49b5b7, more fixes 2015-10-07 18:32:24 +11:00
Juergen E. Fischer
1b4ca622c9 add cppcheck fixes 2015-10-03 21:57:17 +02:00
Nyall Dawson
dbded4d91d Avoid some unnecessary QString construction 2015-09-09 19:17:50 +10:00
Nyall Dawson
f628ebd423 Replace foreach with Q_FOREACH
For:
- consistency
- to make it immediately clear that this is a Qt macro and that it
works slightly differently to c++ for loops
2015-09-09 19:17:29 +10:00
Juergen E. Fischer
fa464111c8 fix grass tests on windows 2015-07-07 23:26:44 +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
Denis Rouzaud
95570ebf0e add missing newline at end of file 2015-06-10 10:48:35 +02:00
Juergen E. Fischer
ecbe0e43f4 validate attribute index in editor widget calls 2015-05-28 15:13:27 +02:00