summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qwidget.cpp
Commit message (Collapse)AuthorAgeFilesLines
* doc: Added note explaining grabMouse() for Cocoa and Carbon.Martin Smith2010-01-051-4/+10
| | | | Task-number: QTBUG-6810
* Fixes crash when widget with WA_StaticContents child become toplevel.Olivier Goffart2009-12-291-6/+5
| | | | | | | | | | | | Happens for example if a DockWidget is undocked and has a child whith the WA_StaticContents attribute. The parent does not change (so newParent is false) but still, the top level widget change. So staticWidget need to be moved to the new backingstore. Reviewed-by: Benjamin Poulain Task-number: QTBUG-6883
* Merge branch '4.6' of scm.dev.nokia.troll.no:qt/oslo-staging-2 into ↵Qt Continuous Integration System2009-12-091-0/+2
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | qt-integration * '4.6' of scm.dev.nokia.troll.no:qt/oslo-staging-2: Export QGLShareRegister because qgl_share_reg() is exported Fix upside down PVR compressed textures. Make sure a context is current when loading compressed textures. Fix possible off-by-one inconsistency against system look and feel when Fixes broken graphics effect auto tests. Doc: Explicitly mention that QWidget/QGraphicsItem takes ownership of effects. Remove id property from QGraphicsObject Minor fixes to softkey dimming support (commit 245c9cc0). FEP returns the wrong foreground color in GetFormatOfFepInlineText
| * Doc: Explicitly mention that QWidget/QGraphicsItem takes ownership of effects.Bjørn Erik Nilsen2009-12-081-0/+2
| |
* | Merge branch '4.6' of scm.dev.nokia.troll.no:qt/oslo-staging-2 into ↵Qt Continuous Integration System2009-12-081-10/+4
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | qt-integration * '4.6' of scm.dev.nokia.troll.no:qt/oslo-staging-2: Fix GL_BGRA formats under OpenGL/ES systems Compilation fix Assert in designer while drag & dropping items from a QListWidget Fixed memory leaks when removing a QGraphicsEffect from a QGraphicsItem or QWidget Fix the toolbars docking Added dimming support for disabled softkeys in Symbian. Remove compilation warning from S60pixelMetrics on ARM Button and LineEdit/TextEdit theme colors are incorrect QS60Style: Overwrites correct stylehint color values MMP_RULES overriding qmake variables now warns user Switched S60 QDesktopServices implementation to CDocumentHandler based. Fixed "...QString::QString(const char *)... is deprecated" warning. Unnecessary symbian version checks in sqldrivers.pro QS60Style: Always store changed theme palette
| * Fixed memory leaks when removing a QGraphicsEffect from a QGraphicsItem or ↵Yoann Lopes2009-12-071-10/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | QWidget with setGraphicsEffect(0). The effect was not deleted in that case, problem solved for both QGraphicsItem and QWidget. Autotest included. Task-number: QTBUG-5917 Reviewed-by: bnilsen
* | Merge branch '4.6' of scm.dev.nokia.troll.no:qt/oslo-staging-1 into 4.6-staging1Denis Dzyubenko2009-12-031-2/+8
|\ \ | |/ | | | | | | | | Conflicts: src/gui/kernel/qcocoapanel_mac.mm src/gui/kernel/qcocoawindow_mac.mm
| * Clarify the docs a bit when setting focus.axis2009-12-011-2/+8
| | | | | | | | RevBy: Trust me
* | Do not emulate mouse event out of touch pad eventsDenis Dzyubenko2009-12-021-1/+3
|/ | | | | | | | | | | | | If the touch event comes from a touchpad it doesn't seem necessary to send fake mouse events. At least on the platform that actually supports touchpad events (i.e. Mac) native apps don't do that and the current implementation breaks popup handling - since touch events are only sent by default if two or more fingers touch the touchpad, we send fake MouseButtonPress when second finger is pressed and MouseButtonRelease when the second finger is released - i.e. at the same time when the system send scrollWheel events. This causes the active popup to close when using two-finger scroll gesture. Reviewed-by: Brad
* Fixes for tab/space usage in qwidget.cpp.Janne Anttila2009-11-251-15/+15
| | | | Reviewed-by: TrustMe
* avoid possible crash when showing a modal dialog from a widget destructorThierry Bastian2009-11-201-2/+3
| | | | | Task-number: QTBUG-5804 Reviewed-by: denis
* Merge remote branch 'staging/4.6' into 4.6Simon Hausmann2009-11-181-2/+4
|\ | | | | | | | | Conflicts: configure.exe
| * doc: Clarified function of setLayoutDirection()Martin Smith2009-11-171-2/+4
| | | | | | | | Task-number: QTBUG-5432
* | Merge remote branch 'mainline/4.6' into 4.6Oswald Buddenhagen2009-11-171-9/+12
|\ \ | |/
| * Fix input method support on widgets that have a focus proxy set.Simon Hausmann2009-11-131-9/+12
| | | | | | | | | | | | | | | | | | When enabling/disabling a widget or changing its InputMethodEnabled attribute, use the focus proxy widget's input context for reset and for setting the focus widget on the input context. Task-number: QTBUG-5781 Reviewed-by: Denis
* | Merge remote branch 'mainline/4.6' into 4.6Oswald Buddenhagen2009-11-131-0/+11
|\ \ | |/
| * Code in gui/* should be completely namespacedhjk2009-11-111-4/+5
| | | | | | | | And not rely on random QT_USE_NAMESPACE being pulled in from *.moc files.
| * Improvements to graphics effects API after review round.Samuel Rødal2009-11-111-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | * Get rid of QGraphicsEffectSource from the public API, instead add convenience functions in QGraphicsEffect. This way we commit to less API, and are free to introduce a customizable QGraphicsEffectSource in a future release. * Move PixmapPadMode into QGraphicsEffect and tweak the names of the enum values. * Make QGraphicsBlurEffect::BlurHint into a bit flag, for extensibility. Reviewed-by: Bjørn Erik Nilsen
| * Doc: Added an example to demonstrate the QWebElement class.David Boddie2009-11-091-0/+11
| | | | | | | | Reviewed-by: Trust Me
* | doc change: remove duplicate entry in "see also" and stray focusWidget.Christian Kamm2009-11-111-2/+1
| | | | | | | | Reviewed-by: owolff
* | Merge branch 'tools-team/4.6' (early part) into 4.6Oswald Buddenhagen2009-11-101-4/+5
|\ \ | | | | | | | | | | | | Conflicts: src/corelib/tools/qscopedpointer.h
| * | Code in gui/* should be completely namespacedhjk2009-11-091-4/+5
| | | | | | | | | | | | And not rely on random QT_USE_NAMESPACE being pulled in from *.moc files.
* | | Improvements to graphics effects API after review round.Samuel Rødal2009-11-101-5/+5
| |/ |/| | | | | | | | | | | | | | | | | | | | | * Get rid of QGraphicsEffectSource from the public API, instead add convenience functions in QGraphicsEffect. This way we commit to less API, and are free to introduce a customizable QGraphicsEffectSource in a future release. * Move PixmapPadMode into QGraphicsEffect and tweak the names of the enum values. * Make QGraphicsBlurEffect::BlurHint into a bit flag, for extensibility. Reviewed-by: Bjørn Erik Nilsen
* | Doc: typo fixedJoerg Bornemann2009-11-091-1/+1
|/ | | | Reviewed-by: TrustMe
* Fixed uninitialized background artifacts in QWidget::render.Samuel Rødal2009-11-061-2/+1
| | | | | | | | | We need to use isOpaque to check whether the widget has an opaque background, it's not enough to just check the palette (it doesn't check Qt::NoSystemBackground for example). Task-number: QTBUG-5012 Reviewed-by: Gunnar Sletta
* Add QT_NO_GRAPHICSEFFECTJørgen Lind2009-11-041-1/+18
| | | | | | | It depends on QT_NO_GRAPHICSVIEW for now, but it is possible to remove this dependency. Reviewed-by: paul
* Merge commit '51c9b68' into 4.6Morten Johan Sørvig2009-11-041-6/+7
|\ | | | | | | | | | | Conflicts: dist/changes-4.6.0 src/gui/kernel/qevent.h
| * Gesture api review.Denis Dzyubenko2009-11-031-4/+4
| | | | | | | | | | | | Changes to the gesture api after the review. Reviewed-by: Jasmin Blanchette
| * Implemented pinch gesture recognizer.Denis Dzyubenko2009-11-031-0/+1
| | | | | | | | Reviewed-by: trustme
| * Added QGraphicsObject::ungrabGesture()Denis Dzyubenko2009-11-031-2/+2
| | | | | | | | | | | | | | Oops, apparently we forgot to add a function for unsubscribing a graphics object from a gesture. Fixing it now. Reviewed-by: trustme
| * Merge branch '4.6' of git@scm.dev.nokia.troll.no:qt/qt-platform-team into 4.6Bradley T. Hughes2009-10-301-0/+16
| |\
* | \ Merge commit 'origin/4.6' into featureJørgen Lind2009-11-021-15/+41
|\ \ \
| * \ \ Merge commit '8c4edbd04f350294462fd689748de2dd7cc84d47' into 4.6-upstreamBradley T. Hughes2009-10-301-0/+16
| |\ \ \ | | | |/ | | |/|
| | * | Add QWidget::ungrabGestureThomas Zander2009-10-261-0/+16
| | | | | | | | | | | | | | | | Reviewed-by: Denis Dzyubenko
| * | | Merge commit 'widget/4.6' into origin/4.6Olivier Goffart2009-10-301-13/+9
| |\ \ \ | | |_|/ | |/| | | | | | | | | | Conflicts: src/gui/effects/qgraphicseffect.cpp
| | * | Wrong caching of opaque children in QWidget.Bjørn Erik Nilsen2009-10-281-13/+9
| | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The opaque children cache was clipped to all the ancestors up to the top-level, which means whenever a widget changes geometry all the children must be invalidated. However, the bug was that we didn't invalidate the children, and that is of course slow so we don't want to do it either. A better solution is to only clip the children cache to the widget itself (widget->rect() instead of widget->clipRect()), and we can perfectly do this because the region we subtract the opaque children from is already inside the clipRect(). Auto-test included. Task-number: QTBUG-4245 (related to)
| * | Options on how to get a pixmap from an effect sourceGunnar Sletta2009-10-271-2/+16
| |/ | | | | | | | | | | Usable for future optimizations. Reviewed-by: Samuel
* | Fix GRAPHICSVIEWJørgen Lind2009-10-291-11/+29
| | | | | | | | Reviewed-by: tom
* | Fix LIBRARY and ICONJørgen Lind2009-10-291-0/+12
|/ | | | | | However, compiling with QT_NO_ICON will still not work :( Reviewed-by: tom
* Merge branch '4.5' into 4.6Thiago Macieira2009-10-231-1/+1
|\
| * QWidget painting regression on Windows.Bjørn Erik Nilsen2009-10-221-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem occurred on Windows due to a call to repaint() on a top-level window from setDisabledStyle() in qwidget.cpp. This function is called whenever a window is blocking. In this particular case the children of the repainted window are opaque, and should therefore not be repainted, which also means that the top-level have to subtract the region of the opaque children when filling the background. This region is cached, and the problem was that the cached region was wrong. It was wrong because it was not invalidated properly. Task: QTBUG-4245 Reviewed-by: Paul
| * Update license headers again.Jason McDonald2009-09-081-4/+4
| | | | | | | | Reviewed-by: Trust Me
* | Merge branch '4.6' of git@scm.dev.nokia.troll.no:qt/qt into 4.6Gunnar Sletta2009-10-231-19/+7
|\ \
| * \ Merge branch 'qlayout-make_adjustSize_better' into 4.6Jan-Arve Sæther2009-10-201-0/+4
| |\ \
| | * | Make adjustSize work even if there is a pending LayoutRequest event.Jan-Arve Sæther2009-10-201-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The original report was that the customer did resize(main.sizeHint()) instead of the main.adjustSize(); Note that resize(main.sizeHint() still does not work. However, calling main.adjustSize() should now do what the original reporter wanted. The problem was that the resize did not work, because at the point of the resize the minimumHeight of main was still 22 (8+6+8), and we tried to resize it with a new height of 10. The resize would bound the height up to 22, and the main widget would then get a size of (200x22). The reason why it still had a minimumHeight of 22 was that it was the minimumSize of the previous layout configuration. Unfortunately the new minimumSize of the widget hadn't been updated yet because there was a LayoutRequest event in the queue that hadn't been processed yet. (This LayoutRequest was triggered by that we called invalidate() from hide()). Thus, processing the event queue immediately after the hide() could also have been a workaround for this issue. There is no really good fix for this issue (and it does not seem to be a common problem) without introducing a risk for regressions. Due to that we therefore decided to provide a fix in QWidget::adjustSize(). Reviewed-by: paul
| * | | Merge branch '4.6' of git@scm.dev.nokia.troll.no:qt/qt into 4.6Alexis Menard2009-10-201-5/+25
| |\ \ \
| * | | | QToolButton popup menu is shown at wrong position when embedded in aAlexis Menard2009-10-201-19/+3
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | QGraphicsView. The main problem here is that QWidget assume that they are in the screen somewhere, which means inside the available geometry provided by QDesktopWidget. But in QGraphicsView the button can be in a position that is way bigger than the screen resolution. Lot of widgets make this assumption when positionning subpopups or submenus. Instead of applying the same code on tons of QWidgets, it's better to have an helper function in desktop widget which catch this case. It's not pretty (since it has nothing to do with QDesktopWidget) but we don't have better solution. Task-number:QTBUG-3822 Reviewed-by:brad
* | | | Added caching of graphics effect source pixmaps to speed up effects.Samuel Rødal2009-10-221-0/+22
| |/ / |/| | | | | | | | | | | | | | | | | If an effect is applied repeatedly on the same source, just with varying parameters, we can save a lot by caching the source pixmaps. Reviewed-by: Bjørn Erik Nilsen
* | | Merge branch '4.6' of git@scm.dev.nokia.troll.no:qt/qt into 4.6Gunnar Sletta2009-10-191-2/+38
|\ \ \
| * \ \ Merge commit 'origin/4.6' into mmfphononFrans Englich2009-10-151-2/+18
| |\ \ \ | | |/ / | | | | | | | | | | | | | | | | Conflicts: src/corelib/kernel/qcoreevent.cpp src/corelib/kernel/qcoreevent.h