Hugo Parente Lima
47957530f9
Refactor to simplify code just avoding some Cism.
2011-02-15 16:38:53 -02:00
Hugo Parente Lima
a7cebb5917
Make PySide signals work with meta types.
2011-02-15 16:38:21 -02:00
Lauro Neto
0298a34289
Raise error when slot argument is unknown.
...
Instead of accepting it silently and generating potential
segfault and undefined behavior, raise TypeError when
the type of an argument is unknown to PySide type system.
An example of such erratic behavior is in declarations like:
@Slot
def foo(self):
Slots without arguments must be explicitly declared this way:
@Slot()
def foo(self):
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
Reviewer: Hugo Lima <hugo.lima@openbossa.org>
2011-02-11 19:32:41 -03:00
Renato Araujo Oliveira Filho
b9dd824866
Appended the metaclass data flags value on head.
...
Fix bug #671 .
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
Hugo Parente Lima <hugo.pl@gmail.com>
2011-02-10 17:30:34 -03:00
Hugo Parente Lima
7909d294f5
Fix bug 668 - "QFileSystemModel setRootPath stops application from quitting."
...
Reviewer: Luciano Wolf <luciano.wolf@openbossa.org>
Renato Araújo <renato.filho@openbossa.org>
2011-02-09 18:26:55 -02:00
Renato Araujo Oliveira Filho
6b1f0b8ca7
Fixed problems to emit signals with objects types.
...
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
Lauro Moura <lauro.neto@openbossa.org>
2011-02-07 17:32:47 -03:00
Renato Araujo Oliveira Filho
1b1a83dc30
Fixed Cmake files used to find the library after the installation.
...
Reviewer: Luciano Wolf <luciano.wolf@openbossa.org>
Marcelo Lira <marcelo.lira@openbossa.org>
2011-02-02 11:42:52 -03:00
Hugo Parente Lima
3270dde028
Fix bug 651 - "Calling disconnect() with no arguments causes segfault"
2011-02-02 11:36:12 -02:00
Hugo Parente Lima
9ca80b5d3a
Don't crash if a typeId was not found when emiting a signal.
...
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
Lauro Moura <lauro.neto@openbossa.org>
2011-01-31 14:36:03 -02:00
Renato Araujo Oliveira Filho
9284703855
Replace use of QMetaObject::activate to QObject::qt_metacall.
...
This is necessary to support signals with default values.
Fix bug #624
Reviewer: Luciano Wolf <luciano.wolf@openbossa.org>
Lauro Moura <lauro.neto@openbossa.org>
2011-01-21 13:44:47 -03:00
Hugo Parente Lima
b9679215b8
Fix bug#552 - "Segmentation fault when using QUiLoader and QTabWidget"
...
Reviewer: Renato Araújo <renato.filho@openbossa.org>
Marcelo Lira <marcelo.lira@openbossa.org>
2011-01-21 10:30:21 -02:00
Renato Araujo Oliveira Filho
8243565f81
Fix typo on Cmake files.
...
Reviewer: Bruno Araujo <bruno.araujo@openbossa.org>
2011-01-13 14:14:26 -03:00
Hugo Parente Lima
7e1b76e054
Don't crash when a unknown type is given as a meta call argument.
2011-01-13 13:59:01 -02:00
Renato Araujo Oliveira Filho
c8111dc99a
Fixed path to include file used on cmake files.
...
Reviewer: Bruno Araujo <bruno.araujo@openbossa.org>
2011-01-13 10:45:17 -03:00
Renato Araujo Oliveira Filho
b8fcead629
Use python base name as library prefix.
...
Use the same CMAKE_BUILD_TYPE as shiboken if none was specified.
Append SHIBOKEN_PYTHON_BASENAME in the library suffix.
Fix bug #509 .
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
Lauro Moura <lauro.neto@openbossa.org>
2011-01-12 17:27:42 -03:00
Hugo Parente Lima
269e8450dc
New format for __version_info__.
...
The new format follow the same rules used by sys.version_info().
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
Lauro Moura <lauro.neto@openbossa.org>
2011-01-04 16:47:57 -02:00
Hugo Parente Lima
e8c0ba238a
Fix bug#563 - "Unhandled signal emitting with invalid signature (which leads to application crash)"
2010-12-29 10:14:28 -02:00
Renato Araujo Oliveira Filho
db4d324497
Fixed MetaObject creation based on typename.
...
Reviewed by Hugo Parente <hugo.lima@openbossa.org>
2010-12-29 09:55:13 -03:00
Renato Araujo Oliveira Filho
401f394179
Fixed variable scope.
...
This keep the QByteArray live during the use of your content.
Reviewer: Lauro Moura <lauro.neto@openbossa.org>
Hugo Parente Lima <hugo.pl@gmail.com>
2010-12-22 19:49:50 -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
Hugo Parente Lima
dc732da7a8
Remove unused field "type" from PySideProperty private struct.
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
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
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
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
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
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
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
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
Hugo Parente Lima
71d279c040
Uses QByteArray instead of QString to avoid data copy.
...
Reviewer: Luciano Wolf <luciano.wolf@openbossa.org>
Lauro Moura <lauro.neto@openbossa.org>
2010-11-18 18:48:35 -02:00
Hugo Parente Lima
090e4a6525
Remove function deleteDynamicQMetaObject, use Shiboken::callCppDestructor<DynamicQMetaObject> instead.
2010-11-18 17:38:43 -02:00
Hugo Parente Lima
92dcb7ae3a
Changes needed to compile QtCore with libshiboken v1.0
2010-11-10 17:22:32 -02:00
renatofilho
257e0cdf18
Implemented PySideMetaFunction class used to call dynamic slots.
...
Reviewer: Hugo Parente Lima <hugo.pl@gmail.com>
Luciano Wolf <luciano.wolf@openbossa.org>
2010-11-05 19:01:07 -03:00
renatofilho
50f915572d
Fill the argument used on metacall for slot functions.
...
Fixes bug #456 .
Reviewer: Luciano Wolf <luciano.wolf@openbossa.org>
Lauro Neto <lauro.neto@openbossa.org>
2010-11-03 17:49:27 -03:00
renatofilho
1f2696e9e7
Fixed invalid call function.
2010-11-03 10:58:55 -03:00
renatofilho
e9b0f3e4ae
Fixed slot registration during the meta object constructor.
...
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
Lauro Neto <lauro.neto@openbossa.org>
2010-11-03 10:29:40 -03:00
renatofilho
5b0606009d
Fixed metacall function adn PyGil state handle.
...
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
Lauro Neto <lauro.neto@openbossa.org>
2010-11-03 10:29:35 -03:00
renatofilho
4cd7a240d8
Renamed qsignal, qslot, qproperty files to pyside*.
...
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
Lauro Neto <lauro.neto@openbossa.org>
2010-11-03 10:29:31 -03:00
renatofilho
c7945787c5
Created Singal/Slot/Property namespace for pure C structures.
...
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
Lauro Neto <lauro.neto@openbossa.org>
2010-11-03 10:28:15 -03:00
renatofilho
7a439f4d21
Exported function to instantiate a signal object.
...
Fixes bug #428
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
Luciano Wolf <luciano.wolf@openbossa.org>
2010-10-29 16:23:45 -03:00
renatofilho
bd8239b1cd
Stop signal/slot connection if is impossible to register that on object.
...
Created unit test for bug #442 , #437 .
Fixes bug #442 .
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
Luciano Wolf <luciano.wolf@openbossa.org>
2010-10-28 17:40:12 -03:00
renatofilho
363ecb3461
Implemented Signal constructor base on QMethod list.
...
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
Luciano Wolf <luciano.wolf@openbossa.org>
2010-10-28 14:57:40 -03:00