Commit graph

437 commits

Author SHA1 Message Date
Marcelo Lira
8e7845be18 Fixes bugs 746, 747 and 748.
Bug #746 - Method "QFormLayout::getLayoutPosition(QLayout*,int*,QFormLayout::ItemRole*)const" missing
Bug #747 - Method "QFormLayout::getWidgetPosition(QWidget*,int*,QFormLayout::ItemRole*)const" missing
Bug #748 - Method "QFormLayout::getItemPosition(int,int*,QFormLayout::ItemRole*)const" missing

Also added unit tests.
2011-04-07 15:17:30 -03:00
Marcelo Lira
2c6a44feee Fixes bugs 739 and 752.
Bug #739 - Method "QTransform::map(qreal x, qreal y, qreal* tx, qreal* ty) const" missing
Bug #752 - Method "void QSplitter::getRange(int index, int* min, int* max) const" missing

Also added unit tests.
2011-04-07 15:17:30 -03:00
Marcelo Lira
a513d831cd Do *not* mix tabs and spaces. 2011-04-07 15:17:29 -03:00
Marcelo Lira
8e0e7ef0b6 Fixes bugs 744, 745, 756, 758 and 764.
Bug #744 - Method "void QGraphicsLayout::getContentsMargins(qreal*,qreal*,qreal*,qreal*) const" missing
Bug #745 - Method "void QGraphicsLayoutItem::getContentsMargins(qreal*,qreal*,qreal*,qreal*) const" missing
Bug #756 - Method "void QWidget::getContentsMargins(int*,int*,int*,int*) const" missing
Bug #758 - Method "void QTextCursor::selectedTableCells(int*,int*,int*,int*) const" missing
Bug #764 - Method "void QLayout::getContentsMargins(int*,int*,int*,int*) const" missing

Also added unit tests.
2011-04-07 15:17:23 -03:00
Renato Filho
d984cf24cc Create unit test for bug #793.
Reviewer: Luciano Wolf <luciano.wolf@openbossa.org>
          Hugo Parente <hugo.lima@openbossa.org>
2011-04-05 10:17:56 -03:00
Marcelo Lira
bbba1cc470 Fixes bug #489 - PySide.QtGui.QImage with string buffer argument.
http://bugs.pyside.org/show_bug.cgi?id=489

Also added an unit test.

Reviewed by Hugo Parente <hugo.lima@openbossa.org>
Reviewed by Renato Araújo <renato.filho@openbossa.org>
2011-04-01 16:40:17 -03:00
Hugo Parente Lima
9ffb2ef542 Fix bug 712 - "QtGui.QFormLayout doesn't have setItem() function"
Reviewer: Lauro Moura <lauro.neto@openbossa.org>
          Luciano Wolf <luciano.wolf@openbossa.org>
2011-03-30 18:49:07 -03:00
Hugo Parente Lima
c50d08e4c8 Fix bug 694 - "QWebPage::extensions need injected overloads due to required casts on C++ version" 2011-03-25 09:57:02 -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
6f8f728241 Fix bug 685 - "The second arg. of QObject.findChildren doesn't have a default value and doesn't support regexes."
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
          Luciano Wolf <luciano.wolf@openbossa.org>
2011-03-23 13:36:17 -03:00
Hugo Parente Lima
2f4a1f634c Use set instead of add on reference-count action attribute. 2011-03-23 13:36:17 -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
Renato Filho
26ae1259a9 Revert "Fixed test for bug #674 to works with new getattr check."
This reverts commit a6f0d0cb52.
2011-03-22 11:49:43 -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
Hugo Parente Lima
189717cdb1 Fix bug 728 - "QFileDialog.getOpenFileNames never returns (hangs)"
Reviewer: Lauro Moura <lauro.neto@openbossa.org>
          Luciano Wolf <luciano.wolf@openbossa.org>
2011-03-21 15:51:12 -03:00
Renato Filho
2bd54857ed Created unit test for bug #726.
Reviewer: Luciano Wolf <luciano.wolf@openbossa.org>
          Lauro Moura <lauro.neto@openbossa.org>
2011-03-21 11:57:38 -03:00
Hugo Parente Lima
13d9f714c5 Add unit test for bug 693 - "Heap corruption or double free reported on program exit"
Reviewer: Renato Araújo <renato.filho@openbossa.org>
          Luciano Wolf <luciano.wolf@openbossa.org>
2011-03-18 18:32:37 -03:00
Renato Filho
a6f0d0cb52 Fixed test for bug #674 to works with new getattr check.
Reviewer: Hugo Parente Lima <hugo.pl@gmail.com>
          Marcelo Lira <marcelo.lira@openbossa.org>
2011-03-16 17:01:08 -03:00
Renato Filho
fb3bae60f4 Created unit test for bug #696.
Reviewer: Hugo Parente Lima <hugo.pl@gmail.com>
          Marcelo Lira <marcelo.lira@openbossa.org>
2011-03-16 17:01:08 -03:00
Renato Filho
b1a1f61c64 Created unit test for bug #711.
Reviewer: Luciano Wolf <luciano.wolf@openbossa.org>
          Lauro Moura <lauro.neto@openbossa.org>
2011-03-16 16:34:26 -03:00
Hugo Parente Lima
a571d9bd98 Add unit test for bug 706 - "dataChanged signal raise an incorrect TypeError"
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
          Luciano Wolf <luciano.wolf@openbossa.org>
2011-03-16 11:22:34 -03:00
Hugo Parente Lima
008798b0e3 Fix bug 718 - "PySide/PyQt4 QByteArray incompatibilities: setNum method"
Fix bug 719 - "PySide/PyQt4 QByteArray incompatibilities: appendByte method"
2011-03-16 11:22:19 -03:00
Renato Filho
4c149aef4e Created unit test for bug #714.
Reviewer: Luciano Wolf <luciano.wolf@openbossa.org>
          Marcelo Lira <marcelo.lira@openbossa.org>
2011-03-09 18:06:19 -03:00
Hugo Parente Lima
e0cf4b000d Fix bug 674 - "QGraphicsScene::clear() is missing" 2011-02-16 16:07:01 -02:00
Hugo Parente Lima
691841f829 Fix bug 675 - "QGraphicsLinearLayout segfault"
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
          Luciano Wolf <luciano.wolf@openbossa.org>
2011-02-15 19:35:05 -02:00
Hugo Parente Lima
0ad9c484df Add unit test for bug 684. 2011-02-15 16:37:16 -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
Hugo Parente Lima
26d6f4a39e Fix bug 638 - "Documentation for phonon doesn't show class inheritance diagrams." 2011-02-11 15:09:53 -02:00
Renato Araujo Oliveira Filho
c3d180fdc2 Created unit test for bug #671.
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
          Hugo Parente Lima <hugo.pl@gmail.com>
2011-02-10 17:30:34 -03:00
Marcelo Lira
42c9f80b06 Added QCursor test. It is related to bug #630.
Bug #630 - Fails to resolve overload for QCursor(QBitmap, QBitmap, int, int)
http://bugs.openbossa.org/show_bug.cgi?id=630

Reviewed by Hugo Parente <hugo.lima@openbossa.org>
Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
2011-02-10 14:07:56 -03:00
Renato Araujo Oliveira Filho
bda10df1da Fixed function 'QToolBar.addAction' to support callback in the
arguments.

Create unit test for bug #635.

Fixes bug #635.

Reviewer: Luciano Wolf <luciano.wolf@openbossa.org>
          Hugo Parente Lima <hugo.pl@gmail.com>
2011-02-10 10:36:07 -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
Hugo Parente Lima
2248c1b944 Fix bug 667 - "Crash on exit" 2011-02-09 18:26:55 -02:00
Hugo Parente Lima
8fa461559c Fix QGLBuffer::map code injection and test. 2011-02-09 18:26:12 -02:00
Renato Araujo Oliveira Filho
5a87a51c11 Updated http server used on tests to keep trying until get a free address. 2011-02-09 15:49:45 -03:00
Renato Araujo Oliveira Filho
323b37beda Created unit test for bug #662.
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
          Hugo Parente Lima <hugo.pl@gmail.com>
2011-02-09 15:46:29 -03:00
Renato Araujo Oliveira Filho
9b3d0b2ef2 Updated translation test to use previous generated qm files.
Upload qm files used on test to git.

Reviewer: Luciano Wolf <luciano.wolf@openbossa.org>
          Lauro Moura <lauro.neto@openbossa.org>
2011-02-07 20:06:27 -03:00
Renato Araujo Oliveira Filho
8a50e91e6f Updated http server used on unit test.
Allow the server to reuse the address to avoid errors.

Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
          Lauro Moura <lauro.neto@openbossa.org>
2011-02-07 18:09:28 -03:00
Renato Araujo Oliveira Filho
90178e21dd Created unit test for signals.
Test for types inside of namespace
Test for types defined by typedef.

Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
          Luciano Wolf <luciano.wolf@openbossa.org>
2011-02-07 17:33:20 -03:00
Hugo Parente Lima
4e79ce7b25 Fix 666 - "QByteArray does not support slices"
Reviewer: Renato Araújo <renato.filho@openbossa.org>
          Marcelo Lira <marcelo.lira@openbossa.org>
2011-02-04 19:28:43 -02:00
Hugo Parente Lima
ac325f24e4 Fix bug 660 - "QMimeData type deleted prematurely when overriding mime-type in QStandardItemModel drag and drop" 2011-02-04 19:28:42 -02:00
Hugo Parente Lima
d44aa5c310 Fix bug 643 - "QTabWidget.insertTab not taking ownership" 2011-02-04 19:28:42 -02:00
Marcelo Lira
2f6af8142d The global header for PySide is now installed with the libpyside headers.
This is good for PySide derived bindings (like the ones for QtMobility),
so they don't need to copy the PySide global headers to their source
tree and end up with an outdated file.

Reviewed by Hugo Parente <hugo.lima@openbossa.org>
Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
2011-02-04 18:07:51 -03:00
Marcelo Lira
233c0333e6 Removed unnecessary line from test binding CMake file. 2011-02-04 16:09:27 -03:00
Hugo Parente Lima
ac767473a2 Fix qresource_test openning the file in binary mode, so it doesn't fail on windows. 2011-02-04 15:12:29 -02:00
Hugo Parente Lima
7b4968abab Fixed/implemented various QResources methods.
- data() is now exported and returns a Python read-only buffer object.
- (un)registerResourceData now accept buffers as arguments, and respects zeroes in the middle of data.
- Improved unit test.
2011-02-03 18:36:04 -02:00
Hugo Parente Lima
b52148fd85 Fix comparisson of QByteArray with Python strings that have zeroes inside. 2011-02-03 18:36:04 -02:00
Hugo Parente Lima
709895f2fb Fix bug 653 - "Crash after calling QWizardPage.wizard()"
Reviewer: Renato Araújo <renato.filho@openbossa.org>
          Luciano Wolf <luciano.wolf@openbossa.org>
2011-02-02 20:09:10 -02:00
Hugo Parente Lima
295b965d3c Fix bug 652 - "Segfault when using QTextBlock::setUserData due to missing ownership transfer" 2011-02-02 19:23:24 -02:00
Hugo Parente Lima
3270dde028 Fix bug 651 - "Calling disconnect() with no arguments causes segfault" 2011-02-02 11:36:12 -02:00