Commit graph

953 commits

Author SHA1 Message Date
Hugo Parente Lima
c634b05def Add GLuint as primitive type.
If we don't do that any function with GLuint will be rejected by
the generator on Windows.
2010-12-17 19:16:56 -02:00
Hugo Parente Lima
dd1184ac4d Use .pyd extension for pysidetest module on Windows. 2010-12-17 19:16:56 -02:00
Hugo Parente Lima
3b61f88a1f Fix QML tests on Windows. 2010-12-17 19:16:56 -02:00
Hugo Parente Lima
53e472c5ef Fix compilation under MS Windows. 2010-12-17 19:16:56 -02:00
Marcelo Lira
ca914c9f63 Added a call to QObject.metaObject() to check if a segfault is caused.
This completes the tests for bug #507[1].

Also removed an unnecessary commented line.

[1] http://bugs.openbossa.org/show_bug.cgi?id=507

Reviewed by Hugo Parente <hugo.lima@openbossa.org>
Reviewed by Renato Araújo <renato.filho@openbossa.org>
2010-12-17 13:59:51 -03:00
Marcelo Lira
9a4738457d Fixed QML type registering test.
Reviewed by Hugo Parente <hugo.lima@openbossa.org>
Reviewed by Lauro Moura <lauro.neto@openbossa.org>
2010-12-17 11:39:03 -03:00
Marcelo Lira
d3e5c54d8a Updated model/view test to follow changes in Shiboken/9459b9da commit.
Reviewed by Hugo Parente <hugo.lima@openbossa.org>
Reviewed by Lauro Moura <lauro.neto@openbossa.org>
2010-12-17 11:31:37 -03:00
Hugo Parente Lima
97740beab9 Fix bug#491 - "pyside doesn't respect BUILD_TESTS"
Reviewer: Lauro Moura <lauro.neto@openbossa.org>
          Marcelo Lira <marcelo.lira@openbossa.org>
2010-12-16 15:35:58 -02:00
Marcelo Lira
634cde193e Fixed ownership of the value returned by QAbstractItemModel::data(...).
The value returned by Python to the virtual method
QAbstractItemModel::data(...) called from C++ has its ownership
transferred to C++.

Reviewed by Lauro Moura <lauro.neto@openbossa.org>
Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
2010-12-16 14:38:57 -03:00
Marcelo Lira
c53ec3c17e Updated the PySide test related to Python model returning data to C++. 2010-12-15 19:20:56 -03:00
Renato Araujo Oliveira Filho
539b906eb2 Created function used in PyObject getAttro.
Moved the code generated to a function in libpyside.
Create unit test for bug #525.

Reviewer: Hugo Parente Lima <hugo.pl@gmail.com>
          Marcelo Lira <marcelo.lira@openbossa.org>
2010-12-15 19:06:45 -03:00
Renato Araujo Oliveira Filho
fd9c8c8d76 Created unittest for bug #505.
Reviewer: Luciano Wolf <luciano.wolf@openbossa.org>
          Marcelo Lira <marcelo.lira@openbossa.org>
2010-12-14 17:44:02 -03:00
Hugo Parente Lima
ffc853c88b Fix bug#517 - "Documentation for QtDeclarative is not linked in contents.html, modules.html"
Reviewer: Renato Araújo <renato.filho@openbossa.org>
          Luciano Wolf <luciano.wolf@openbossa.org>
2010-12-14 17:15:06 -02:00
Hugo Parente Lima
44d4d96ec3 Fix bug#508 - "qmltopy1 crashes when setContextProperty is called twice without keeping a reference"
Reviewer: Renato Araújo <renato.filho@openbossa.org>
          Marcelo Lira <marcelo.lira@openbossa.org>
2010-12-14 17:00:12 -02:00
Hugo Parente Lima
46bbefb1cc Fix bug#518 - "The file 'genindex.html' is not found (linked from contents.html)"
Reviewer: Luciano Wolf <luciano.wolf@openbossa.org>
          Marcelo Lira <marcelo.lira@openbossa.org>
2010-12-14 16:22:35 -02:00
Hugo Parente Lima
e3796fa3e7 Fix bug#512 - "QGridLayout::getItemPosition() is not available"
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
          Renato Araújo <renato.filho@openbossa.org>
2010-12-14 15:28:55 -02:00
Marcelo Lira
6b720050ef Added test for Python written models returning new objects without keeping reference to them.
Reviewed by Lauro Moura <lauro.neto@openbossa.org>
eviewed by Luciano Wolf <luciano.wolf@openbossa.org>
2010-12-13 17:55:54 -03:00
Marcelo Lira
4630f41f6a Fixed new style signal connection tests for the proper semantics.
One example to clarify: for the "destroyed(QObject* = 0)" signal,
"obj.destroyed.connect(...)" connects to "destroyed()", and
"obj.destroyed[QObject].connect(...)" connects to "destroyed(QObject*)".

Reviewed by Lauro Moura <lauro.neto@openbossa.org>
Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
2010-12-13 16:00:22 -03:00
Hugo Parente Lima
154560c9c5 Added unit test for bug#500
Reviewer: Lauro Mora <lauro.neto@openbossa.org>
          Marcelo Lira <marcelo.lira@openbossa.org>
2010-12-13 11:39:24 -02:00
Hugo Parente Lima
e62b0364f1 Add tests for qmlregisterType function and qml list properties.
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
          Luciano Wolf <luciano.wolf@openbossa.org>
2010-12-09 16:19:41 -02:00
Hugo Parente Lima
9b2bf0a267 Changed file permissions to 0644. 2010-12-09 15:28:01 -02:00
Hugo Parente Lima
643742cbcf Add support for QML list properties.
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
          Luciano Wolf <luciano.wolf@openbossa.org>
2010-12-09 14:40:57 -02:00
Hugo Parente Lima
dc732da7a8 Remove unused field "type" from PySideProperty private struct. 2010-12-09 14:40:57 -02:00
Hugo Parente Lima
1422aed616 Replace useless check by a assert.
QMetaObject must already be ready at this point.
2010-12-09 14:40:57 -02:00
Hugo Parente Lima
1464dc1022 Add support for extension into PySide properties.
This is used by PySide implementation of QDeclarativeListProperty.
2010-12-09 14:40:56 -02:00
Hugo Parente Lima
b548a6f173 Fix copyright year. 2010-12-09 14:40:56 -02:00
Marcelo Lira
0a5e353ad0 Fixes QImage constructor signature that used string buffer as image data source.
The fixes uses the patch provided by Pieter Palmers on the bug #489
description[1].

A very simple test, to check the signature existence, was added.

[1] http://bugs.openbossa.org/show_bug.cgi?id=489

Reviewed by Hugo Parente <hugo.lima@openbossa.org>
Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
2010-12-06 17:49:56 -03:00
Marcelo Lira
ed1c4c72b9 Added QRegExp.replace(QString, const char*) method.
The only way to search and replace using QRegExp is using the
QString::replace method. Since QString was removed, QRegExp now is
useful only to search stuff, but not replace. For this purpose the
QRegExp.replace method was added. The first argument is the string
that will be operated over, the second argument contains the
replacement, and the return value is a new modified Python string.

Unit tests and documentation for QRegExp.replace were added as well.

Reviewed by Hugo Parente <hugo.lima@openbossa.org>
Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
2010-12-06 15:33:51 -03:00
Hugo Parente Lima
2d595e22b0 Avoid removal of qmlregistertype.cpp by the build system.
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
          Luciano Wolf <luciano.wolf@openbossa.org>
2010-12-06 15:17:07 -02:00
Hugo Parente Lima
ec0aeb6fce Initial implementation of qmlRegisterType.
It's fully functional, but need some adjustaments in the build system that will be done in the next few days.

Reviewer: Luciano Wolf <luciano.wolf@openbossa.org>
          Marcelo Lira <marcelo.lira@openbossa.org>
2010-12-03 19:35:59 -02:00
Hugo Parente Lima
12bc3f5c12 Set the object meta object at the declaration time, not instanciation time. 2010-12-03 19:35:59 -02:00
Hugo Parente Lima
35ab7bf679 Moved pyside slot attr name do pysideslot_p.h. 2010-12-03 19:35:58 -02:00
Hugo Parente Lima
a612c9ee58 PySidePropertyPrivate struct moved to the private header. 2010-12-03 19:35:58 -02:00
Hugo Parente Lima
afe4fcf695 Remove unused ancient proxyslot.cpp file. 2010-12-03 19:35:58 -02:00
Marcelo Lira
d51aacabd1 Updates to more code snippets on documentation concerning QtCore module.
Reviewed by Hugo Parente <hugo.lima@openbossa.org>
Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
2010-12-03 10:54:27 -03:00
Marcelo Lira
7ee87cc8f2 Updated a lot of code snippets on documentation concerning QtCore module.
Reviewed by Hugo Parente <hugo.lima@openbossa.org>
Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
2010-12-03 07:54:44 -03:00
Hugo Parente Lima
59b4f2b59d Fixed qt_metacall, now everything works as it should.
Reviewer: Luciano Wolf <luciano.wolf@openbossa.org>
          Lauro Moura <lauro.neto@openbossa.org>
2010-12-02 18:12:24 -02:00
Hugo Parente Lima
e20a97a480 Fixed dynamic meta object to avoid empty meta method.
Empty meta methods cause a assert failure on QtDeclarative module.
Also removed the scoped pointer to avoid heap allocation when it's not
needed, as QByteArray is already implicity shared.
2010-12-01 15:38:16 -02:00
Luciano Wolf
9e26b5f39d Add needed cast to compile using python versions <2.6
Reviewer: Hugo Parente Lima <hugo.pl@gmail.com>
          Marcelo Lira <marcelo.lira@openbossa.org>
2010-12-01 11:08:28 -03:00
Hugo Parente Lima
113b8efdaf Fix doc generation after the refactor for v1.0.
Reviewer: Renato Araújo <renato.filho@openbossa.org>
          Marcelo Lira <marcelo.lira@openbossa.org>
2010-11-29 14:48:58 -02:00
Kalev Lember
0d60daf1e1 Fix phonon VideoCaptureDevice detection to properly use phonon_ namespace
Fixes build with phonon 4.4.3 on Fedora rawhide.

Reviewer: Renato Araújo <renato.filho@openbossa.org>
          Hugo Parente Lima <hugo.pl@gmail.com>
2010-11-26 18:55:57 -03:00
Hugo Parente Lima
dadd07ccd7 Fix compilation on Windows. 1.0.0-beta1
Reviewer: Renato Araújo <renato.filho@openbossa.org>
2010-11-25 16:02:10 -02:00
Hugo Parente Lima
91030433ce Fix bug#496 - "No binary read/write methods in QDataStream"
Reviewer: Luciano Wolf <luciano.wolf@openbossa.org>
          Renato Araújo <renato.filho@openbossa.org>
2010-11-24 15:37:48 -02:00
Hugo Parente Lima
47aa718978 Fix crash at exit when there's a chain of referenced objects.
Reviewer: Luciano Wolf <luciano.wolf@openbossa.org>
          Marcelo Lira <marcelo.lira@openbossa.org>
2010-11-24 14:35:33 -02:00
Hugo Parente Lima
f31d910755 Merge branch 'apichanges'
Reviewer: Renato Araújo <renato.filho@openbossa.org>
          Luciano Wolf <luciano.wolf@openbossa.org>

Conflicts:
	libpyside/pyside.cpp
2010-11-23 15:04:27 -02:00
Renato Araujo Oliveira Filho
e635023cdb Fixed layout ownership transfer.
Fixes bug #480

Reviewer: Luciano Wolf <luciano.wolf@openbossa.org>
          Marcelo Lira <marcelo.lira@openbossa.org>
2010-11-23 14:09:24 -03:00
Renato Araujo Oliveira Filho
abf841fbd3 Created unit test for bug #480.
Reviewer: Luciano Wolf <luciano.wolf@openbossa.org>
          Marcelo Lira <marcelo.lira@openbossa.org>
2010-11-23 14:08:39 -03:00
Hugo Parente Lima
a8ae0680f2 Adapt to API changes in libshiboken. 2010-11-23 14:37:16 -02:00
Renato Araujo Oliveira Filho
ce1cadcacf Fixed GlobalReceiver destructor.
Reviewer: Luciano Wolf <luciano.wolf@openbossa.org>
          Hugo Parente Lima <hugo.pl@gmail.com>
2010-11-23 11:53:15 -03:00
Renato Araujo Oliveira Filho
276f260f65 Fixed unit test related to bug #446. 2010-11-22 16:35:23 -03:00