summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* XQuery: allow usage of floats in QXmlQueryPeter Hartmann2009-09-032-7/+13
| | | | | | | float is not a registered type in QVariant, but a QVariant can be constructed from it and then used in XQuery. Reviewed-by: Frans Englich
* Improvements to usage of QMatrix4x4 in QGraphicsItem.Andreas Aardal Hanssen2009-09-031-20/+10
| | | | | | | | | | | This could have been amended to 464ee98eee5ce160b497aec6a1163422980dd797, the idea is that we use QMatrix4x4 only for the QGraphicsTransform instances and QTransform for the rest. The problem with the last submit was that adding any (unrelated) QGraphicsTransform would cause the QGraphicsItem::rotation properties (and friends) to lose precision. Reviewed-by: Olivier Reviewed-by: gabi
* CSS parser speed-up: skip the need to call toLower().Ariya Hidayat2009-09-032-44/+43
| | | | | | | | | | | | | Instead of taking the lowercase of each tokenized character, it is better to encode the logic in the automaton itself. During the parsing of tiger.svg (tests/benchmarks/qsvgrenderer), the time spent inside QCssScanner_Generated::lex() goes down from 0.53 millions instructions to just 0.23 millions (2x faster). Autotests for qcssparser, qtextdocumentfragment, qstylesheet still pass. Reviewed-by: Simon Hausmann
* FortuneServer/Client example: fix displayed IPPeter Hartmann2009-09-032-8/+26
| | | | | | | | fortune server: listen to the first non-local IPv4 address found, fortune client: display that address as default in the line edit. Reviewed-by: Prasanth Ullattil Reviewed-by: Aleksandar Sasha Babic
* Fixed reparenting OpenGL widgets on Windows.Kim Motoyoshi Kalland2009-09-031-6/+1
| | | | | Task-number: 260697 Reviewed-by: Trond
* Made the composition demo work with the GL2 paint engine.Kim Motoyoshi Kalland2009-09-031-3/+11
| | | | | Task-number: 260686 Reviewed-by: Samuel
* Fixed some clipping bugs in raster paint engine.Samuel Rødal2009-09-031-7/+7
| | | | | | | | | | Clip against the correct base region in clip(const QRegion &, ...) and make sure to not access QClipData's clipRect unless hasRectClip is true. This fixes the tst_QWidget::render_systemClip3() autotest, and the clipping bugs in Qt Creator. Task-number: 260666 Reviewed-by: Gunnar Sletta
* Fix test failure & optimize matrix operations in QGraphicsItem.Andreas Aardal Hanssen2009-09-031-0/+13
| | | | | | | | | | | | | | | | This fixes failures in tst_QGraphicsItem::setTransformProperties(). Change 9e8ff32d introduced QMatrix4x4 as an internal matrix for QGraphicsItem. Problem is, QMatrix4x4 is float-based whereas QTransform is double-based. This change readds the use of QTransform in the case where there are no QGraphicsTransforms in the list. This by itself also makes this common case a bit faster. The workaround is moot if somebody adds any QGraphicsTransform, including one that doesn't do anything (like rotate by 0 degrees). So we might have to find a better fix. Reviewed-by: Olivier
* Merge branch '4.6' of scm.dev.nokia.troll.no:qt/qt into 4.6Morten Sorvig2009-09-0334-163/+757
|\
| * compile on WindowsKent Hansen2009-09-031-0/+1
| | | | | | | | | | The include was accidentally removed in commit e4dfcd4392e5be1b5de8648fc20ff45f7faa30ca; well, now we know what that was for...
| * qfsfileengine_win.cpp MinGW compile fixJoerg Bornemann2009-09-031-3/+5
| | | | | | | | | | | | | | On MinGW REPARSE_DATA_BUFFER_HEADER_SIZE is defined but no IO_REPARSE_TAG_SYMLINK. So this define must be checked separately. Reviewed-by: phartman
| * Revert "Optimize qt_format_text test operations: try not to detach"Eskil Abrahamsen Blomfeldt2009-09-031-28/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 5c4c47facfcb75b0277872a0fac813ab41700e5e. The commit broke line breaks in text (and also other special formatting characters.) QChar *chr is a pointer for a reason =) Reviewed-by: Trond Task number: 260622 Conflicts: src/gui/painting/qpainter.cpp
| * Added a property to QPinchGesture to specify what exactly changed.Denis Dzyubenko2009-09-034-3/+34
| | | | | | | | | | | | | | Added QPinchGesture::whatChanged() which specifies which property in the pinch gesture changed - the scale factor or rotation angle or both. Reviewed-by: Bradley T. Hughes
| * Improved the gesture api.Denis Dzyubenko2009-09-035-43/+150
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Made properties in QPanGesture and QPinchGesture more consistent - all of them have value, lastValue and totalValue. Documented that totalValue means the value from the beginning of the gesture, while the 'value' - from the beginning of the current sequence. This is especially useful on Windows when you zoom with two fingers and then release one finger and touch again to continue zooming. Also added a workaround for native Rotate gesture on Windows which contain a 'bad' value in the first WM_GESTURE message in every gesture sequence. Reviewed-by: Bradley T. Hughes
| * Improved the gesture api.Denis Dzyubenko2009-09-0311-58/+50
| | | | | | | | | | | | | | | | | | | | | | Added a new widget attribute Qt::WA_DontUseStandardGestures that disables all implicit gestures (i.e. gestures that are automatically enabled by Qt itself). This change also changes the way gestures are handled on QAbstractScrollArea-based widgets on Windows - the gestures are supposed to be created on the viewport widget. Reviewed-by: Bradley T. Hughes
| * Fixed the QGesture::updateState function.Denis Dzyubenko2009-09-031-2/+5
| | | | | | | | | | | | | | | | When a state changes from NoGesture to any valid gesture state and we emit the started() signal, we need to make sure that the state of the gesture is set to the appropriate Qt::GestureStarted state. Reviewed-by: trustme
| * Added simple manualtests for gesturesDenis Dzyubenko2009-09-039-0/+429
| | | | | | | | Reviewed-by: trustme
| * Merge branch '4.6' of git@scm.dev.troll.no:qt/qt into 4.6Janne Anttila2009-09-031-7/+4
| |\
| * | Renamed make 'sisx' target to 'sis' and QT_SISX_* variables to QT_SIS_*Janne Anttila2009-09-038-45/+45
| | | | | | | | | | | | | | | | | | Renaming done based feedback. Reviewed-by: TrustMe
| * | Fixed patch_capabilites to patch also template pkg UID.Janne Anttila2009-09-031-6/+23
| | | | | | | | | | | | Reviewed-by: Miikka Heikkinen
* | | Revert ed00fff3cb.Morten Sorvig2009-09-032-11/+1
| |/ |/| | | | | | | | | | | This caused dublicate key events in come cases, for example in the Qt Creator quick serach line edit. RevBy: TrustMe
* | QTcpSocket autotest: fix autotestsPeter Hartmann2009-09-031-7/+4
|/ | | | Reviewed-by: trustme
* Fixed Qt/S60 build failures when MOC_DIR contains a `.' anywhere.Rohan McGovern2009-09-031-6/+6
| | | | | | | | | The Symbian build system can't handle directories starting with a `.', so qmake aborts if MOC_DIR and similar start with a `.'. However, the check for this condition was faulty and would include any path which contained a `.' anywhere. Reviewed-by: Michael Goddard
* Fix reversed logic in QDFBScreen::exposeRegionAnders Bakken2009-09-031-1/+1
| | | | | | | We should fill the bounding rect only when the region has one rectangle. Not the other way around. Reviewed-by: TrustMe
* Adds OCI support for synonyms to tables created by another user.Bill King2009-09-032-5/+62
| | | | | | | | Adds support for ::tables and ::record to understand synonyms to tables created by another user eg: as appuser, see appuser.synonym created against creator.table1 Task-number: 17327
* Fixes build with older versions of mysql clientBill King2009-09-021-0/+4
|
* Create windows with the appropriate geometryAnders Bakken2009-09-022-6/+12
| | | | | | | | Since DirectFB allows for providing position and size on creation of windows we might as well use these fields rather than first create the surface and then resize it. Reviewed-by: Donald Carr <donald.carr@nokia.com>
* Support Windowed mode for DFB < 1.0Anders Bakken2009-09-021-13/+20
| | | | | | | | DirectFB doesn't let you query the size of the Display in versions prior to 1.0. In this version require people to specify the size using QWS_SIZE, QWS_DISPLAY or print a warning and exit. Reviewed-by: Donald Carr <donald.carr@nokia.com>
* Make size specification more robust in dfbAnders Bakken2009-09-021-8/+31
| | | | | | Support exporting QWS_SIZE=100x100 to set size Reviewed-by: Donald Carr <donald.carr@nokia.com>
* Compile with DFB 0.9Anders Bakken2009-09-021-1/+1
| | | | | | DSPD_XOR is not supported until 1.0. Reviewed-by: Donald Carr <donald.carr@nokia.com>
* Make sure to release surface in ~DFBWindowSurfaceAnders Bakken2009-09-022-0/+21
| | | | | | | | | | We don't want this surface to be released by QDirectFBScreen. It's always created without tracking. Also abstract the if (dfbSurface != primarySurface) things since we will use it from multiple functions. Reviewed-by: Donald Carr <donald.carr@nokia.com>
* Add QDirectFBWindowSurface::releaseSubSurfaceAnders Bakken2009-09-022-4/+13
| | | | | | | This convenience function will be called from whereever the subsurface is invalidated. Reviewed-by: Donald Carr <donald.carr@nokia.com>
* Make sure to set mem to 0 in unlockSurfaceAnders Bakken2009-09-021-0/+1
| | | | Reviewed-by: Donald Carr <donald.carr@nokia.com>
* Partially revert 05e30a4aa7ae5ea552c459fc7d64c8270Anders Bakken2009-09-021-2/+0
| | | | | | sibling exists when QT_NO_DIRECTFB_WM is defined as well. Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
* add benchmark for QScriptClassKent Hansen2009-09-022-0/+518
|
* Stickman: increases the view size for making room for jumping & dyingLeonardo Sobral Cunha2009-09-021-1/+5
| | | | Reviewed-by: ogoffart
* improve memory management scheme of QScriptString(Private)Kent Hansen2009-09-027-48/+135
| | | | | | | | Get rid of QPointer. Use linked list of privates (like was recently done for QScriptValue). Allocate the private on the stack when we can. Reviewed-by: Olivier Goffart
* Fix tst_Moc::os9NewlineOlivier Goffart2009-09-021-1/+1
| | | | | | | The file must not contains newlines. It seems that each time the licence header are updated, this breaks. Reviewed-by: Gabriel de Dietrich
* Fix tst_Moc::oldStyleCastsOlivier Goffart2009-09-021-1/+1
| | | | | | | | | | The warning in qglobal.h made the test to fail (because the purpose of the test is to test that moc doesn't produce code that generates warnings with lots of warnings falgs on) (Regression in rev 23c2aea7ce637992) Reviewed-by: Gabriel de Dietrich
* QSslSocket autotest: fix failing testsPeter Hartmann2009-09-022-2/+2
| | | | | | no issues in code, just in server and test setup Reviewed-by: trustme
* Make QTreeModel::ensureSorted() stable sort for itemsThorvald Natvig2009-09-022-1/+185
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Id you have numerous items with the same value in the sort column, whenever you update one of them, they'll be placed at the head of the list instead of staying in place. For example, assume you have items a b(1) b(2) b(3) b(4) c (where all the b have the same value in the sort column) If you now emitDataChanged from b(3), ensureSorted() will be called. It will place b(3) in a list, and stable sort the list. It's just the one item since there was only one item updated. It than takes each item in the list, removes it's place from the "full" list of items, then reinserts it at the earliest point (using qLowerBound). End result: a b(3) b(1) b(2) b(4) c If you update all the items in the list (doing emitDataChanged() for each), this has the effect of reversing all the items with identical sort key. This patch checks if the old row is within the lower and upper bound of where the item might go, and if it is, simply reinserts it in its old place. Reviewed-by: Olivier Goffart Merge-Request: 1393
* Don't show example fullscreen on desktopOlivier Goffart2009-09-022-6/+5
| | | | Reviewed-by: Jason Barron
* Fixed bug where QGLContext::isSharing() returned false while sharing.Kim Motoyoshi Kalland2009-09-021-1/+3
| | | | | | | When creating a QGLPixelBuffer with context sharing, the sharing flag was only set on the pixel buffer, not the other context. Reviewed-by: Trond
* Fixed rendering in boxes demo with GL2 paint engine.Kim Motoyoshi Kalland2009-09-022-0/+7
| | | | | | Added beginNativePainting() and endNativePainting() calls. Reviewed-by: Samuel
* fix warnings on mingwThierry Bastian2009-09-027-13/+13
|
* Fix repainting artifacts in Stickman exampleEskil Abrahamsen Blomfeldt2009-09-021-0/+1
| | | | | | | | | Graphics view now requires that you set a flag to get notifications about geometry changes. We need these changes to make sure the bounding rectangle of the parent item is up-to-date. Reviewed-by: Leo Task number: 258495
* make the animations file in stickman demo be resourcesThierry Bastian2009-09-023-5/+14
| | | | | | | This helps the demo find the files more easily Task-number: 260628 Reviewed-by: eskil
* QNativeSocketEngine: do not issue warning if socketDescriptor is <= 0Peter Hartmann2009-09-021-1/+4
| | | | | | ... but leave it there on Symbian. Reviewed-by: Aleksandar Sasha Babic
* Fixed a system clip issue in the GL 2 engine.Trond Kjernåsen2009-09-021-3/+9
| | | | | | | | QGraphicsView can set the system clip in order to handle clipping of QGraphicsView children, and we have to take that into account in the GL 2 engine, as we did in the GL 1 engine. Reviewed-by: Samuel
* Prospective build fix for SVG parsing.Ariya Hidayat2009-09-021-1/+71
| | | | | Unfortunately, qt_get_hex_rgb() is in QtGui (qcolor_p to be exact). Hence, we need to duplicate the implementation for QtSvg.