Commit graph

1,135 commits

Author SHA1 Message Date
Lauro Neto
d345245c9d Add empty classes when QtGui's not available
Also, for tests using the UsesQApplication will raise
an NoQtGuiError when QtGui is not available.
2009-12-16 21:14:24 -03:00
Lauro Neto
62bea2811a Fixing signals connections back to static method 2009-12-16 21:14:24 -03:00
Lauro Neto
1c087643b4 Fixing multiple signal tests
Changed to use a emitter argument to run_many, so we can pass
qpushbutton.click or a partial call for python signals
2009-12-16 21:14:24 -03:00
Lauro Neto
477a17fb1b Fix typo in run_test.sh (PYTHONPATH) 2009-12-16 21:14:24 -03:00
Hugo Lima
9e1a1ec8a7 We have a nice Dynamic MetaObject! Yay!
Python signals and slots are like C++ signals and slots to Qt :-)
2009-12-16 21:10:15 -02:00
Hugo Lima
e791f15afc args_dont_match.py renamed to args_dont_match_test.py
Reviewed by Marcelo Lira <marcelo.lira@openbossa.org>
2009-12-16 16:35:33 -02:00
Hugo Lima
c8e9080972 Initial port of signal slots infrastructure from PySide to the Shiboken version. 2009-12-16 15:02:42 -02:00
Marcelo Lira
d90b6ba474 Adds SLOT and SIGNAL global functions to QtCore module.
Reviewed by Hugo Lima <hugo.lima@openbossa.org>
2009-12-16 15:00:21 -03:00
Hugo Lima
3deada6b7e Tests synchronized with the boost python PySide. 2009-12-15 15:37:20 -02:00
Marcelo Lira
84282e06ac Updates code injections to follow Shiboken generator changes.
Reviewed by Hugo Lima <hugo.lima@openbossa.org>
2009-12-14 14:15:47 -03:00
Marcelo Lira
f917ca22a8 Removed code injections of copyCppObject and toPython converter methods for QVariant and QString.
Converter<T>::copyCppObject and Converter<T>::toPython are not
needed anymore due to improvements in Shiboken generator.

Reviewed by Lauro Neto <lauro.neto@openbossa.org>
2009-12-10 14:55:38 -03:00
Luciano Wolf
942c774827 Support slice operator into QStringList.
Reviewed by Hugo Parente Lima <hugo.lima@openbossa.org>
2009-12-09 15:02:26 -03:00
Hugo Lima
a2f9d30a4d Added inject codes for QByteArray::toSomeNumberType and QByteArray::split
Reviewed by Marcelo Lira <marcelo.lira@openbossa.org>
2009-12-09 14:51:40 -02:00
renato
ea9882809a Implemented QObject functions tr and trUtf8.
Reviewed by: Marcelo Lira <marcelo.lira@openbossa.org>
2009-12-08 17:07:28 -03:00
Hugo Lima
41e51c0c45 Removed "QString::arg(QChar, int, const QChar&)", it's also handled by QString::arg(QString, ...)
and causes conflicts with QString::arg(int, ...) because int is implicitly convertible to QChar.

Reviewed by Marcelo Lira <marcelo.lira@openbossa.org>
2009-12-08 15:56:12 -02:00
Hugo Lima
c8fbdc9163 Added inject code for all QString::toSomeNumberType. 2009-12-08 15:40:32 -02:00
Hugo Lima
354b09e00b Almost all QVariant tests pass.
There is just one test which fail, it'll need some support from libpyside to work.

Reviewed by Marcelo Lira <marcelo.lira@openbossa.org>
2009-12-08 14:52:58 -03:00
Marcelo Lira
b9ca1774f7 Updated code injections to use Shiboken updates regarding type system variables.
Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
2009-12-08 14:38:52 -03:00
Luciano Wolf
42526f3202 Added new methods to QStringLists: __len__, __getitem__ and __setitem__
Reviewed by Marcelo Lira <marcelo.lira@openbossa.org>
2009-12-08 14:05:56 -03:00
Hugo Lima
6d53b50163 Remove unneeded method in QString converter, this method is now auto generated by
the generator.

Reviewed by Marcelo Lira <marcelo.lira@openbossa.org>
2009-12-07 18:06:36 -02:00
Marcelo Lira
da73b90ce1 Updated code injections to use the new PyBaseWrapper_New signature from libshiboken.
Reviewed by Lauro Neto <lauro.neto@openbossa.org>
2009-12-02 19:24:18 -03:00
Hugo Lima
af6bf93d77 Enable parent ctor heuristic for PySide.
Reviewed by Lauro Moura <lauro.neto@openbossa.org>
2009-12-01 21:25:16 -03:00
Hugo Lima
b65330abdf Added inject code for QObject.findChild and QObject.findChildren methods 2009-12-01 20:14:21 -02:00
Hugo Lima
1836d5879c Add inject code for QObject.inherit and QLocale.toInt. 2009-12-01 14:05:12 -02:00
Hugo Lima
0b0ff22e6b Fix QString converter to compile with the new libshiboken api. 2009-11-30 18:13:12 -02:00
Marcelo Lira
51e7af60fa Updated type system code injection for QAbstractItemModel::createIndex.
Reviewd by Luciano Wolf <luciano.wolf@openbossa.org>
2009-11-25 14:01:55 -03:00
Hugo Lima
87e6d4690a - Support path with spaces.
- Use the system library suffix instead of a hard coded ".so" string.

Reviewed by Lauro Neto <lauro.neto@openbossa.org>
2009-11-23 16:00:28 -03:00
Hugo Lima
f6198fff4d Re-added the root project name, without it cmake get crazy when you try
to use the icecc support.
2009-11-23 15:32:44 -02:00
Marcelo Lira
f1993589f8 updated QtCore type system file in accordance to the inject-code
meanings defined on the Shiboken generator

Reviewed by Hugo Parente <hugo.lima@openbossa.org>
2009-11-23 11:13:32 -03:00
Hugo Lima
5314e3eb71 Set default symbol visibility to hidden, so pyside is even smaller!
1.4MB on my 64bits machine.

Reviewed by Marcelo Lira <marcelo.lira@openbossa.org>
2009-11-20 10:46:50 -03:00
Hugo Lima
f1962c58cb Added QModelIndex::internalPointer and QAbstractItemModel::createIndex functions. 2009-11-19 15:53:37 -02:00
Hugo Lima
6a759410d3 - Add QLocale::toFloat, QLocale::toDouble.
- Use a clearer naming convension on typesystem template names.
2009-11-19 15:53:31 -02:00
Hugo Lima
9ff5512a8b Add sequence protocol support for QBitArray. 2009-11-18 17:20:59 -02:00
Hugo Lima
5521bb2fd0 Added inject codes for methods like QString::toDouble, QByteArray::toFloat, etc. 2009-11-18 16:47:12 -02:00
Lauro Neto
b8a07a9e0e Change QByteArray constructor to accept \x00 bytes
Reviewed by Hugo Parente <hugo.lima@openbossa.org>
2009-11-10 20:45:04 -02:00
Lauro Neto
b164e617a2 Adding writeUInt8 accepting char 2009-11-10 20:39:30 -03:00
Lauro Neto
bc20292caa Add test to QDataStream.read/write Int8 2009-11-10 20:39:30 -03:00
Lauro Neto
92f10f9629 Adding more tests for QDataStream
From pyside-boost
2009-11-10 20:39:29 -03:00
Lauro Neto
f0fbc345c2 Uncomment QTextStream and QDataStream plus fixes 2009-11-10 20:39:25 -03:00
Hugo Lima
2a4b5da287 Just disable the warning about strict-aliasing instead of disable the optimization.
Reviewed by Marcelo Lira <marcelo.lira@openssa.org>
2009-11-10 20:14:32 -02:00
Hugo Lima
a70b766aa9 Add support for distributed compilation using icecc.
To use it, just pass -DENABLE_ICECC=ON when running cmake.

Reviewed by Marcelo Lira <marcelo.lira@openbossa.org>
2009-11-10 20:14:32 -02:00
Marcelo Lira
e78792932d fixed Converter<QString>::isConvertible() method to consider all the cases;
also changed Converter<QString>::toCpp last return option to use a more
straightforward way to get the C++ object
2009-11-05 11:34:47 -03:00
Hugo Lima
f35ae6e97e Added sequence protocol for QByteArray.
Reviewed by Marcelo Lira <marcelo.lira@openbossa.org>
2009-11-04 18:48:27 -02:00
Hugo Lima
e84308397d Added sequence protocol to QString. 2009-11-04 18:46:12 -02:00
Hugo Lima
86fa278e1c Speed up construction of QString's from python unicode strings. 2009-11-04 15:18:20 -02:00
Marcelo Lira
d2cd71313d Updated container converters to the new shiboken conversion scheme
Reviewed by Hugo Parente <hugo.lima@openbossa.org>
2009-11-03 14:17:35 -02:00
Marcelo Lira
c0832e4a9a removed unnused function 'sprintf' from QtCore's type system file 2009-10-30 14:02:34 -03:00
Marcelo Lira
6ad39b792b removed "QString::arg(char a, int, const QChar &) const" from QtCore's
type system file; since the first argument char type is used as a character
the overload decisor gets confused as char is deemed equivalent as a Python
integer in nearly all cases; the functionality is not lost since the
signature that receives a Python string does the same
2009-10-30 14:02:33 -03:00
Marcelo Lira
9c0e56b598 updated custom conversions to use Converter<T>::isConvertible properly 2009-10-30 14:02:33 -03:00
Lauro Neto
7c0aea7c45 Install __init__.py 2009-10-29 18:55:35 -03:00