summaryrefslogtreecommitdiffstats
path: root/src/gui/graphicsview
Commit message (Collapse)AuthorAgeFilesLines
* Fix wrong transform when applying multiple QGraphicsEffects.Bjørn Erik Nilsen2009-08-063-17/+27
|
* Wrong caching of QGraphicsItem::childrenBoundingRect.Bjørn Erik Nilsen2009-08-061-14/+10
| | | | | | | We cannot cache the bounding rect on the fly for children, because the bounding rect is mapped to the callee's local coordinate system. Auto-test included.
* First round of documentation for QGraphicsEffect.Andreas Aardal Hanssen2009-08-053-20/+162
| | | | | | | Discovered some weaknesses in the API; next round is to discuss and fix these. Reviewed-by: TrustMe
* Make tst_QGraphicsEffectSource::boundingRect happy.Bjørn Erik Nilsen2009-08-043-9/+12
| | | | | | | | | | We cannot modify the transformPtr directly because we might want to use the original transform later. The problem in this particular case was that we called source->pixmap() (which modified the transformPtr), then source->boundingRect(Qt::DeviceCoordinates) which in turn used wrong transform to map the bounding rect.
* Make tst_QGraphicsEffectSource happy.Bjørn Erik Nilsen2009-08-041-0/+1
| | | | Doh, storing a stale pointer is not a good idea ;)
* Toggling QGraphicsEffect's enabled property does not update the source.Bjørn Erik Nilsen2009-08-041-0/+6
| | | | Makes tst_QGraphicsEffect::draw happy.
* More QGraphicsEffect API cleanup.Bjørn Erik Nilsen2009-08-043-30/+5
| | | | Removing some left over from previous experiments.
* Artifacts when moving a child when the parent has a graphics effect.Bjørn Erik Nilsen2009-08-042-8/+23
| | | | | | | | | | | We have to use the effectiveBoundingRect() when finding out which items to repaint within a specific area. However, we don't want items to be clickable on the shadow, so we shouldn't use effectiveBoundingRect for normal item-lookup. Solution to this is to only use effectiveBoundingRect() in the BSP (used by estimateTopLevels) and in drawSubtreeRecursive. Auto-test included.
* Avoid painting on a null pixmap in QGraphicsShadowEffect.Bjørn Erik Nilsen2009-08-031-0/+2
|
* QGraphicsItem leave traces when removing graphics effect.Bjørn Erik Nilsen2009-08-032-2/+2
| | | | | | We have to update the view directly when removing an effect; otherwise we have no information about the effective bounding rect and only the item's bounding rect will be updated.
* Fixes QGraphicsEffect offset bugs.Bjørn Erik Nilsen2009-07-312-4/+3
|
* Notify QGraphicsEffect about source bounding rect changes.Bjørn Erik Nilsen2009-07-315-4/+15
|
* Compile fix.Bjørn Erik Nilsen2009-07-301-0/+1
|
* Fix offset bug in QGraphicsShadowEffect.Bjørn Erik Nilsen2009-07-301-4/+19
|
* Make sure we don't create pixmaps that are bigger than the device rect.Bjørn Erik Nilsen2009-07-305-2/+41
|
* Prevent potential QGraphicsEffect crashes.Bjørn Erik Nilsen2009-07-301-10/+17
|
* Small optimization to QGraphicsEffectSource::boundingRect.Bjørn Erik Nilsen2009-07-291-1/+2
| | | | | Don't bother asking for the childrenBoundingRect if the item has no children.
* A few QGraphicsEffect optimizations.Bjørn Erik Nilsen2009-07-291-7/+20
| | | | | | | First of all we shouldn't pass pixmap.rect() into the filter, we always want to draw the entire pixmap (without making a copy). We can also skip the filter entirely if the filter is effectively not doing anything.
* Conflicts after merge commit 07c2b17276057a8b47c3be57ab7c2cf66dac0eddBjørn Erik Nilsen2009-07-291-1/+1
| | | | Makes QGraphicsShaderEffect compatible with the new QGraphicsEffect API.
* Merge branch 'kinetic-graphicseffect' of ↵Bjørn Erik Nilsen2009-07-298-61/+176
|\ | | | | | | | | | | | | | | git@scm.dev.nokia.troll.no:qt/kinetic into graphicseffects Conflicts: src/gui/graphicsview/qgraphicseffect.cpp src/gui/graphicsview/qgraphicseffect_p.h
| * Merge commit 'qt-graphics-team/pixmapfilters-redux' into kinetic-graphicseffectSamuel Rødal2009-07-281-2/+2
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/opengl/gl2paintengineex/qglengineshadermanager.cpp src/opengl/gl2paintengineex/qglengineshadermanager_p.h src/opengl/gl2paintengineex/qpaintengineex_opengl2.cpp src/opengl/gl2paintengineex/qpaintengineex_opengl2_p.h Merge custom shader / GL blur pixmap filter implementation from graphics team repo with implementation from kinetic graphics-team repo.
| * | Update QGraphicsShaderEffect to match new APIRhys Weatherley2009-07-241-2/+2
| | |
| * | Merge branch 'kinetic-graphicseffect' of ↵Rhys Weatherley2009-07-249-435/+456
| |\ \ | | | | | | | | | | | | git@scm.dev.nokia.troll.no:qt/kinetic into kinetic-graphicseffect
| * \ \ Merge branch 'custom_shaders' of ../qt-graphics-team into custom-shadersRhys Weatherley2009-07-236-57/+174
| |\ \ \ | | | | | | | | | | | | | | | | | | | | Conflicts: src/gui/graphicsview/qgraphicsitem_p.h
| | * | | 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
* | | | | QGraphicsEffect cleanup.Bjørn Erik Nilsen2009-07-295-48/+37
| | | | |
* | | | | QGraphicsEffect optimizations for pixmap based items.Bjørn Erik Nilsen2009-07-294-31/+93
| | | | |
* | | | | Generalize QGraphicsEffectSource::pixmap.Bjørn Erik Nilsen2009-07-291-13/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Before QGraphicsEffectSource::pixmap could only return something useful when called from QGraphicsEffect::draw. This patch removes this limitation. However, we still cannot provide pixmaps in device coordinates when not called from QGraphicsEffect::draw, though.
* | | | | Notify sub-classes of QGraphicsEffect whenever the source changes.Bjørn Erik Nilsen2009-07-293-0/+12
| | | | |
* | | | | Add support for updating the source when bounding rect changes.Bjørn Erik Nilsen2009-07-294-3/+22
| | | | |
* | | | | Make it possible to disable graphics effects.Bjørn Erik Nilsen2009-07-295-7/+25
| | | | | | | | | | | | | | | | | | | | Adds QGraphicsEffect::setEnabled/isEnabled
* | | | | Add new enum to global namespace: Qt::CoordinateSystemBjørn Erik Nilsen2009-07-295-20/+21
| | | | |
* | | | | Remove drawIntoPixmap and implement all the effects with the new API.Bjørn Erik Nilsen2009-07-295-159/+37
| | | | |
* | | | | add support for passing arbitrary painters intoBjørn Erik Nilsen2009-07-293-6/+17
| | | | | | | | | | | | | | | | | | | | QGraphicsEffectSource::draw
* | | | | Add QGraphicsEffectSource::pixmap.Bjørn Erik Nilsen2009-07-297-26/+92
| | | | | | | | | | | | | | | | | | | | | | | | | We need a convenient way of getting the pixmap representation of the source.
* | | | | Add QGraphicsSourceEffect.Bjørn Erik Nilsen2009-07-299-255/+333
| |_|/ / |/| | |
* | | | Make QGraphicsEffect independent of QGraphicsItem.Bjørn Erik Nilsen2009-07-248-268/+266
| | | | | | | | | | | | | | | | | | | | | | | | This makes it possible to basically implement support for graphics effects on pretty much everything, e.g. QWidget. We currently only support effects on QGraphicsItem, but there's more to come :-)
* | | | QGraphicsEffect API cleanup.Bjørn Erik Nilsen2009-07-237-203/+226
|/ / /
* | | Add QPixmapBlurFilter for non-convolution blur effects.Rhys Weatherley2009-07-231-15/+13
| | | | | | | | | | | | Reviewed-by: trustme
* | | Compile after merge commit 8079a0c5b4ee6550501476410fab457d63c705b6Bjørn Erik Nilsen2009-07-214-28/+24
| | |
* | | Merge commit 'qt/master' into graphicseffectsBjørn Erik Nilsen2009-07-2123-2434/+3160
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | | | | Conflicts: src/gui/graphicsview/graphicsview.pri src/gui/graphicsview/qgraphicsitem_p.h src/gui/graphicsview/qgraphicsscene.cpp src/gui/graphicsview/qgraphicsscene.h src/gui/graphicsview/qgraphicsview.cpp
| * | 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
| | | |