Commit graph

392 commits

Author SHA1 Message Date
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
Hugo Parente Lima
43a8f4089e Fix bug 656 - "cannot inherit from QCoreApplication"
Reviewer: Renato Araújo <renato.filho@openbossa.org>
          Luciano Wolf <luciano.wolf@openbossa.org>
2011-01-31 16:22:28 -02:00
Marcelo Lira
f2c537eeaa Updated GeneratorRunner calls on CMake files to use "--generator-set" instead of "--generatorSet".
Reviewed by Hugo Parente <hugo.lima@openbossa.org>
Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
Reviewed by Renato Araújo <renato.filho@openbossa.org>
2011-01-31 14:54:10 -03:00
Hugo Parente Lima
e17795d35b Added test for bug 613. 2011-01-28 20:44:16 -02:00
Hugo Parente Lima
2a43919024 Fix bug 565 - "QImage missing *data constructors"
Fix bug 566 - "'PySide.QtGui.QImage' object has no attribute 'scanLine'"

The constructors now accepts any PyObject which implements the buffer protocol, as the
C++ and PyQt4 version the buffer must be alive during the life time of QImage because QImage
*does not* copy the image data.

scanLine() and bits() now return buffer objects pointing to the memory inside QImage.
2011-01-28 19:33:42 -02:00
Renato Araujo Oliveira Filho
3c3caf154e Created unit test for bug #617.
Reviewer: Luciano Wolf <luciano.wolf@openbossa.org>
          Marcelo Lira <marcelo.lira@openbossa.org>
2011-01-28 16:17:18 -03:00
Renato Araujo Oliveira Filho
5112a89ca9 Created __repr__ function unit test.
Reviewer: Luciano Wolf <luciano.wolf@openbossa.org>
          Marcelo Lira <marcelo.lira@openbossa.org>
2011-01-27 17:35:05 -03:00
Hugo Parente Lima
629c0c383b Add test for bug#640.
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
          Luciano Wolf <luciano.wolf@openbossa.org>
2011-01-25 15:55:01 -02:00
Renato Araujo Oliveira Filho
c5fffa6f24 Implement support to others color spec on deepcopy function.
Created unit test QColor reduce function.

Fixes bug #612.

Reviewer: Luciano Wolf <luciano.wolf@openbossa.org>
          Marcelo Lira <marcelo.lira@openbossa.org>
2011-01-25 15:38:22 -03:00
Hugo Parente Lima
286f9c6d09 Fix bug#633 - "bool of null QDate (possibly other empty QString/null QObj types?) returns True for empty instance; probably should be False" 2011-01-24 16:42:45 -02:00
Renato Araujo Oliveira Filho
9a4c439d7f Fixed QLineEdit.getTextMargins return value.
Fixes bug #632

Reviewer: Hugo Parente Lima <hugo.pl@gmail.com>
          Marcelo Lira <marcelo.lira@openbossa.org>
2011-01-24 13:44:28 -03:00
Marcelo Lira
bcba2a3b32 Added test cases for signal emission.
Signals are emitted from C++ and Python.

Reviewer: Luciano Wolf <luciano.wolf@openbossa.org>
          Lauro Moura <lauro.neto@openbossa.org>
2011-01-21 13:41:26 -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
Hugo Parente Lima
7f533799d4 Use the same Python used by Shiboken instead of find a new one. 2011-01-20 15:17:34 -02:00
Hugo Parente Lima
6a83c87283 Fix bug#623 - "QGLWidget.bindTexture(QPixmap, GLenum, GLenum) is missing" 2011-01-20 15:12:41 -02:00
Marcelo Lira
1a3418c8d1 Added test for module reloading.
Reviewed by Hugo Parente <hugo.lima@openbossa.org>
Reviewed by Renato Araújo <renato.filho@openbossa.org>
2011-01-19 17:49:12 -03:00
Renato Araujo Oliveira Filho
50e6f7671d Created unit test for bug #575.
Reviewer: Hugo Parente Lima <hugo.pl@gmail.com>
          Luciano Wolf <luciano.wolf@openbossa.org>
2011-01-17 10:46:43 -03:00
Hugo Parente Lima
530a3d23c5 Fix bug#584 - "python pickle module can't treat QByteArray object of PySide"
Reviewer: Luciano Wolf <luciano.wolf@openbossa.org>
          Lauro Moura <lauro.neto@openbossa.org>
2011-01-14 13:58:10 -02:00
Renato Araujo Oliveira Filho
85947c03d9 Create a new parent test.
Check if the parent does not increase the reference if you set the
parent twice.
2011-01-12 19:31:22 -03:00
Marcelo Lira
ed0d9cf820 Added test for QPainter.setPen() method.
Calls it with enum, to call the setPen(Qt.PenStyle) signature, and with
an integer, to call the setPen(QColor) signature (QColor is implicitly
built from an unsigned int in C++).

For more details see Bug #511:
http://bugs.openbossa.org/show_bug.cgi?id=511

Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
Reviewed by Renato Araújo <renato.filho@openbossa.org>
2011-01-12 10:44:21 -03:00
Marcelo Lira
814bc522ce Added condition for a phonon test that fails on Win32 with Qt 4.7.1.
This is due to a bug on Phonon::createPath that happens with the
specific combination of Win32 platform and Qt 4.7.1. The bug is reported
as fixed for Qt 4.7.2, but it wasn't released yet.

For more details on the bug:
http://bugreports.qt.nokia.com/browse/QTBUG-13062

Reviewed by Hugo Parente <hugo.lima@openbossa.org>
Reviewed by Lauro Moura <lauro.neto@openbossa.org>
2011-01-10 15:26:54 -03:00
Renato Araujo Oliveira Filho
fb9fdba329 Created unit test for bug 589.
Reviewer: Hugo Parente Lima <hugo.lima@openbossa.org>
          Marcelo Lira <marcelo.lira@openbossa.org>
2011-01-07 19:15:49 -03:00
Marcelo Lira
a1cf8f03b2 Fixes connecting signal to decorated slot.
Decorated methods on classes derived from QObject are not called when
connected to Qt signals because they get a name different from the
decorated method. To solve this decorated methods are registered as
global slots.

An unit test was added.

Reviewed by Hugo Parente <hugo.lima@openbossa.org>
Reviewed by Renato Araújo <renato.filho@openbossa.org>
2011-01-06 19:08:40 -03:00
Marcelo Lira
5151af6de1 Refactoring to Phonon basic playing test.
Also replaced the ogg audio tone file for a wav one.

Reviewed by Hugo Parente <hugo.lima@openbossa.org>
Reviewed by Renato Araújo <renato.filho@openbossa.org>
2011-01-06 16:45:03 -03:00
Marcelo Lira
d3894ed861 Fixed PATH variable for tests on win32 platform. 2011-01-06 16:26:15 -03:00
Renato Araujo Oliveira Filho
932d9bced9 Created unit test for bug #585.
Reviewer: Hugo Parente Lima <hugo.lima@openbossa.org>
          Marcelo Lira <marcelo.lira@openbossa.org>
2011-01-06 14:17:21 -03:00
Hugo Parente Lima
753d2bd1f6 Only try to play the ogg file if the system has the capability to do it.
This fix a failing test on macosx.

Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
          Renato Araújo <renato.filho@openbossa.org>
2011-01-05 19:26:45 -02:00
Renato Araujo Oliveira Filho
53e649629b Fixed QtNetwork test to use '127.0.0.1' instead of 'localhost'
This is necessary to make all test to be able run on any buildbot machine.
Fix Http server shutdown sequence to avoid deadlocks.

Fixes bug #587

Reviewer: Hugo Parente Lima <hugo.lima@openbossa.org>
          Marcelo Lira <marcelo.lira@openbossa.org>
2011-01-05 14:54:23 -03:00
Hugo Parente Lima
6383832408 Fix bug#557 - "Segmentation fault in QDeclarativeComponent.loadUrl()"
The signature QDeclarativeComponent(QObject*) should not exist, it's not
documented and just creates a useless QDeclarativeComponent when used,
useless in the sense that it will segfault when used.

Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
          Renato Araújo <renato.filho@openbossa.org>
2011-01-05 14:35:11 -02:00
linjunhalida
32681f7b70 add new QDatetime init function with 6 arguments
Reviewer: Hugo Parente Lima <hugo.lima@openbossa.org>
          Marcelo Lira <marcelo.lira@openbossa.org>
2011-01-04 19:55:14 -02:00
Renato Araujo Oliveira Filho
3774752f0c Fixed function QDataStream.readRawData return value.
The function readRawData now return None in case of error, otherwise a
string with the read data.

Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
          Hugo Parente Lima <hugo.pl@gmail.com>
2011-01-04 19:23:57 -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
Renato Araujo Oliveira Filho
374e2fcf88 Created support to function qAddPostRoutine.
Created unit test for bug #515
Fixes bug #515

Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
          Lauro Moura <lauro.neto@openbossa.org>
2011-01-03 19:58:53 -03:00
Marcelo Lira
da1759fe98 Added test case for Bug #572.
Bug #572: Giving unicode value as 'body' argument to WebView's load
method crashes python.

Reviewed by Hugo Parente <hugo.lima@openbossa.org>
Reviewed by Renato Araújo <renato.filho@openbossa.org>
2011-01-03 19:46:41 -03:00
Renato Araujo Oliveira Filho
39a5a09145 Fix QTreeWidgetItem.parent function.
Create unit test for new use case.
Fixes bug #547

Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
          Hugo Parente Lima <hugo.pl@gmail.com>
2011-01-03 14:56:33 -03:00
Renato Araujo Oliveira Filho
f9587fcad2 Fixed QWidget.parent function.
Create unit test for bug 576.
Fixes bug #576.

Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
          Lauro Moura <lauro.neto@openbossa.org>
2011-01-03 13:50:25 -03:00
Lauro Neto
27b53151bf Avoid conflict in test case names
Reviewer: Hugo Lima <hugo.lima@openbossa.org>
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
2011-01-03 11:28:02 -03:00
Renato Araujo Oliveira Filho
eb0d211417 Fixed test to work in all platform. 2011-01-03 10:01:04 -03:00
Hugo Parente Lima
a38db0fe03 Fix bug#514 - "Static method QByteArray.fromRawData is missing from QtCore"
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
          Lauro Moura <lauro.neto@openbossa.org>
2010-12-30 17:03:36 -02:00
Hugo Parente Lima
d0d4ba1564 Fix bug 546 - "Python crash on exit"
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
          Lauro Moura <lauro.neto@openbossa.org>
2010-12-30 15:39:44 -02:00
Hugo Parente Lima
249a87808a Fix bug#493 - "__eq__ and friends not implemented for QKeyEvent == QKeySequence"
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
          Lauro Moura <lauro.neto@openbossa.org>
2010-12-29 19:12:28 -02:00
Lauro Neto
bc9ddff514 Improve QtScriptEngineDebugger test behavior
The extra ContinueAction after evaluate() was crashing
on MacOS X.

Reviewer: Hugo Lima <hugo.lima@openbossa.org>
Reviewer: Renato Araujo <renator.filho@openbossa.org>
2010-12-29 14:29:10 -03:00
Renato Araujo Oliveira Filho
9d6d30cb6a Changed api2 test to work on MacOS during a ssh session. 2010-12-29 11:55:55 -03:00
Hugo Parente Lima
7810dcd829 Fix bug#569 - "QTableWidgetItem is missing binding of __lt__ to operator<"
Reviewer: Renato Araújo <renato.filho@openbossa.org>
          Marcelo Lira <marcelo.lira@openbossa.org>
2010-12-29 10:14:28 -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
7144634e35 Fix test to avoid problems on slow computers.
Reviewed by Hugo Parente <hugo.lima@openbossa.org>
2010-12-29 09:54:58 -03:00