aboutsummaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* PYSIDE-164: Fix possible deadlock on signal connect/emitps-4.8-headPankaj Pandey2014-07-082-0/+40
| | | | | | | | | | | Signal connect/emit acquire a lock on the QObject, and can happen from python code (which has acquired the GIL) or internal QtCode (without acquiring the GIL). So we always need to release the GIL to prevent out-of-order acquisition of the locks causing deadlock. Change-Id: I1cf47a73c2b60627e322d8ef3fa4c3efdebd4c02 Reviewed-by: John Ehresman <jpe@wingware.com>
* Fixed licensesRoman Lacko2013-07-111-4/+4
| | | | | Change-Id: I55b76b47b1dca0ea290f633b1de070bb8d6995e1 Reviewed-by: John Ehresman <jpe@wingware.com>
* Set up PYTHONPATH for tests correctlyJohn Ehresman2013-07-011-2/+2
| | | | | Change-Id: I1136418671fc06310310551ad5631ef1aa4b8b32 Reviewed-by: John Cummings <jcummings2@users.sf.net>
* Fix PYSIDE-61Stefan Landvogt2013-06-291-27/+37
| | | | | | | | | | | | | | The original author of the test did not know how to create one webview after the other after one webview finished loading, so the old approach segfaulted, because it tried to access variables that were already freed. The new approach simply creates webviews with a timer after the previous webview finished loading. It is also using UsesQApplication instead of creatig the qApp manually. Change-Id: I871e7a238398d96e110e89872634a9c5f3b5bc12 Reviewed-by: John Ehresman <jpe@wingware.com>
* Tell Qt to look for qml imports in the PySide packageRoman Lacko2013-06-222-0/+44
| | | | | Change-Id: Ia7565955f8a3b58c8c57631e13bb56a2793b702a Reviewed-by: John Ehresman <jpe@wingware.com>
* Replaced Nokia copyrights and contact detailsTeemu Kaukoranta2013-05-2811-17/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Replaced Nokia copyrights with correct Digia copyrights. Text in front of copyright is now retained: ** File is part of Foo, Copyright Nokia... -> ** File is part of Foo, Copyright Digia... Replaced Nokia contact details with Digia's. Removing "All Rights Reserved" no longer leaves an empty line. Used the following command: find . -path '*/3rdparty/*' -prune -o -exec grep -ilI -E '.*Copyright.*Nokia.*|.*Contact.*' {} \; | tee >(xargs sed -i -r '1,50 { /INdT|copy[a-z]*[ ]*=/ !{ s/(^[ \t:#*]*)([a-z ]*) (Copyright.*Nokia.*)/ \1\2Copyright \(C\) 2013 Digia Plc and\/or its subsidiary\(-ies\)\./I }}') >(xargs sed -i -r '1,50 s/(^[ \t:#*]*)(.*info@qt\.nokia\.com.* |.*INSERT EMAIL ADDRESS.*|.*qt-info@nokia\.com.* |.*qt-label1@nokia\.com.*|.*http:\/\/qt\.nokia\.com\/contact.* |.*qt-sales@nokia\.com.*|.*http:\/\/www\.qt-project\.org\/.*)/ \1Contact: http:\/\/www\.qt-project\.org\/legal/I') >(xargs sed -i -r '1,50{/(^[ \t:#*]*)(all rights reserved.*)/Id}') Command now finds command details that point to qt-project.org and changes them to qt-project.org/legal Also no longer wrongly replaces code snippet "copyright = ..". Need to fix these case-by-case later. Change-Id: I4456c00202c4a2264a400bdc18c19cd097876861 Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com>
* Fixed licensesTeemu Kaukoranta2013-05-234-16/+20
| | | | | | | | | License fixed using replace-licenses.zsh from mkdist repo. Possible copyright and contact changes will come later. Change-Id: I18b977ac33f1b00e99fa7aae6c1a824769ce5f6e Reviewed-by: Janne Anttila <janne.anttila@digia.com> Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com>
* Change the order of pysitetest and signals directories because ↵Hugo Parente Lima2012-08-281-1/+1
| | | | | | | signals/disconnect_test.py depends on pysidetest module. Change-Id: I31e9fa50cd36979b4843c8c12e3d0680dba2135e Reviewed-by: Marcelo Lira <marcelo.lira@openbossa.org>
* During signal emission don't get return type after callbackJohn Ehresman2012-07-311-0/+25
| | | | | | | | | The callback can disconnect the slot, causing the C++ object for the connection to be deleted. Accessing the return type would then read already freed memory. Change-Id: Ib33fa806978793bcac42167dd45f1e59829a3104 Reviewed-by: Marcelo Lira <marcelo.lira@openbossa.org>
* Invalidate invisibleRootItem in clear() methodJohn Ehresman2012-07-312-2/+10
| | | | | | | Fixes PYSIDE-56 Change-Id: If0529a289e6d9613fdd85bd9d37ccf438d4e92ca Reviewed-by: Hugo Parente Lima <hugo.lima@openbossa.org>
* Add missing unit test.Hugo Parente Lima2012-06-141-0/+17
| | | | | Change-Id: Ia8442dd910c52a892767a49a339c63fec6fbf3c0 Reviewed-by: Marcelo Lira <marcelo.lira@openbossa.org>
* Do not always try to remove bytecode version of the test.Hugo Parente Lima2012-05-042-7/+8
| | | | | | | | | | | Trying to remove the bytecode file doesn't work if it wasn't created in the first place. This can happen for example under Gentoo, where bytecode is disabled while building packages to avoid sandbox violations when Python tries to write a bytecode file for an already-installed module outside the package build directory. Change-Id: I4cbd63527479365e6f201d3fc51c576f55830680 Reviewed-by: Hugo Parente Lima <hugo.lima@openbossa.org>
* Add hash-function for QModelIndex and QPersistenModelIndexAlexander Jones2012-04-192-0/+45
| | | | | | Change-Id: I2725e78a1006fbee54894f202997e2e408998551 Task-number: PYSIDE-41 Reviewed-by: Hugo Parente Lima <hugo.lima@openbossa.org>
* Bug fix for PYSIDE-7Juhapekka Piiroinen2012-03-131-0/+17
| | | | | | | | This should resolve the issue in PYSIDE-7 "QDateTime does not support the 6-argument format". Added function signature for 6-argument version and a testcase. Change-Id: I617eefab6a41939c37e2f1bf800857bc2d74b6ee Reviewed-by: Hugo Parente Lima <hugo.lima@openbossa.org>
* Fix PySide compilation.Hugo Parente Lima2012-03-131-1/+1
| | | | | Change-Id: Ie7a30961232526af59cbc21dbf1b58ab9a4e3e7b Reviewed-by: Hugo Parente Lima <hugo.lima@openbossa.org>
* Fix BUG #1060 - "Subclassing of QUiLoader leads to "Internal C++ objectPaulo Alcantara2012-03-083-0/+38
| | | | | | | | | already deleted" exception" See http://bugs.pyside.org/show_bug.cgi?id=1060. Signed-off-by: Paulo Alcantara <pcacjr@gmail.com> Reviewed-by: Marcelo Lira <marcelo.lira@openbossa.org>
* Fix BUG #1091 - "PixmapFragment and drawPixmapFragments are not bound"Paulo Alcantara2012-03-082-0/+15
| | | | | | | | | See http://bugs.pyside.org/show_bug.cgi?id=1091. Also minor coding style fixes in QtGui's typesystem. Signed-off-by: Paulo Alcantara <pcacjr@gmail.com> Reviewed-by: Marcelo Lira <marcelo.lira@openbossa.org>
* Fix BUG #1084 - "Crash (segfault) when writing unicode string on socket"Paulo Alcantara2012-03-082-0/+17
| | | | | | | See http://bugs.pyside.org/show_bug.cgi?id=1084. Signed-off-by: Paulo Alcantara <pcacjr@gmail.com> Reviewed-by: Trust me
* The temporary file used in the test for bug #829 must not be deleted by the ↵Marcelo Lira2012-03-081-2/+1
| | | | | | test. This fixes the test in win32 platforms.
* Qt::HANDLE is declared only in QtCore, and its specifics depend on the ↵Marcelo Lira2012-03-081-1/+1
| | | | architecture.
* Fix compilation of conversion branch against Python3k.Hugo Parente Lima2012-03-081-3/+0
| | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
* Replaced TypeResolver by SbkConverter and SpecificConverter.Marcelo Lira2012-03-083-13/+36
| | | | Also updated QtGui's WId conversion to Python 3.
* Fixes the test for a QFlag value returned in a QVariant.Marcelo Lira2012-03-081-1/+1
|
* Makes test for QtCore's bug #1063 compliant with Python 3.Marcelo Lira2012-03-081-2/+3
|
* Fix BUG #1063Paulo Alcantara2012-03-082-0/+30
| | | | | | Signed-off-by: Paulo Alcantara <pcacjr@gmail.com> Reviewed-by: Willer Moreira <willer.moreira@openbossa.org> Reviewed-by: Luciano Wolf <luciano.wolf@openbossa.org>
* Fix BUG #1077 - "Application exit crash when call QSyntaxHighlighter.document()"Paulo Alcantara2012-03-082-0/+18
| | | | | | Signed-off-by: Paulo Alcantara <pcacjr@gmail.com> Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Hugo Parente Lima <hugo.pl@gmail.com>
* Fix BUG #1069 - "QtCore.QDataStream silently fails on writing Python string"Paulo Alcantara2012-03-082-0/+23
| | | | | | Signed-off-by: Paulo Alcantara <pcacjr@gmail.com> Reviewer: Willer Moreira <willer.moreira@openbossa.org> Marcelo Lira <marcelo.lira@openbossa.org>
* Fix BUG #1048Paulo Alcantara2012-03-082-0/+9
| | | | | | Signed-off-by: Paulo Alcantara <pcacjr@gmail.com> Reviewer: Willer Moreira <willer.moreira@openbossa.org> Hugo Parente Lima <hugo.lima@openbossa.org>
* Remove unused code in bug 844 unit test.Hugo Parente Lima2012-03-081-1/+0
| | | | | Reviewer: Lauro Moura <lauro.neto@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Fix bug 1029 - "qmlRegisterType Fails to Increase the Ref Count"Hugo Parente Lima2012-03-083-0/+45
|
* Fix BUG #1031Paulo Alcantara2012-03-082-0/+6
| | | | | | Signed-off-by: Paulo Alcantara <paulo.alcantara@openbossa.org> Reviewer: Hugo Parente Lima <hugo.lima@openbossa.org> Marcelo Lira <marcelo.lira@openbossa.org>
* Fix phonon unit test when there are device aliases reported by phonon.Hugo Parente Lima2012-03-081-1/+3
|
* Strip the text received from message handler.Hugo Parente Lima2012-03-081-1/+1
| | | | | This was needed because now qWarning, etc, are using stream operators for security reasons, and those operators add spaces at end.
* Fix bug 1036 - "Qt.KeyboardModifiers always evaluates to zero"Hugo Parente Lima2012-03-081-0/+2
| | | | | Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Marcelo Lira <marcelo.lira@openbossa.org>
* Fix bug 1013 - "connect to QSqlTableModel.primeInsert() causes crash"Hugo Parente Lima2012-03-082-0/+31
|
* Fix bug 1016 - "Calling of Q_INVOKABLE method returning not QVariant is ↵Hugo Parente Lima2012-03-086-1/+108
| | | | impossible..."
* Fix code style and add license headers.Hugo Parente Lima2012-03-082-11/+49
|
* Fix unit test of bug 829.ps-1.0.8Hugo Parente Lima2012-03-082-5/+8
|
* Fix bug 1019 - "Overriding QWidget.show or QWidget.hide do not work"Hugo Parente Lima2012-03-082-0/+33
| | | | | Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Marcelo Lira <marcelo.lira@openbossa.org>
* Fix bug 1022 - "RuntimeError: maximum recursion depth exceeded while getting ↵Paulo Alcantara2012-03-082-0/+14
| | | | | | | | | | the str of an object" Reviewer: Hugo Parente Lima <hugo.lima@openbossa.org> Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org> Signed-off-by: Paulo Alcantara <paulo.alcantara@openbossa.org>
* Fix qglbuffer test on Python3.Hugo Parente Lima2012-03-082-7/+11
|
* Fixed unittest to work with python3.Renato Filho2012-03-082-3/+15
|
* Fixed unittest to work with python3.Renato Filho2012-03-082-84/+91
|
* Slplited python compat file for python 2.x and 3.xRenato Filho2012-03-083-0/+66
|
* Updated pyside and signals tests to works with python 2.x and 3.xRenato Filho2012-03-083-22/+19
|
* Updated phonon modue to works with python 2.x and 3.xRenato Filho2012-03-082-8/+8
|
* Updated QtWebKit modue to works with python 2.x and 3.xRenato Filho2012-03-082-14/+12
|
* Updated QtUiTools modue to works with python 2.x and 3.xRenato Filho2012-03-081-3/+3
|
* Updated QtSql modue to works with python 2.x and 3.xRenato Filho2012-03-081-8/+9
|
* Updated QtOpenGL modue to works with python 2.x and 3.xRenato Filho2012-03-081-1/+1
|