| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
attempted
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
| |
Change-Id: I2851b9fa2af6781cddd40bd364ed4a42f5211004
Reviewed-by: John Cummings <jcummings2@users.sf.net>
|
|
|
|
|
|
|
|
|
|
| |
QCoreApplication would deadlock on exit if the global
QThreadPool.globalInstance() is running a QRunnable with python
code because the destroyQCoreApplication function would not
release the the GIL which `delete`ing the QCoreApplication.
Change-Id: I7b8a3bbd33f86050368a9357fa93e25a642b4ac5
Reviewed-by: John Ehresman <jpe@wingware.com>
|
|
|
|
|
|
|
|
|
| |
Change GlobalReceiver to explicitly 'use' [dis]connectNotify of the base
class in order to avoid hiding these with its own overloads. This fixes
the only (current) -Woverloaded-virtual warning.
Change-Id: I364b9939f9078029861054051148c319071fbbe1
Reviewed-by: John Ehresman <jpe@wingware.com>
|
|
|
|
|
|
|
|
|
| |
Add explicit casts when initializing an int[] using {}'s, as required by
C++11 to be "well formed". This fixes the only (current) -Wnarrowing
warning.
Change-Id: I7f190549a8a54a9061678a926d5478256c2084be
Reviewed-by: John Ehresman <jpe@wingware.com>
|
|
|
|
|
|
|
|
|
|
| |
Remove moc_qpytextobject.cxx from the list of Shiboken-generated files,
as it is properly generated by MOC, and being in both places causes some
generators (e.g. Ninja) to be unhappy about having multiple rules that
(claim to) generate it.
Change-Id: I2458502852f792661120f561a59ad9a198286005
Reviewed-by: John Ehresman <jpe@wingware.com>
|
|
|
|
|
|
|
|
| |
Task-number: PYSIDE-211
Change-Id: I4233d093cf2abe1eeb006fd836c10d1ddcbc9858
Reviewed-by: Roman Lacko <backup.rlacko@gmail.com>
Reviewed-by: Christian Tismer <tismer@stackless.com>
Reviewed-by: John Ehresman <jpe@wingware.com>
|
|
|
|
|
|
|
|
|
|
| |
Register qt.conf in Qt resource system to override the built-in
configuration variables if there is no default qt.conf in
executable folder and qt.conf was not already registered in Qt
resource system
Change-Id: Ibed9f9e791dab575ef26bc54b351e5f5d4870542
Reviewed-by: John Ehresman <jpe@wingware.com>
|
|
|
|
|
|
| |
Change-Id: Icc64a1b0f63ae05f897a210664fdb41b4f9746c4
Reviewed-by: Roman Lacko <backup.rlacko@gmail.com>
Reviewed-by: John Cummings <jcummings2@users.sf.net>
|
|
|
|
|
|
| |
Change-Id: I519c912999283bf7e07f8d34201f9e67c7d6216e
Reviewed-by: Roman Lacko <backup.rlacko@gmail.com>
Reviewed-by: John Ehresman <jpe@wingware.com>
|
|
|
|
|
| |
Change-Id: I55b76b47b1dca0ea290f633b1de070bb8d6995e1
Reviewed-by: John Ehresman <jpe@wingware.com>
|
|
|
|
|
|
| |
Change-Id: Ibf0cf933d9922a4ca0e79e910f979d52c675301e
Reviewed-by: Roman Lacko <backup.rlacko@gmail.com>
Reviewed-by: John Cummings <jcummings2@users.sf.net>
|
|
|
|
|
| |
Change-Id: I1136418671fc06310310551ad5631ef1aa4b8b32
Reviewed-by: John Cummings <jcummings2@users.sf.net>
|
|
|
|
|
|
|
|
| |
Check Py_IsInitialized() in PyObjectWrapper destructor, which
can be called after interpreter shutdown
Change-Id: If9570d14a35ac3419a81846a59d972015205a858
Reviewed-by: John Cummings <jcummings2@users.sf.net>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
| |
Change-Id: Ia7565955f8a3b58c8c57631e13bb56a2793b702a
Reviewed-by: John Ehresman <jpe@wingware.com>
|
|
|
|
|
|
|
|
|
|
| |
Add spaces between string literals and preprocessor symbols. These are
required because C++11 defines string prefix and suffix operators, and
confuses preprocessor tokens adjacent to string literals as unrecognized
string literal modifies, resulting in compile errors.
Change-Id: I70f4efca0acb6d2ee03327c0afbc56fe7d82c2a3
Reviewed-by: John Ehresman <jpe@wingware.com>
|
|
|
|
|
|
|
| |
QByteArray leaked memory when constructed from Python 2 str
Change-Id: I0e2ea21ba1bd32d9519704baa7dd42e5224e9ed3
Reviewed-by: John Cummings <jcummings2@users.sf.net>
|
|
|
|
|
| |
Change-Id: If7612f97bb03f353d644b26767b3867f04d17fff
Reviewed-by: John Ehresman <jpe@wingware.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
| |
Add code to _setupQtDirectories that will preload the OpenSSL DLLs if
they are included in the PySide package. It uses a trick of temporarily
modifying the PATH so Qt's QSystemLibrary will be able to find them.
Change-Id: I67b56642ef74444f19806b52c6a1080dc6d92996
Reviewed-by: John Ehresman <jpe@wingware.com>
|
|
|
|
|
|
|
|
| |
instead of just in Qt's install or build folder. Only do it if the path
exists in the PySide package, and if it's not already on the search path.
Change-Id: I5a8ec8724cad2cb011e7e1c364c82a8b87289c5c
Reviewed-by: John Ehresman <jpe@wingware.com>
|
|
|
|
|
| |
Change-Id: Id15e68fc34fd8fbb386794f04039a23766691cfe
Reviewed-by: Hugo Parente Lima <hugo.lima@openbossa.org>
|
|
|
|
|
|
|
|
|
|
|
|
| |
Define a getWrapperForQObject function to create / find
wrappers for QObject derived objects. It sets a property
so that an invalidate function can be called when the QObject
property is cleared in the QObject destructor after all destroyed
signal handlers have been called. Requires a change to shiboken
to generate calls to the getWrapperForQObject function.
Change-Id: I4ed548af114bf7176e8e8255a3ea70549c35d74c
Reviewed-by: Hugo Parente Lima <hugo.lima@openbossa.org>
|
|
|
|
|
| |
Change-Id: I95d3f8dd4a8473849ca19b5c8d5d59dee4c42991
Reviewed-by: Hugo Parente Lima <hugo.lima@openbossa.org>
|
|
|
|
|
|
|
| |
Patch by Dennis Victorovich.
Change-Id: I050da20f6c0bef2f568aefcc81a9a159a412be24
Reviewed-by: Hugo Parente Lima <hugo.lima@openbossa.org>
|
|
|
|
|
|
|
| |
signals/disconnect_test.py depends on pysidetest module.
Change-Id: I31e9fa50cd36979b4843c8c12e3d0680dba2135e
Reviewed-by: Marcelo Lira <marcelo.lira@openbossa.org>
|
|
|
|
|
| |
Change-Id: If67468b046da795ddf2253779f56b027a138b14e
Reviewed-by: Hugo Parente Lima <hugo.lima@openbossa.org>
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
| |
Fixes PYSIDE-56
Change-Id: If0529a289e6d9613fdd85bd9d37ccf438d4e92ca
Reviewed-by: Hugo Parente Lima <hugo.lima@openbossa.org>
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
| |
Change-Id: Ia8442dd910c52a892767a49a339c63fec6fbf3c0
Reviewed-by: Marcelo Lira <marcelo.lira@openbossa.org>
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
| |
selectionModel()"
Change-Id: I1dbe6d3cd69774dfa18f15d83794396f17b769f0
Reviewed-by: Hugo Parente Lima <hugo.lima@openbossa.org>
|
|
|
|
|
| |
Change-Id: I876732f90690d9679537611e9a71e33aa3a4e4e3
Reviewed-by: Hugo Parente Lima <hugo.lima@openbossa.org>
|
|
|
|
|
|
| |
Change-Id: I2725e78a1006fbee54894f202997e2e408998551
Task-number: PYSIDE-41
Reviewed-by: Hugo Parente Lima <hugo.lima@openbossa.org>
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
| |
This should resolve the issue in PYSIDE-6 "Fix phonon VideoCaptureDevice detection to properly use phonon_ namespace".
Changed if check in PySideModules.cmake.
Change-Id: Ie30d6858a0fc6073560ec4cd09508504cbeb667d
Reviewed-by: Hugo Parente Lima <hugo.lima@openbossa.org>
|
|
|
|
|
| |
Change-Id: Ie7a30961232526af59cbc21dbf1b58ab9a4e3e7b
Reviewed-by: Hugo Parente Lima <hugo.lima@openbossa.org>
|
| |
|
| |
|
|
|
|
|
| |
Reviewed by Hugo Parente <hugo.lima@openbossa.org>
Reviewed by Paulo Alcantara <pcacjr@gmail.com>
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
| |
See http://bugs.pyside.org/show_bug.cgi?id=1084.
Signed-off-by: Paulo Alcantara <pcacjr@gmail.com>
Reviewed-by: Trust me
|