summaryrefslogtreecommitdiffstats
path: root/src/gui/graphicsview
Commit message (Collapse)AuthorAgeFilesLines
* QGraphicsRotation and QGraphicsRotation3D are now merged into 1 classThierry Bastian2009-08-122-119/+94
| | | | | | | | You can now also set the axis following hte Qt::Axis enum Note: I'm not 100% sure about the maths in QGraphicsRotation::applyTo Feel free to fix it. Reviewed-by: ogoffart
* Eliminate last mentions of "Qt Software".Jason McDonald2009-08-122-2/+2
| | | | Reviewed-by: Trust Me
* Update contact URL in license headers.Jason McDonald2009-08-1244-44/+44
| | | | Reviewed-by: Trust Me
* fix warnings for the qreal == float caseJoerg Bornemann2009-08-111-2/+2
| | | | Reviewed-by: mauricek
* Compile fix with namespaceshjk2009-08-101-0/+4
|
* Emit axisChanged() when the QGraphicsRotation3D axis changes.Rhys Weatherley2009-08-101-0/+3
| | | | Reviewed-by: Aaron Kennedy
* Set default QGraphicsTransform3D axis to (0, 0, 1)Rhys Weatherley2009-08-101-11/+26
| | | | | | | | | The docs said that the default axis was (0, 0, 1), but the code and unit tests were using (0, 0, 0). Modify the code to match the docs because (0, 0, 0) is not very useful. Also optimize the calculation of sin/cos values for 90, 180, and 270 degrees. Reviewed-by: Aaron Kennedy
* Fix compiler error on GCC 4.2.0 mips/sh3Anders Bakken2009-08-071-6/+3
| | | | | | | Before this patch gcc would fail with this message: internal compiler error: in add_virtual_operand, at tree-ssa-operands.c:1317 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@nokia.com>
* Refactors QGraphicsItemGroup::addToGroup to use QGraphicsItem::itemTransformLeonardo Sobral Cunha2009-08-071-7/+12
| | | | | | This does not change the behavior of the method. Reviewed-by: andreas
* Merge branch '4.5'Bill King2009-08-051-11/+14
|\ | | | | | | | | | | Conflicts: src/gui/graphicsview/qgraphicsitem.cpp
| * Fix indentation.Alexis Menard2009-08-041-1/+3
| | | | | | | | Reviewed-by:TrustMe
| * Fix ancestor flags that are not correctly update when reparenting.Alexis Menard2009-08-041-11/+12
| | | | | | | | | | | | | | | | | | updateAncestorFlags was not reseting the flags if you change the parent that have for instance itemsClipChildrenToShape to a new one that doesn't have that flag. Task-number:258956 Reviewed-by:bnilsen
| * Fix a potential crash due to the fact that _q_UpdateIndex() is reenteredAndy Shaw2009-07-221-1/+1
| | | | | | | | | | | | | | | | | | This is confirmed to resolve a number of problems from the original reportee. It's already fixed in Qt 4.6 in a more wider fix, but this one liner is a good to have in Qt 4.5.x anyway. Task-number: 258194 Reviewed-by: alexis
* | Added input hints to QGraphicsItem.jasplin2009-08-043-2/+40
| | | | | | | | | | | | | | | | | | This patch allows for input hints to be set on a QGraphicsItem. Input methods use such hints to define its appearance/behavior (e.g. to allow for numerical input only). Reviewed-by: ahanssen Task-number: 254493
* | Fix obsolete license headersJason McDonald2009-08-041-2/+2
| | | | | | | | Reviewed-by: Trust Me
* | Doc: Use new APIs in example and correct documentation regarding replacement.Volker Hilsheimer2009-07-311-1/+1
| |
* | Doc: Use new APIs in example and correct documentation regarding replacement.Volker Hilsheimer2009-07-311-4/+27
| |
* | Merge branch 'master' of git@scm.dev.nokia.troll.no:qt/qtAaron Kennedy2009-07-315-191/+327
|\ \
| * | Docs: Improve QGraphicsTransform and subclassesAndreas Aardal Hanssen2009-07-315-191/+327
| | | | | | | | | | | | | | | | | | | | | | | | Fix a few typos and add more descriptive documentation to the class itself and its subclasses. Reviewed-by: Volker Hilsheimer Reviewed-by: Martin Smith
* | | extend the QObjectPrivate::connectedSignals bitfield to make spaceAaron Kennedy2009-07-312-5/+5
|/ / | | | | | | | | | | | | | | | | | | for all the required NOTIFY signals we need for QML bindings. An additional internal function QMetaObject::isConnected() allows to query the bits, or you use connectedSignals[0] if you know that the signal in question has a QMetaObject::indexOfSignal() < 32. Authored-by: mae Reviewed-by: Aaron Kennedy
* | Use correct license header.Volker Hilsheimer2009-07-291-2/+2
| |
* | Doc: Document QGraphicsObject::children workaround as \internalVolker Hilsheimer2009-07-291-0/+10
| |
* | Make autotests compile: s/slots/Q_SLOTSVolker Hilsheimer2009-07-291-1/+1
| | | | | | | | Reviewed-by: Trustme
* | fix compilation without 3d supportLars Knoll2009-07-291-1/+1
| |
* | Ensure hover enter events are dispatched on mouse press.Andreas Aardal Hanssen2009-07-291-0/+7
| | | | | | | | | | | | | | | | | | | | This change ensures that mouse presses received by the scene when there are no current mouse grabbers trigger hover event delivery. This is useful when the scene only receives presses, and no mouse moves (e.g., disabling mouse tracking on the viewport, or on systems where the mouse press is the first received event). Reviewed-by: Michael Brasser
* | Fix remaining autotest failures in tst_QGraphicsWidgetAndreas Aardal Hanssen2009-07-291-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change f68fed3 introduced a few regressions in the QGraphicsWidget autotests. It turned out those autotests relied on behavior that this fix "fixed". The exact bugs were 1) that setting focus on a window or a child of a window that isn't active will automatically give that item focus, despite that its window is inactive (in contrast it should just set up subfocus and give the item focus when the window is activated), and 2) that adding a window to a scene that is active did not immediately activate that window. So one fix in the test and one in QGraphicsScene. The autotests were modified so that the respective tests operate on an active scene (by assigning the scene to an active view). The change in QGraphicsScene ensures that the first window that gets added to an active scene that does not have any active windows already, automatically gets activated. Reviewed-by: Michael Brasser
* | Disambiguate QGraphicsObject::children().Andreas Aardal Hanssen2009-07-291-0/+7
| | | | | | | | | | | | | | Add using to prefer QObject::children() over the obsolete QGraphicsItem::children() function. Reviewed-by: Henrik Hartz
* | forgot to add this file in the last commit.Lars Knoll2009-07-291-0/+73
| |
* | 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
* | Doc: Some final QMatrix cleanups.Volker Hilsheimer2009-07-282-3/+5
| |
* | Doc: Focus and key-event handling in QGraphicsItem.Volker Hilsheimer2009-07-271-20/+25
| |
* | 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: Replace QMatrix with QTransform and respective functions in various places.Volker Hilsheimer2009-07-252-10/+12
| |
* | Doc: Replace links to obsolete APIs.Volker Hilsheimer2009-07-251-1/+1
| |
* | Specify widget when calling QToolTip::showText() to make sure the tool tip ↵Thomas Sondergaard2009-07-241-3/+2
| | | | | | | | | | | | | | ends up on the right X11 screen. Merge-request: 987 Reviewed-by: Olivier Goffart <ogoffart@trolltech.com>
* | doc: Removed a few links to obsolete functions (not controversial).Martin Smith2009-07-231-16/+11
| |
* | Fix merge error, restore size of bit field.Andreas Aardal Hanssen2009-07-231-2/+2
| | | | | | | | | | | | | | | | | | Change 34fde4a4 removes one bit from the flags bitfield, which was added in change 7bc98d7b. This happened during resolving of a merge conflict and caused some input method related autotests in tst_QGraphicsView to fail. Reviewed-by: mbm
* | Add QGraphicsItem::focusProxy(), focus proxy support.Andreas Aardal Hanssen2009-07-235-48/+141
| | | | | | | | | | | | | | | | | | Following QWidget's behavior, you can not assign any item in the same scene as a focus proxy for another item. Also supports nested focus proxies. You can only assign items in the same scene as focus proxies. Autotests are included. Reviewed-By: mbm
* | Doc: documentation for boolean properties should say what happens whenVolker Hilsheimer2009-07-211-5/+7
| | | | | | | | the property is set, not what doesn't happen when the property is not set.
* | Doc: make potentially incorrect overloads obsolete.Volker Hilsheimer2009-07-212-3/+25
| | | | | | | | | | | | Also add additional overload. Reviewed-by: Andreas
* | Doc: fix links between QGraphicsItem and QTouchEventVolker Hilsheimer2009-07-201-3/+3
| |
* | doc: Changed several \reimp to \internalMartin Smith2009-07-201-1/+1
| | | | | | | | The base function was \internal pr private.
* | Merge commit 'origin/4.5'Oswald Buddenhagen2009-07-201-1/+1
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/3rdparty/webkit/VERSION src/3rdparty/webkit/WebCore/ChangeLog src/3rdparty/webkit/WebCore/generated/JSDOMWindow.cpp src/3rdparty/webkit/WebCore/page/DOMWindow.idl src/corelib/io/qdiriterator.cpp src/plugins/gfxdrivers/directfb/qdirectfbpaintengine.cpp src/plugins/gfxdrivers/directfb/qdirectfbpixmap.h tests/auto/qxmlquery/tst_qxmlquery.cpp tools/linguist/lconvert/main.cpp
| * Fix the hand scrolling in QGraphicsView that will stop unexpectedly.Alexis Menard2009-07-201-1/+1
| | | | | | | | | | | | | | | | | | | | If you start a hand scrolling and during moving, you press another button of the mouse than the left one, the scrolling suddently stop working. In mouseReleaseEvent we just stop the hand scrolling if the button is left. Task:258356 Reviewed-by:janarve
* | Compile fix with namepaceshjk2009-07-203-16/+13
| | | | | | | | | | | | Some QT_{BEGIN,END}_HEADER macros had been missing or misplaced. Reviewed-by: thiago
* | Doc: A few cleanups, fixes and improvements.Volker Hilsheimer2009-07-191-5/+5
| |
* | Doc: add \since 4.6 for new APIsVolker Hilsheimer2009-07-194-8/+24
| |
* | Doc: add documentation for new overloads, and mark old overloads thatVolker Hilsheimer2009-07-181-5/+57
| | | | | | | | might lead to incorrect results as obsolete (and explain why).
* | Doc: fix qdoc errors and clarify purpose of deviceTransform parameterVolker Hilsheimer2009-07-163-39/+58
| | | | | | | | | | | | in new overloads. Reviewed-By: bnilsen
* | With license it's better.Alexis Menard2009-07-161-0/+41
| |