142 Commits

Author SHA1 Message Date
Nyall Dawson
c7926181ad Layout fixes 2021-06-22 08:43:39 +10:00
Nyall Dawson
02266ef8e6 Rename Qgis::MessageLevel::None to NoLevel. None is a reserved
keyword in Python, so this value was previously inaccessible to PyQGIS
scripts

Also change all references to Qgis::MessageLevel values to their
fully qualified names, to ease a future transition to an enum
class (when sip bugs are fixed)

Fixes #42996
2021-05-30 10:36:01 +10:00
Nyall Dawson
fc796b4c74 Fix sipify 2021-05-20 21:09:56 +10:00
Nyall Dawson
ae877516f1 Fix build 2021-05-20 21:09:56 +10:00
Denis Rouzaud
642deb194d
support QgsSettingsEntryEnumFlag in sipify (#42888) 2021-04-22 13:47:21 +02:00
Denis Rouzaud
cf1ffdaaa1
Merge pull request #42376 from troopa81/fix_oracle_ci
Split CI providers test
2021-03-26 10:51:10 +01:00
Julien Cabieces
1821d7af47 Run providers tests in different CI jobs 2021-03-23 10:53:38 +01:00
Denis Rouzaud
8c2cb9c817 fix sipify test 2021-03-22 21:41:43 +01:00
Nyall Dawson
08ca000e71 Use c++17 std::clamp instead of qBound 2021-03-22 05:34:10 +10:00
Nyall Dawson
55a79ac1e7 ...and DEFINITELY no 'foreach'!! 2021-03-21 14:14:44 +10:00
Nyall Dawson
25595557c1 Definitely no more Q_FOREACH 2021-03-21 14:14:44 +10:00
Nyall Dawson
c6370c7f52
Speed up QGIS compilation by removing all Qt Module-wide includes
Refs https://www.kdab.com/beware-of-qt-module-wide-includes/
2021-03-05 11:23:15 +10:00
Nyall Dawson
1587117aa8 Add test to ban brace initialization of QVariant variables
This test checks that brace initializers are never used for
QVariant variables. On some compilers the value will be
converted to a list. and on others a list of lists.

Always use = initialization to avoid this ambiguity!
2021-02-25 16:44:36 +10:00
Nyall Dawson
39e8b8a47a Update sipify tests 2021-01-31 05:41:22 +10:00
Nyall Dawson
43f2ae7044 Fix doc test with final implementations 2020-11-13 02:59:05 +10:00
Denis Rouzaud
eddf6feb45 modernize CMakeLists.txt files 2020-11-12 07:14:46 +10:00
Juergen E. Fischer
ded7acc356 fix qgis_sip_uptodate #spellok 2020-11-05 22:37:19 +01:00
Denis Rouzaud
f5ce5773e1 rename script 2020-09-02 06:18:13 +02:00
Nyall Dawson
b883c14f21 Add @brief, @see to banned keywords list 2020-07-06 10:50:24 +10:00
Alexander Bruy
0214b4f01a move gamma correction code inside brightness/contrast filter 2020-06-30 15:42:33 +03:00
Alexander Bruy
cfa5c5bf83 fix tests 2020-06-30 15:42:33 +03:00
Nyall Dawson
83bcbc5d47 Flag use of TODO comments in the public doxygen docs
These should be c++ code comments only, we don't want to include
them in the API docs
2020-06-15 13:43:58 +10:00
Juergen E. Fischer
b1edb5e70c test_defwindowtitle.sh: also check Dialog 2020-05-16 20:55:59 +02:00
Nyall Dawson
b6a7a10703 Fix some more python formatting issues, remove more flake exceptions 2020-05-11 11:41:50 +10:00
Matthias Kuhn
d084ad9ec5 Fix escaping errors 2020-05-05 22:55:44 +02:00
Nyall Dawson
85d543a739 Rename scripts to swap "-" for "_" for consistency
We had a confusing and unpredictable mix of script names with
- vs _, e.g. scripts/prepare-commit.sh vs scripts/sipify_all.sh

This unifies with the preferred _ convention for script file names
2020-04-28 02:22:33 +10:00
Juergen E. Fischer
2e7bebcf20 add code_layout test to verify that UIs either have a non-default window title or are not marked for translation 2020-04-24 16:30:45 +02:00
Nyall Dawson
3ba1b0de28 Update ACCEPTABLE_MISSING_BRIEF 2020-01-13 13:45:34 +13:00
Nyall Dawson
8abc457c8c Update ACCETABLE_MISSING_ADDED_NOTE list 2020-01-13 13:45:34 +13:00
Nyall Dawson
4c8ce04bfe Fix deprecation warnings in doxygen parser 2020-01-13 13:45:34 +13:00
Nyall Dawson
7dfdd2887a Update acceptable missing docs list 2020-01-13 13:45:34 +13:00
Sandro Santilli
d682829713 Use $() instead of backticks 2019-11-11 13:14:50 +01:00
Sandro Santilli
8e077ba127 Do not assume tests are run from under source tree
Fixes #32783
2019-11-11 12:24:42 +01:00
Juergen E. Fischer
b81d306047 spelling fixes (closes #32408) 2019-10-26 10:50:30 +10:00
Denis Rouzaud
4f3a9f46d2
update Travis to build on Trusty for code layout (#10048)
* update Travis to build on Trusty for code layout

* fix shellcheck replace ! -z by -n

* shellcheck: fix  -n doesn't work with unquoted arguments

* more shellcheck fixes

* use bash instead of posix
2019-05-21 14:13:28 -05:00
Bas Couwenberg
2628c480c5 Don't include revision in sources.
Prevent changes to files that weren't changed between releases.
This eases review of the changes between releases significantly.
2019-05-17 16:47:47 +02:00
Alex
21280c39c0 More verbose sip failure 2019-04-18 06:23:09 +10:00
Matthias Kuhn
a133bcae45
Fix sip bindings and ignore missing docs 2019-03-10 18:37:41 +01:00
Nyall Dawson
182e6cf97b Update sipify expected results 2019-02-27 09:41:11 +10:00
Nyall Dawson
107b48a430 Add NULLPTR macro for use in doxygen comments
For the c++ api dox this expands to "\c nullptr" (the
\c directive indicates a code literal value), and for sipify/Python
it expands to ``None`` (`` is sphinx annotation for literal values)

Makes for nicer dox for both c++ and Python!
2019-02-27 09:41:11 +10:00
Matthias Kuhn
d3f64deb80
Further doc improvements 2018-12-22 11:54:43 +01:00
Matthias Kuhn
525a3da3ab
More doxygen 2018-12-22 10:57:53 +01:00
Matthias Kuhn
07ab092fb1
Some doc fixes 2018-12-22 10:35:30 +01:00
Matthias Kuhn
c6420690b5
Skip more missing doc checks for old classes 2018-12-22 10:16:24 +01:00
Matthias Kuhn
2ad870b95a
Suppress api doc warnings for old classes 2018-12-21 18:06:40 +01:00
Denis Rouzaud
7bce9342e5 [sipify] fix initializer in strcuts 2018-11-28 07:46:24 -04:00
Nyall Dawson
e0fa9eb9cf Add QStringLiteral(), QStringLiteral( "" ) and QLatin1String( "" )
to banned keywords

And replace use with QString()
2018-08-31 12:31:27 +10:00
Nyall Dawson
0d1a9819d4 Add qFloor, qCeil, qSqrt to banned keywords 2018-08-22 06:39:28 +10:00
Denis Rouzaud
9218c26070 fix SIP test 2018-08-07 14:32:47 +02:00
Even Rouault
b5b720dbea
Add QOverload to test_banned_keywords.sh 2018-06-28 22:29:28 +02:00