Add hash-function for QModelIndex and QPersistenModelIndex

Change-Id: I2725e78a1006fbee54894f202997e2e408998551
Task-number: PYSIDE-41
Reviewed-by: Hugo Parente Lima <hugo.lima@openbossa.org>
Bug pyside-35: GIL was not acquired in several important places.

Change-Id: I876732f90690d9679537611e9a71e33aa3a4e4e3
Reviewed-by: Hugo Parente Lima <hugo.lima@openbossa.org>
Fix bug 1041 - "QAbstractItemModel has wrong ownership policy for selectionModel()"

Change-Id: I1dbe6d3cd69774dfa18f15d83794396f17b769f0
Reviewed-by: Hugo Parente Lima <hugo.lima@openbossa.org>
Do not always try to remove bytecode version of the test.

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>
Improved QVector to python conversion

Added pyseq_to_cppvector_conversion template that calls
reserve() with the sequence size to reduce memory reallocations
Changed QVector conversion to use new the template

Change-Id: I099ab15d5f725499218e2ed081a325246aa5b902
Reviewed-by: Hugo Parente Lima <hugo.lima@openbossa.org>
Fixed template name typo

Fixed typo of template names by changing "convertion" to "conversion"
Fixed all usages of incorrect name
Note that this change is not backwards compatible if using the
misspelled names in user code.

Change-Id: Ie34e0ef8cc23362c8efb2d6bf1ec9779d6e4c42b
Reviewed-by: Hugo Parente Lima <hugo.lima@openbossa.org>
Add missing unit test.

Change-Id: Ia8442dd910c52a892767a49a339c63fec6fbf3c0
Reviewed-by: Marcelo Lira <marcelo.lira@openbossa.org>
Optimize vector to pylist conversion

Incorporate changes from Shiboken change I5f0c93b7
Note switch to push_back() should allow the template to work
for both QVector and std::vector.
Likewise, using size_type should avoid compiler warnings.

Change-Id: I4742aa9030e1bfa2e070f4b6f71d124d3c99749d
Reviewed-by: Hugo Parente Lima <hugo.lima@openbossa.org>
Invalidate invisibleRootItem in clear() method

Fixes PYSIDE-56

Change-Id: If0529a289e6d9613fdd85bd9d37ccf438d4e92ca
Reviewed-by: Hugo Parente Lima <hugo.lima@openbossa.org>
During signal emission don't get return type after callback

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>
Version bump to 1.1.2

Change-Id: If67468b046da795ddf2253779f56b027a138b14e
Reviewed-by: Hugo Parente Lima <hugo.lima@openbossa.org>
Change the order of pysitetest and signals directories because signals/disconnect_test.py depends on pysidetest module.

Change-Id: I31e9fa50cd36979b4843c8c12e3d0680dba2135e
Reviewed-by: Marcelo Lira <marcelo.lira@openbossa.org>
Fix reference leak on convertion from a C++ map type to Python dict.

Patch by Dennis Victorovich.

Change-Id: I050da20f6c0bef2f568aefcc81a9a159a412be24
Reviewed-by: Hugo Parente Lima <hugo.lima@openbossa.org>
Merge branch 'master' of https://codereview.qt-project.org/p/pyside/pyside into arf

Conflicts:
	libpyside/globalreceiver.cpp
	libpyside/globalreceiverv2.cpp