summaryrefslogtreecommitdiffstats
path: root/src/gui
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
* 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.
* 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.
* 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
* Doc: Focus and key-event handling in QGraphicsItem.Volker Hilsheimer2009-07-272-28/+37
|
* 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
* 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
* Merge branch 'master' of git@scm.dev.nokia.troll.no:qt/qtMorten Sørvig2009-07-276-47/+65
|\
| * 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
| * 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
| |
| * 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
* 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-2510-28/+24
|
* 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
|
* Fix QSystemTrayIcon causing three activated signals on doubleclickJens Bache-Wiig2009-07-241-2/+9
| | | | | | | | | | | The problem was that on Windows, we would activate on WM_LButtonUp, but a double click after activating will also generate a second WM_LButtonUp. Hence we get three activations. The fix was basically to filter out the second WM_LButtonUP, something we also do in qapplication_win.cpp. Task-number: 205499 Reviewed-by: denis
* Fix missing mnemonics when triggering menus by shortcutJens Bache-Wiig2009-07-241-0/+3
| | | | | | | | | | | | When opening a menu by shortcut on Windows, we would loose the keyboard mnemonic when navigating around. This is incorrect compared to native applications and somewhat inconvenient. The fix is basically to enable the keyboard mode when shortcuts are triggered, not only when the alt-key is pressed. Task-number: 254496 Reviewed-by: denis
* Specify widget when calling QToolTip::showText() to make sure the tool tip ↵Thomas Sondergaard2009-07-242-6/+5
| | | | | | | ends up on the right X11 screen. Merge-request: 987 Reviewed-by: Olivier Goffart <ogoffart@trolltech.com>
* Nested classes need to be exported as well.Volker Hilsheimer2009-07-241-1/+1
| | | | | | This makes the QPixmapCache autotest link and pass on Windows. Reviewed-by: Trustme
* qdoc: Fixed all references to obsolete QHttp classes.Martin Smith2009-07-241-4/+5
|
* Remove all the last vestiges of QuickDraw in Qt/Mac.Norwegian Rock Cat2009-07-246-227/+3
| | | | | | | Panther was the last reason for having this around. We don't touch this code anywhere else in Qt. As a result it's orphaned and can be safely removed. It truly is the end of an era, but it's definitely worth celebrating. Quartz4Life!
* Get collapsible menus working correctly.Norwegian Rock Cat2009-07-246-54/+74
| | | | | | | | | | There was an attempt to do this earlier, but it was a bit more complex than it needed to be. We now do the update on show in Cocoa. Carbon actually does it all for us, we just need to flip the bit. We may do the updates to often, but it's better than not enough. Task-Id: 195445 Reviewed-by: Denis
* Merge branch 'master' of scm.dev.nokia.troll.no:qt/qtSimon Hausmann2009-07-241-1/+1
|\
| * Once enabled, the emulation engine never got switched back offGunnar Sletta2009-07-241-1/+1
| | | | | | | | | | | | The check in QPainter::checkEmulation was just plain wrong. Reviewed-By: Eskil
* | Merge branch '4.5' of scm.dev.nokia.troll.no:qt/qtSimon Hausmann2009-07-244-12/+39
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/3rdparty/webkit/VERSION src/3rdparty/webkit/WebCore/ChangeLog src/3rdparty/webkit/WebCore/bridge/qt/qt_instance.cpp src/3rdparty/webkit/WebCore/bridge/qt/qt_instance.h src/3rdparty/webkit/WebCore/page/DragController.cpp src/3rdparty/webkit/WebKit/qt/Api/qwebframe.cpp src/3rdparty/webkit/WebKit/qt/ChangeLog src/3rdparty/webkit/WebKit/qt/tests/qwebpage/tst_qwebpage.cpp src/gui/painting/qpaintengineex_p.h tools/linguist/lupdate/main.cpp
| * Fixed crash when vectorpath was polygonal only in raster::stroke()Gunnar Sletta2009-07-241-9/+16
| | | | | | | | | | | | | | Polygonal vector paths may have types==null, in which case this would have crashed. Reviewed-by: Eskil
| * QPainter::stroke() on raster engine would draw moveto's as linesGunnar Sletta2009-07-231-5/+17
| | | | | | | | | | | | | | | | | | The reason being that there was an assumption that any non-curved path was a continous polyline. For paths with multiple subpaths in it we need to split this up into multiple strokePolygonCosmetic calls. Task-number: 257621 Reviewed-by: Kim Motoyoshi Kalland
| * Diagonal dashes are moving when touching the clip boundary.Gunnar Sletta2009-07-231-1/+4
| | | | | | | | | | | | | | | | | | We normally pad the clip rect with the size of the pen and miterlimit to avoid this, but this didn't handle the case where there was a long diagonal dash. We also need to multiply the padding with the longest dash. Reviewed-By: Tom Cooksey
| * Implement clipping in the QPaintEngineEx::stroke() function.Gunnar Sletta2009-07-233-6/+11
| | | | | | | | | | | | | | This is a huge impact on performance whenever this path is taken. Reviewed-By: Tom Cooksey
* | Merge branch 'master' of git@scm.dev.nokia.troll.no:qt/qtPeter Yard2009-07-2461-2268/+1055
|\ \
| * \ Merge branch 'master' of git@scm.dev.nokia.troll.no:qt/qtDavid Boddie2009-07-2323-1959/+265
| |\ \
| | * | Reverted commits that changed the behavior of the keypresses with modifiers.Denis Dzyubenko2009-07-232-4/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Apparently it changes the behavior of Qt too much and also breaks the text input in some keyboard layouts (for example in German layout you need to be able to use Ctrl and Alt or AltGr modifiers to type text). Revert "Don't insert text into a text widget when a modifier is pressed." This reverts commit 099a32d121cbc80a1a234c3146f4be9b5237e7e8. Revert "Fixed the qlineedit autotest." This reverts commit 9210e8cdc83b6812d10f5f5847d05703ef2e5f7c.
| | * | Fix incorrect button positioning on tabsJens Bache-Wiig2009-07-231-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For tabs with RoundedWest or TriangularWest the button offset was reversed on tab selection. This was very visible on windows where they could actually move outside the tab border. Task-number: 255139 Reviewed-by: paul
| | * | Qt/EL mouse and keyboard driver cleanup.Robert Griebl2009-07-2318-1949/+254
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * removed the vr41xx, yopy and sl5000 drivers (old PDAs) * removed the bus mouse driver (ISA days should be over) * renamed the LinuxIS mouse driver to LinuxInput (consistency with the key driver) * unified the LinuxInput mouse and key driver I/O handling Reviewed-By: Paul
| | * | Fixed embedded mouse and keyboard docu for 4.6Robert Griebl2009-07-231-5/+3
| | | | | | | | | | | | | | | | Reviewed-By: Paul
| | * | Finish up my AA_DontSwapMetaAndControl feature.Norwegian Rock Cat2009-07-231-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Ugh. The whole reason I added this was so that the text() would be preserved for people that did stuff with Control. Somehow in all the other fixes I did, I forgot to actually do that part. Reviewed-by: Denis
| * | | Doc: Clarified that the format used in QImage::fromData() is the imageDavid Boddie2009-07-231-27/+31
| |/ / | | | | | | | | | | | | | | | format, not the pixel format. Reviewed-by: Trust Me