Renato Filho
7f611d1c53
Removed glue code for QObject.inherits function.
...
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
Hugo Parente Lima <hugo.pl@gmail.com>
2011-06-20 17:20:50 -03:00
Renato Filho
21dc823972
Fixed signal connection with native c++ slot.
...
Fixes bug #860 .
Reviewer: Luciano Wolf <luciano.wolf@openbossa.org>
Hugo Parente <hugo.lima@openbossa.org>
2011-06-03 17:33:53 -03:00
Hugo Parente Lima
0d2705eb11
Avoid warnings about redefined constants.
2011-06-02 17:53:47 -03:00
Renato Filho
959aa385f5
Created DestroyListener class.
...
This class is used to keep the Python object live until the signal destroyed emission.
With this is possible to use the QObject on destruction signal.
Fixes bug #505 .
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
Hugo Parente Lima <hugo.pl@gmail.com>
2011-05-23 17:43:38 -03:00
Renato Filho
05431cbfc0
Fixed reference leek on global receiver callback call.
...
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
Hugo Parente Lima <hugo.pl@gmail.com>
2011-05-23 17:43:35 -03:00
Renato Filho
04be2b1ca2
Implemented PySide::ClassInfo Object.
...
This class reproduce the Qt macro Q_CLASSINFO behavior.
Eg.:
@QtCore.ClassInfo(author='PySide', url='http://www.pyside.org ')
fixes bug #705 .
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
Hugo Parente Lima <hugo.pl@gmail.com>
2011-05-23 17:43:27 -03:00
Renato Filho
fe06dba43c
Create checkType for libpyside objects.
...
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
Hugo Parente Lima <hugo.pl@gmail.com>
2011-05-23 17:43:23 -03:00
Renato Filho
cef6db9548
Fix indentation.
...
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
Hugo Parente Lima <hugo.pl@gmail.com>
2011-05-23 17:43:03 -03:00
Renato Filho
b9fd78a65f
Create PySideWeakRef class.
...
With this class you can use a c function as a callback on PyObject destruction.
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
Hugo Parente Lima <hugo.pl@gmail.com>
2011-05-19 10:29:59 -03:00
Renato Filho
78e120ec02
Uses QMetaObject revision 3.
...
This allow to register signal and slot in any order.
Fixes bug #312
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
Hugo Parente Lima <hugo.pl@gmail.com>
2011-05-11 10:18:16 -03:00
Renato Filho
450d1a98a5
Avoid run PyObjectWrapper operators without python interpreter.
...
Fixes bug #829 .
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
Hugo Parente Lima <hugo.pl@gmail.com>
2011-05-09 16:32:48 -03:00
Paulo Alcantara
6e95894d10
Fix bug #835 - "pyside breaks descriptor protocol"
...
Signed-off-by: Paulo Alcantara <paulo.alcantara@openbossa.org>
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
Hugo Parente Lima <hugo.pl@gmail.com>
2011-05-06 15:11:06 -03:00
Renato Filho
a31fb14a1f
Fixed signal name parser.
...
Fixes bug #820 .
Reviewer: Lauro Moura <lauro.neto@openbossa.org>
Hugo Parente Lima <hugo.pl@gmail.com>
2011-05-05 11:41:25 -03:00
Renato Filho
955316b5ca
Implemented stream operator for PyObjectWrapper.
...
Fixes bug #829 .
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
Hugo Parente Lima <hugo.pl@gmail.com>
2011-04-28 10:34:49 -03:00
Hugo Parente Lima
aa8c4f6b2e
Fix bug 836 - "Pyside crashes with more than four base classes"
...
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
Renato Araújo <renato.filho@openbossa.org>
2011-04-27 19:08:40 -03:00
Renato Filho
3e69981b4b
Use PyFloat as double in signal signatures.
...
Fix bug #722 .
Reviewer: Luciano Wolf <luciano.wolf@openbossa.org>
Lauro Moura <lauro.neto@openbossa.org>
2011-04-13 18:29:19 -03:00
Hugo Parente Lima
40718156a6
Remove unused variables and warnings when using gcc 4.6.
2011-04-07 16:33:42 -03:00
Renato Filho
e39188d636
Change the order of function call on destructionVisitor to avoid problems with cyclic dependency.
...
Fixes bug #793 .
Reviewer: Luciano Wolf <luciano.wolf@openbossa.org>
Hugo Parente <hugo.lima@openbossa.org>
2011-04-05 10:14:31 -03:00
Hugo Parente Lima
9024884495
Fix bug 790 - "QStyledItemDelegate Signal with lambda and QModelIndex: Fatal Python error: PyEval_SaveThread: NULL tstate"
...
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
Luciano Wolf <luciano.wolf@openbossa.org>
2011-03-25 16:49:38 -03:00
Hugo Parente Lima
3cd2cad128
Fix bug 699 - "PySide.QtCore.Property doesn't throw a TypeError if the first arg isn't a PyType."
2011-03-25 09:48:11 -03:00
Hugo Parente Lima
7849b4262f
Fix bug 736 - "Signal/Slot is not working at all"
...
Reviewer: Luciano Wolf <luciano.wolf@openbossa.org>
Lauro Moura <lauro.neto@openbossa.org>
2011-03-22 15:04:40 -03:00
Hugo Parente Lima
4749d14642
Changed local variable naming style.
2011-03-22 15:04:27 -03:00
Renato Filho
78ca4c0749
Only raise 'RuntimeError' for function call to avoid problems with contructor order calls.
2011-03-22 11:13:32 -03:00
Renato Filho
8ce3644a13
Does not use normalizeSignature in functions with return type.
...
Fix bug #726 .
Reviewer: Luciano Wolf <luciano.wolf@openbossa.org>
Lauro Moura <lauro.neto@openbossa.org>
2011-03-21 11:57:38 -03:00
Renato Filho
880e6a28b6
Check if class is valid before call meta object function on class getattro function.
...
Fix bug #696 .
Reviewer: Hugo Parente Lima <hugo.pl@gmail.com>
Marcelo Lira <marcelo.lira@openbossa.org>
2011-03-16 17:00:14 -03:00
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