summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Implement new transformation handling for graphics items.Lars Knoll2009-07-298-330/+782
| | | | | | | | | | | | | | | | | | The idea of having separate rotationX/Y/Z, shearX/Y, etc. methods in QGraphicsItem turned out to be not giving us the flexibility we need and wanted. The new code now implements a different scheme, where we keep simple rotate (around z-axis), scale and transformOriginPoint methods, but remove the other ones. Instead we now have an additional list of QGraphicsTransform object. QGraphicsTransform is an abstract class that inherits QObject. Several specializations are provided and can be used to transform (and through property bindings animate) the item. Reviewed-By: Andreas
* Added a QVariant testlib toString specialization.Rohan McGovern2009-07-281-0/+25
| | | | | | | | If comparing two variants fails, the failure message will now output the type and value of the variants (rather than "Compared values are not the same"). Reviewed-by: Thiago
* Doc: Some final QMatrix cleanups.Volker Hilsheimer2009-07-284-15/+27
|
* Doc: Re-apply relevant change from 1368c210ef9976f68eb9fb1c3e4dc14f4fa4edd2Volker Hilsheimer2009-07-281-4/+11
| | | | | Clarified that the format used in QImage::fromData() is the image format, not the pixel format.
* Remove a warning in qdirectfbpaintengineAnders Bakken2009-07-281-3/+1
| | | | | | These structures are only used in versions after 0.922. Reviewed-by: Donald <qt-info@nokia.com>
* Implement a copy constructor for QXmlParseException to avoid crashes whenVolker Hilsheimer2009-07-282-0/+19
| | | | | | | | | throwing them. Autotest included. Task: 258081 Reviewed-by: Trustme
* Doc: Document the purpose of the QTextFormat etc enums, and add a few linksVolker Hilsheimer2009-07-281-29/+72
| | | | to respective APIs.
* Doc: typo.Volker Hilsheimer2009-07-281-1/+1
|
* Doc: Cleaning up.Volker Hilsheimer2009-07-281-12/+15
| | | | This closes task 235801.
* Fixed incorrect QGLFramebufferObject documentation.Samuel Rødal2009-07-281-1/+4
| | | | Reviewed-by: Gunnar Sletta
* Implement a new pointer-tracking mechanism for QSharedPointer.Thiago Macieira2009-07-282-41/+105
| | | | | | | | | | | | | | | | Some compilers don't obey the same rules of "top-of-object" values for casting a pointer from a given class to void *. In any case, that can only work for polymorphic types (with a virtual table). So don't track the pointers by their pointer value, but instead by the d-pointer of the QSharedPointer object. The same cases that were caught before should still be caught. We still won't catch the creating a second QSharedPointer for the same object if the pointer values are different, though (when cast to void*). Reviewed-by: Bradley T. Hughes
* Fix startDetached: the pipes must be CLOEXEC for them to work.Thiago Macieira2009-07-281-2/+2
| | | | | | | | | In de05f9a40e41deb79daf5c4935b2645d70d7f322 I removed the fcntl that set FD_CLOEXEC because it was supposed to be set by qt_safe_pipe. Turns out that this code didn't call the wrapper function... Reviewed-by: ossi
* Work around weird issue with Sun CC 5.9: Self was the wrong class.Thiago Macieira2009-07-281-2/+2
| | | | | | I don't know if this was only the debugging symbols or if the compiler was really wrong. But while debugging, Self was ExternalRefCountWithCustomDeleter, which is wrong at this point.
* Sun CC 5.9 does not support template friendsThiago Macieira2009-07-281-0/+3
| | | | But I'm told 5.10 does.
* Fixes doc typos and indentation in abstractitemview & itemselectionmodelLeonardo Sobral Cunha2009-07-282-238/+236
| | | | Reviewed-by: Trustme
* Fix menubar item size incorrect with iconJens Bache-Wiig2009-07-281-4/+3
| | | | | | | | | When you have an icon set we do not show the text label, but the previous code would still use the text for the size hint calculation. Task-number: 218836 Reviewed-by: ogoffart
* Disable Texture-From-Pixmap on everything other than LinuxTom Cooksey2009-07-281-1/+6
|
* Fixes: Compile on winscwHenrik Hartz2009-07-281-1/+2
| | | | | | RevBy: Frans Englich Details: QHash::value creates an internal compiler error in this case on Metrowerks, using find instead
* Doc: Focus and key-event handling in QGraphicsItem.Volker Hilsheimer2009-07-272-28/+37
|
* Fix build on SolarisTom Cooksey2009-07-271-2/+5
| | | | | Solaris seems to define glXReleaseTexImageEXT rather than let it be resolved as a function pointer.
* Don't animate widgets on first show in VistaJens Bache-Wiig2009-07-271-1/+2
| | | | | | | | | | | Checkboxes would animate when first shown if they were checked. This is unintentional and looks a bit odd in wizard for instance. To fix this we simply check if the old state was set. Note that this is safe because we will at least require the enabled state flag to be set. Task-number:253075 Reviewed-by: ogoffart
* Work around a Sun CC 5.9 compiler bug: the threadEngine variable isn't found.Thiago Macieira2009-07-271-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | QtConcurrent had the following code: template <typename T> class ThreadEngineStarterBase { ... protected: ThreadEngine<T> *threadEngine; }; template <typename T> class ThreadEngineStarter : public ThreadEngineStarterBase<T> { public: ThreadEngineStarter(ThreadEngine<T> *threadEngine) :ThreadEngineStarterBase<T>(threadEngine) {} [...] }; The Sun CC compiler simply didn't parse the parameter declaration in the constructor. Instead of complaining, it silently ignored the problem. Which meant that the constructor simply used the uninitialised member variable from the base class to call the parent constructor, which ended up initialised with itself. You'd think that it's just because the parameter has the same name as a member variable. But it appears to be a compiler bug altogether. If you change the name, then you start getting compile errors. This change is a workaround that worked. Reviewed-By: Bradley T. Hughes
* Sun CC 5.9 still doesn't support Template-Template ParametersThiago Macieira2009-07-271-3/+1
| | | | | | | | | | | | I had added the version check when we only had CC 5.5 and 5.6, expecting that 5.7 would have the support. And if it didn't, then someone would notice the compile error in QtConcurrent, bumping the version number here. Except that QtConcurrent was never enabled with Sun CC. Which meant that we never got to test TTP support. Reviewed-By: Bradley T. Hughes
* Fix warning with Sun CC 5.9 and xlC 7: no new types inside anonymous unions.Thiago Macieira2009-07-271-5/+6
| | | | | | | See ba191b0a26b966ad1fb596a905307399922bc44a for a similar commit done to QStringMatcher. Reviewed-By: Bradley T. Hughes
* Doc: Remove reference to QMatrixVolker Hilsheimer2009-07-271-5/+3
| | | | | As pointed out on IRC, setTransform is used most frequently in code and in an ideal world would be the only such function.
* "MAP" is a too common name to use it without #undef'ing it firstRobert Griebl2009-07-271-1/+3
| | | | Reviewed-by: TrustMe
* Compile on Mac OS XBradley T. Hughes2009-07-271-1/+1
|
* Compile on Mac OS XBradley T. Hughes2009-07-272-4/+4
| | | | Need the right include for the mach_*() functions.
* Merge branch 'master' of git@scm.dev.nokia.troll.no:qt/qtMorten Sørvig2009-07-2715-170/+130
|\
| * Fixed SC_ComboBoxArrow returning inverted subControlRect on vistaJens Bache-Wiig2009-07-271-1/+1
| | | | | | | | | | | | | | | | | | | | The arrow was reported to be on the wrong side of the control. Technically the arrow part seems to cover the whole rect on Vista and Gtk+ but due to compatibility it is probably safer to keep the old rects for now. Task-number: 252857 Reviewed-by: ogoffart
| * Avoid floating point code when converting Mach time to timevalBradley T. Hughes2009-07-271-2/+2
| | | | | | | | | | | | Mac OS X only change Reviewed-by: Thiago
| * Refactor monotonic time code to avoid duplication.Bradley T. Hughes2009-07-274-114/+60
| | | | | | | | | | | | | | | | | | Merge the monotonic clock source detection in qeventdispatcher_unix.cpp with that in qcore_unix.cpp. As discussed with Thiago, we're also removing older compat code at the same time (spinning on select() when we think it woke up early). Reviewed-by: Thiago
| * "enabled" parameter should default to true, as with QGraphicsView andVolker Hilsheimer2009-07-272-1/+3
| | | | | | | | | | | | QPainter. Reviewed-by: Simon Hausmann
| * Doc: Obsolete QMatrix and QPainter APIs using it.Volker Hilsheimer2009-07-273-37/+57
| | | | | | | | | | | | | | | | | | QTransform and respective APIs should be used. Still some changes required - Some references to QMatrix left in documentation - Qt code uses QMatrix APIs (ie translationX) Reviewed-by: Samuel
| * Doc: QTextLayout is the class to use in interactive text controls.Volker Hilsheimer2009-07-271-1/+1
| |
| * Doc: QTextLayout is the class to use in interactive text controls.Volker Hilsheimer2009-07-271-6/+4
| |
| * QHttpNetworkConnectionPrivate: Removed wrong commentMarkus Goetz2009-07-271-6/+0
| | | | | | | | | | | | | | The comment was speaking about upload progress, however the code is about download progress. Reviewed-by: TrustMe
| * Doc: replace links to obsolete APIsVolker Hilsheimer2009-07-272-2/+2
| |
| * Doc - fixed a typo [describles->describes]Kavindra Devi Palaraja2009-07-271-2/+2
| | | | | | | | | | | | Task: 258573 Reviewed-By: TrustMe
* | Make the Character Palette work on Mac/Cocoa.Morten Sørvig2009-07-272-4/+17
|/ | | | | | | | | Handle the case when insertText is called with no corresponding keyDown. This fix is for the Cocoa port. Task-number: 147379
* Mac/Cocoa: Remove separator line for "unified document tabs"Morten Sørvig2009-07-273-3/+19
| | | | | | | | Call [NSToolbar setShowsBaselineSeparator] on the (unified) toolbar if the window contains tabs in document mode. Task-number: 252660 Reviewed-by: Richard Moe Gustavsen
* Really, really fix HPUX this timeTom Cooksey2009-07-271-1/+1
| | | | | | The conditionals were the wrong way round. Reviewed-By: Samuel
* Add QGraphicsItem::ItemAutoDetectsFocusProxy and improve subfocus support.Andreas Aardal Hanssen2009-07-277-73/+136
| | | | | | | | | | | | | | | | | If you set this flag on an item, and descendant item that gains input focus will become this item's focus proxy. This simplifies how focus proxy items are assigned from QML; instead of binding the possible focusProxy property to a named child widget, this assignment happens automatically as you set the focus property of a descendant to true. As part of this change, QGraphicsWidget::focusWidget behavior has been improved and moved into QGraphicsItem. For example, if you set focus on an item that it's part of a scene, it can gain focus once the parent has been assigned (which is how object trees are built in QML). Autotests are included. Reviewed-by: Michael Brasser
* Doc: Remove more links to obsolete functions.Volker Hilsheimer2009-07-251-4/+4
|
* Doc: Replace QMatrix with QTransform and respective functions in various places.Volker Hilsheimer2009-07-254-13/+18
|
* Doc: Document that coordinates are dropped.Volker Hilsheimer2009-07-252-4/+8
|
* Doc: Replace more links to obsolete APIs.Volker Hilsheimer2009-07-252-27/+9
|
* Doc: Replace links to obsolete APIs.Volker Hilsheimer2009-07-2513-36/+34
|
* Revert "Doc: Clarified that the format used in QImage::fromData() is the image"Volker Hilsheimer2009-07-251-31/+27
| | | | | This reverts commit 1368c210ef9976f68eb9fb1c3e4dc14f4fa4edd2, which accidentially reverted previous commits.
* Doc: \em is not a qdoc command, \e is correctVolker Hilsheimer2009-07-251-2/+2
|