Commit graph

1,046 commits

Author SHA1 Message Date
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
Renato Araujo Oliveira Filho
1a65a287fb Implemented fuction __repr__ for base types.
Fixes bug #593

Reviewer: Luciano Wolf <luciano.wolf@openbossa.org>
          Marcelo Lira <marcelo.lira@openbossa.org>
2011-01-27 17:34:44 -03:00
Renato Araujo Oliveira Filho
1f6e877f8d Fixed QFileDialog function calls with options in the last argument.
Fixes bug #590

Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
          Luciano Wolf <luciano.wolf@openbossa.org>
2011-01-25 17:29:21 -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
Hugo Parente Lima
a4d7d8f80d Fix bug#636 - "Unable to navigate back to the main site from the generated documentation" 2011-01-24 10:30:04 -02:00
Renato Araujo Oliveira Filho
1cce4bafd3 Bump version to beta5. 2011-01-21 16:14:58 -03:00
Renato Araujo Oliveira Filho
08a0298fe0 Updated generatorrunner version dependency. 2011-01-21 16:14:16 -03: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
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
f7a2ab3d66 Don't reject QGLWidget::setMouseTracking function. 2011-01-20 15:12:41 -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
3b026ad4c9 Fixed Widget and Layout inject code to avoid problems in armel arch. 2011-01-18 14:42:02 -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
Marcelo Lira
499051fd2a Updates documentation of QUiLoader.registerCustomWidget method.
The new documentation highlights the danger of duck punching virtual
methods of widget objects produced by QUiLoader.
Also named the argument of QUiLoader.registerCustomWidget as
customWidgetType.

Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
Reviewed by Renato Araújo <renato.filho@openbossa.org>
2011-01-14 17:14:13 -03:00
Marcelo Lira
fb6186d270 Named the single argument of all "QWidget.*Event(arg)" methods as "event".
Just to make the generated documentation more readable.
2011-01-14 17:01:55 -03:00
Marcelo Lira
0d9a584a1c Fixed style on QUiLoader code snippet. 2011-01-14 17:01:55 -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
8243565f81 Fix typo on Cmake files.
Reviewer: Bruno Araujo <bruno.araujo@openbossa.org>
2011-01-13 14:14:26 -03:00
Hugo Parente Lima
867c2bd259 Removed useless rejections
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
          Lauro Moura <lauro.neto@openbossa.org>
2011-01-13 13:59:02 -02:00
Hugo Parente Lima
ae02222d57 Remove protected fields of event classes.
Event classes have a lot of non-documented protected fields, those fields
are removed from PySide because they are Qt implementation details,
besides the fact they are accessible by ordinary event methods.
2011-01-13 13:59:02 -02:00
Hugo Parente Lima
a78108efe3 Fix documentation for QWidget.winId() 2011-01-13 13:59:02 -02: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
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