Commit Graph

232 Commits (259015d8b538de598e4204d4d1fb4198bfd862cc)

Author SHA1 Message Date
Jos van den Oever 259015d8b5 Add line breaks 2018-05-18 20:07:45 +02:00
Jos van den Oever fb972b1119 Add an exception to the license: no copyright claim on generated code
The text was provided by Hendrik Hank.
2018-05-18 20:05:39 +02:00
Jos van den Oever 07517824ab Add screenshot of example application 2018-05-18 18:51:04 +02:00
Jos van den Oever 574440ba58 Add example Todos application from FOSDEM presentation
https://fosdem.org/2018/schedule/event/rust_qt_binding_generator/
2018-05-18 18:37:38 +02:00
Jos van den Oever f4ffeeda91 Fix typo 2018-05-18 15:05:15 +02:00
Jos van den Oever c27e451066 Check conversion between c_int and usize 2018-05-18 09:36:05 +02:00
Jos van den Oever 8949026c63 Make primitive types more precise and add test 2018-05-17 10:47:18 +02:00
Jos van den Oever 75d5406943 Add more tests 2018-05-16 22:38:30 +02:00
Jos van den Oever e636d82da5 More precise types 2018-05-16 19:19:21 +02:00
Jos van den Oever 392153f9a9 Allow optional primitive object properties 2018-05-15 21:45:05 +02:00
Jos van den Oever a051556990 Add more tests 2018-05-15 17:08:58 +02:00
Jos van den Oever 57d557378e Update template projects to not use struct qstring_t 2018-05-13 15:11:44 +02:00
Jos van den Oever 7fb53a8916 Merge branch 'master' of git://anongit.kde.org/rust-qt-binding-generator 2018-05-13 14:40:30 +02:00
Jos van den Oever 6099ee3c3d Add more integer types 2018-05-13 14:25:32 +02:00
Jos van den Oever 12cebe88bb Make sure that the optional types in the bindings are POD types 2018-05-13 13:10:59 +02:00
Jos van den Oever 848b472c3f Use QVariant::fromValue and QVariant::setValue to avoid type conversion 2018-05-13 12:48:32 +02:00
Jos van den Oever 4dba74acbd Beter whitespace 2018-05-13 02:27:16 +02:00
Jos van den Oever c87339ed6a Add type check when converting QVariant in QAbstractItemModel::setData 2018-05-13 02:21:36 +02:00
Jos van den Oever 8ccb2e519b cleanup 2018-05-12 14:28:41 +02:00
Jos van den Oever 67e6e8a9bf Convert test_functions 2018-05-12 13:58:43 +02:00
l10n daemon script 34a3726fee GIT_SILENT made messages (after extraction) 2018-05-06 03:32:45 +02:00
Jos van den Oever af7b64b82d Convert demo 2018-05-02 22:18:37 +02:00
Jos van den Oever 5bcb96b561 Convert test_object_list 2018-05-02 17:02:07 +02:00
Jos van den Oever 18368ee142 Convert test_object_types 2018-05-02 01:23:06 +02:00
Jos van den Oever fb6e2c933f Convert test_object 2018-05-01 23:46:17 +02:00
Jos van den Oever f848b4f80f Add debug information to release builds of test and demo 2018-05-01 14:52:09 +02:00
Jos van den Oever 56552a2d86 Upgrade Docker image to latest Ubuntu version 2018-04-30 16:50:15 +02:00
Jos van den Oever d3134229ae Add package ca-certificates
BUG: 390440
2018-04-30 16:44:49 +02:00
l10n daemon script 91007609a7 GIT_SILENT made messages (after extraction) 2018-04-23 03:38:08 +02:00
l10n daemon script 5e8cf4d968 GIT_SILENT made messages (after extraction) 2018-03-13 03:25:48 +01:00
Jos van den Oever 50ac9c3541 Add git to the docker image 2018-03-11 11:56:47 +01:00
l10n daemon script ae8eec19d5 GIT_SILENT made messages (after extraction) 2018-02-12 03:20:06 +01:00
Jos van den Oever 16f642ddc6 Add make to the Docker image 2018-02-07 12:31:21 +01:00
Jos van den Oever 36f9287372 Run apt update before each apt command
Docker caches each step and the apt cache may be outdated which lets
apt install fail. So apt update must be run before each separate RUN
apt command.
2018-02-07 12:00:00 +01:00
Jos van den Oever 7345b9fada Use ubuntu instead of neon as base for the docker image 2018-01-27 22:37:05 +01:00
Jos van den Oever 67abcae564 Fix possible anchor loop 2018-01-27 22:32:44 +01:00
Jos van den Oever e26ccbfd92 Add more tools to the docker environment 2018-01-27 21:43:46 +01:00
Jos van den Oever 57f73256a2 Translate camelCase binding function names to snake_case 2018-01-26 21:43:24 +01:00
l10n daemon script 1a5c019594 GIT_SILENT made messages (after extraction) 2018-01-21 03:18:51 +01:00
Friedrich W. H. Kossebau 25c3180801 Add note where to file issues to README.md
Reviewers: vandenoever

Reviewed By: vandenoever

Differential Revision: https://phabricator.kde.org/D9359
2017-12-22 18:31:00 +01:00
Friedrich W. H. Kossebau 767d6992eb Sync FindCargo.cmake with that of kdev-cargo
Reviewers: vandenoever

Reviewed By: vandenoever

Differential Revision: https://phabricator.kde.org/D9356
2017-12-22 18:30:17 +01:00
Friedrich W. H. Kossebau 3f5c1581c5 Some fixes for CMakeLists.txt
Summary:
* bump cmake dep to 3.0, spares one policy (any target group for 2.8?)
* do cmake_minimum_required as first thing
* use ECM things only if ECM_FOUND
* do things covered by KDE{Compiler,CMake}Settings only if !ECM
* install the generator actually :)

Reviewers: vandenoever

Reviewed By: vandenoever

Differential Revision: https://phabricator.kde.org/D9357
2017-12-22 18:29:49 +01:00
Friedrich W. H. Kossebau 98779b0d44 Fix i18n message catalog naming, add catalog for generator app
Summary:
* rust_qt_binding_generator uses tr() calls, but was missing
  catalog extraction and catalog loading
* .pot is not part of the catalog name
* Demo_qt is too generic name

Reviewers: vandenoever

Reviewed By: vandenoever

Differential Revision: https://phabricator.kde.org/D9458
2017-12-22 18:27:51 +01:00
Friedrich W. H. Kossebau a3e02d39ec Turn Jos' blog posts into a mdbook-based tutorial
Summary:
How to create the tutorial:
$ cargo install mdbook
$ cd tutorial
$ mdbook build

Then open build/tutorial/index.html in a web browser.

See also http://rust-lang-nursery.github.io/mdBook/

Reviewers: vandenoever

Reviewed By: vandenoever

Differential Revision: https://phabricator.kde.org/D9368
2017-12-17 13:11:54 +01:00
Friedrich W. H. Kossebau 6bfe86d904 Add .arcconfig 2017-12-16 11:18:50 +01:00
l10n daemon script 7a0d0ef0e8 GIT_SILENT made messages (after extraction) 2017-11-27 03:17:00 +01:00
Jos van den Oever 531e4798fc Do not overwrite implementation.rs in the tests. 2017-11-20 09:05:48 +01:00
Pearce Keesling 192f9bf978 Added no-argument function generation
Summary: Updated functions to accept and return strings

Reviewers: vandenoever

Reviewed By: vandenoever

Differential Revision: https://phabricator.kde.org/D8283
2017-10-22 18:07:18 -06:00
Jos van den Oever b89de50db3 Add links to two project blog posts 2017-10-03 22:30:27 +02:00
Jos van den Oever e63ca9e924 Added generators for remove_rows for lists
This patch was contributed by Pearce Keesling. It was applied and tested with
cat D8120.diff | patch -p1
ninja test
REVIEW: D8120
2017-10-03 20:22:44 +02:00