Commit graph

1,017 commits

Author SHA1 Message Date
Hugo Parente Lima
b5331e5c56 Add polymorphic-id-expression to QGraphicsObject and QDeclarativeItem. 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
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
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
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
Renato Araujo Oliveira Filho
0f6a504dfb Fix Qvariant to Cpp conversion.
Fixes bug #589

Reviewer: Hugo Parente Lima <hugo.lima@openbossa.org>
          Marcelo Lira <marcelo.lira@openbossa.org>
2011-01-07 19:15:41 -03:00
Marcelo Lira
efdedcdd01 Fixes the fix in the commit a1cf8f03.
Reviewed by Hugo Parente <hugo.lima@openbossa.org>
Reviewed by Renato Araújo <renato.filho@openbossa.org>
2011-01-06 20:58:11 -03:00
Hugo Parente Lima
4d014eaa80 Fix bug#560 - "Lack of QtCore.Signal documentation"
Reviewer: Renato Araújo <renato.filho@openbossa.org>
          Marcelo Lira <marcelo.lira@openbossa.org>
2011-01-06 20:14:56 -02: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
Renato Araujo Oliveira Filho
fb9c1a97fe Fixed QTreeWidgetItem.parent function policy.
Fixes bug #585

Reviewer: Hugo Parente Lima <hugo.lima@openbossa.org>
          Marcelo Lira <marcelo.lira@openbossa.org>
2011-01-06 14:16:44 -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
Renato Araujo Oliveira Filho
ed1c0014f9 Fixed QWidget.setParent signature on typesystem. 2011-01-05 08:49:39 -03: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
Hugo Parente Lima
15dd2e07ed Lock the gil on some hand written code to avoid crashes.
Reviewer: Renato Araújo <renato.filho@openbossa.org>
          Marcelo Lira <marcelo.lira@openbossa.org>
2011-01-04 19:25:31 -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
Hugo Parente Lima
ea83c5e554 Fix bug#577 - "Reference to QString in docs" 2011-01-03 14:24:52 -02: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
Hugo Parente Lima
4b6cc4d478 Changes the arg name from p to parent to make parent heuristic work. 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
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
Renato Araujo Oliveira Filho
25264046e8 Appended ${QtGui_BINARY_DIR} on typesystem_path for QtMaemo5 module. 2010-12-28 14:12:24 -03:00
Renato Araujo Oliveira Filho
ecbc9ebcfa Appended QtGui library dependency on pysidetest library. 2010-12-28 14:09:16 -03:00
Renato Araujo Oliveira Filho
fa89170f62 Test for QTDESIGNER before add QTUITOOLS.
This test is necessary because the module QTUITOOLS uses some classes
from QTDESIGNER.

Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
          Bruno Araujo <bruno.araujo@openbossa.org>
2010-12-28 12:00:02 -03:00
Renato Araujo Oliveira Filho
a74d92adce Fix QTreeWidget parent rules.
QTreeWidget.clear() - remove all child ref from the current widget
QTreeWidgetItem.parent() - use default policy for returned value

Fix bug #547

Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
          Hugo Parente Lima <hugo.pl@gmail.com>
2010-12-27 19:20:05 -03:00
Renato Araujo Oliveira Filho
656be4ec98 Removed some float comparisons from QColor test to avoid armel problems.
Reviewed by Hugo Parente <hugo.lima@openbossa.org>
2010-12-27 13:32:16 -03:00
Hugo Parente Lima
6cf55675dc Fix bug#549 - "QGraphicsWidget::getContentsMargins() and QGraphicsWidget::getWindowFrameMargins() not available"
Reviewer: Renato Araújo <renato.filho@openbossa.org>
          Marcelo Lira <marcelo.lira@openbossa.org>
2010-12-23 17:22:29 -02:00
Renato Araujo Oliveira Filho
fc471bed0f Used more common signature on function test to QList objects.
Replaced "const QList<QObject*>" signature to "const QList<QObject*>&",
more used on Qt code.
2010-12-23 15:47:59 -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
Lauro Neto
af0860ba4a Fix testbinding dependency
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
Reviewer: Renato Araujo <renato.araujo@openbossa.org>
2010-12-22 18:11:26 -03:00
Renato Araujo Oliveira Filho
c4185280ba Moved list_signal_test to pysidetest library.
This isolate the test case, and avoid other problems with X during the
buildbot compilation.

Reviewer: Lauro Moura <lauro.neto@openbossa.org>
          Hugo Parente Lima <hugo.pl@gmail.com>
2010-12-22 16:34:29 -03:00