Hugo Parente Lima
a4ab1c7e99
Remove some ancient method removals from QtCore typesystem.
...
- QDir(QString,QString,QFlags<QDir::SortFlag>,QFlags<QDir::Filter>)
- QBitArray::fill(bool, int)
2011-02-03 18:36:04 -02:00
Hugo Parente Lima
2d65e48fa8
Use PyString_GET_SIZE instead of PyString_Size on some inject codes.
2011-02-03 18:36:04 -02:00
Hugo Parente Lima
f5d4b6e678
Export QSettings::iniCodec and QXmlStreamWriter::codec methods.
2011-02-03 18:36:04 -02:00
Hugo Parente Lima
ee80967d24
QPersistentModelIndex now have the same implementation of internalPointer of QModelIndex.
2011-02-03 18:36:04 -02:00
Hugo Parente Lima
7b4968abab
Fixed/implemented various QResources methods.
...
- data() is now exported and returns a Python read-only buffer object.
- (un)registerResourceData now accept buffers as arguments, and respects zeroes in the middle of data.
- Improved unit test.
2011-02-03 18:36:04 -02:00
Hugo Parente Lima
b52148fd85
Fix comparisson of QByteArray with Python strings that have zeroes inside.
2011-02-03 18:36:04 -02:00
Hugo Parente Lima
fa118ae670
Added comments to some function removals.
2011-02-03 18:35:40 -02:00
Hugo Parente Lima
709895f2fb
Fix bug 653 - "Crash after calling QWizardPage.wizard()"
...
Reviewer: Renato Araújo <renato.filho@openbossa.org>
Luciano Wolf <luciano.wolf@openbossa.org>
2011-02-02 20:09:10 -02:00
Hugo Parente Lima
295b965d3c
Fix bug 652 - "Segfault when using QTextBlock::setUserData due to missing ownership transfer"
2011-02-02 19:23:24 -02:00
Hugo Parente Lima
d7269670ee
Removed the removal of some QApplication functions.
...
These functions were removed due to ancient bugs in shiboken
generator, all them now fixed.
Functions:
font(const char*)
setFont(QFont,const char*)
palette(const char*)
2011-02-02 19:23:24 -02:00
Hugo Parente Lima
87977cc320
Fix bug 650 - "Missing bindings for QNetworkProxyFactory"
...
Reviewer: Renato Araújo <renato.filho@openbossa.org>
Luciano Wolf <luciano.wolf@openbossa.org>
2011-02-02 11:36:12 -02:00
Renato Araujo Oliveira Filho
a44fcc6dba
Updated QAbstractItemModel.createIndex documentation to warning about
...
ptr argument life time.
Reviewer: Luciano Wolf <luciano.wolf@openbossa.org>
Marcelo Lira <marcelo.lira@openbossa.org>
2011-02-01 15:49:53 -03:00
Hugo Parente Lima
43a8f4089e
Fix bug 656 - "cannot inherit from QCoreApplication"
...
Reviewer: Renato Araújo <renato.filho@openbossa.org>
Luciano Wolf <luciano.wolf@openbossa.org>
2011-01-31 16:22:28 -02:00
Hugo Parente Lima
2a43919024
Fix bug 565 - "QImage missing *data constructors"
...
Fix bug 566 - "'PySide.QtGui.QImage' object has no attribute 'scanLine'"
The constructors now accepts any PyObject which implements the buffer protocol, as the
C++ and PyQt4 version the buffer must be alive during the life time of QImage because QImage
*does not* copy the image data.
scanLine() and bits() now return buffer objects pointing to the memory inside QImage.
2011-01-28 19:33:42 -02:00
Renato Araujo Oliveira Filho
4af09f10ad
Implement __repr__ function for class with Float attributes.
2011-01-28 18:02:20 -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
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
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
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
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
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
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
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
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
b5331e5c56
Add polymorphic-id-expression to QGraphicsObject and QDeclarativeItem.
2011-01-13 13:59:01 -02: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
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
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
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
Renato Araujo Oliveira Filho
3774752f0c
Fixed function QDataStream.readRawData return value.
...
The function readRawData now return None in case of error, otherwise a
string with the read data.
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
Hugo Parente Lima <hugo.pl@gmail.com>
2011-01-04 19:23:57 -03:00
Hugo Parente Lima
269e8450dc
New format for __version_info__.
...
The new format follow the same rules used by sys.version_info().
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
Lauro Moura <lauro.neto@openbossa.org>
2011-01-04 16:47:57 -02:00
Renato Araujo Oliveira Filho
374e2fcf88
Created support to function qAddPostRoutine.
...
Created unit test for bug #515
Fixes bug #515
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
Lauro Moura <lauro.neto@openbossa.org>
2011-01-03 19:58:53 -03:00
Renato Araujo Oliveira Filho
39a5a09145
Fix QTreeWidgetItem.parent function.
...
Create unit test for new use case.
Fixes bug #547
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
Hugo Parente Lima <hugo.pl@gmail.com>
2011-01-03 14:56:33 -03:00
Renato Araujo Oliveira Filho
f9587fcad2
Fixed QWidget.parent function.
...
Create unit test for bug 576.
Fixes bug #576 .
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
Lauro Moura <lauro.neto@openbossa.org>
2011-01-03 13:50:25 -03:00
Hugo Parente Lima
a38db0fe03
Fix bug#514 - "Static method QByteArray.fromRawData is missing from QtCore"
...
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
Lauro Moura <lauro.neto@openbossa.org>
2010-12-30 17:03:36 -02:00
Hugo Parente Lima
d0d4ba1564
Fix bug 546 - "Python crash on exit"
...
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
Lauro Moura <lauro.neto@openbossa.org>
2010-12-30 15:39:44 -02:00
Hugo Parente Lima
249a87808a
Fix bug#493 - "__eq__ and friends not implemented for QKeyEvent == QKeySequence"
...
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
Lauro Moura <lauro.neto@openbossa.org>
2010-12-29 19:12:28 -02:00
Hugo Parente Lima
7810dcd829
Fix bug#569 - "QTableWidgetItem is missing binding of __lt__ to operator<"
...
Reviewer: Renato Araújo <renato.filho@openbossa.org>
Marcelo Lira <marcelo.lira@openbossa.org>
2010-12-29 10:14:28 -02:00
Hugo Parente Lima
4b6cc4d478
Changes the arg name from p to parent to make parent heuristic work.
2010-12-29 10:14:28 -02:00
Renato Araujo Oliveira Filho
25264046e8
Appended ${QtGui_BINARY_DIR} on typesystem_path for QtMaemo5 module.
2010-12-28 14:12:24 -03:00
Renato Araujo Oliveira Filho
fa89170f62
Test for QTDESIGNER before add QTUITOOLS.
...
This test is necessary because the module QTUITOOLS uses some classes
from QTDESIGNER.
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
Bruno Araujo <bruno.araujo@openbossa.org>
2010-12-28 12:00:02 -03:00