Commit graph

940 commits

Author SHA1 Message Date
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
Renato Araujo Oliveira Filho
934f291fd9 Separates QObjects with python ownership before start destructing then.
This avoid list changes during the destruction.

Reviewer: Luciano Wolf <luciano.wolf@openbossa.org>
          Marcelo Lira <marcelo.lira@openbossa.org>
2010-11-22 10:43:38 -03:00
Renato Araujo Oliveira Filho
f7cb52d382 Added reference to object which was exported to QML context.
Reviewer: Luciano Wolf <luciano.wolf@openbossa.org>
          Marcelo Lira <marcelo.lira@openbossa.org>
2010-11-22 10:43:34 -03:00
Renato Araujo Oliveira Filho
e12197e282 Fix generated property flags on metaobject.
Fixes bug #478

Reviewer: Luciano Wolf <luciano.wolf@openbossa.org>
          Marcelo Lira <marcelo.lira@openbossa.org>
2010-11-22 10:43:01 -03:00
Renato Araujo Oliveira Filho
3bc0d023c8 Fix setContexMenu function ownership rule.
Fixes bug #441.
2010-11-20 12:56:18 -03:00
Renato Araujo Oliveira Filho
783c146766 Created unit test for bug #446.
Reviewer: Hugo Parente Lima <hugo.pl@gmail.com>
2010-11-19 20:33:46 -03:00
Renato Araujo Oliveira Filho
ff7f570599 Fixed codesnippte about return of QAbstractSocket.read function.
Reviewer: Hugo Parente Lima <hugo.pl@gmail.com>
2010-11-19 20:33:31 -03:00
Renato Araujo Oliveira Filho
c21497ec1a Create unit test for bug #467. 2010-11-19 19:31:36 -03:00
Renato Araujo Oliveira Filho
6cefd33cd0 Fixed use of QtDeclarative include header to work with MacOS.
Reviewer: Luciano Wolf <luciano.wolf@openbossa.org>
          Lauro Moura <lauro.neto@openbossa.org>
2010-11-19 19:01:41 -03:00
Renato Araujo Oliveira Filho
ca0e17a45e Fix typo on function call template type.
Reviewer: Luciano Wolf <luciano.wolf@openbossa.org>
          Hugo Parente Lima <hugo.pl@gmail.com>
2010-11-19 18:52:51 -03:00
Renato Araujo Oliveira Filho
c9aef92cab Update to new Shiboken API (Renamed SbkObjectType)
Reviewer: Luciano Wolf <luciano.wolf@openbossa.org>
          Hugo Parente Lima <hugo.pl@gmail.com>
2010-11-19 16:05:00 -03:00
Renato Araujo Oliveira Filho
5e0550446c Updated to new shiboken API.
Reviewer: Hugo Parente Lima <hugo.pl@gmail.com>
          Luciano Wolf <luciano.wolf@openbossa.org>
2010-11-19 15:15:12 -03:00
Renato Araujo Oliveira Filho
0989462639 Fixed recursive call on duck punching test.
Reviewer: Hugo Parente Lima <hugo.pl@gmail.com>
          Luciano Wolf <luciano.wolf@openbossa.org>
2010-11-19 15:14:52 -03:00
Renato Araujo Oliveira Filho
43e499a4fa Fixed unit test to avoid exit with thread running.
Reviewer: Hugo Parente Lima <hugo.pl@gmail.com>
          Luciano Wolf <luciano.wolf@openbossa.org>
2010-11-19 15:14:48 -03:00