summaryrefslogtreecommitdiffstats
path: root/src/gui
Commit message (Collapse)AuthorAgeFilesLines
* Compile fix on Linux.hjk2009-08-103-16/+7
| | | | | | | Reviewed-by: brad The declaration of getQApplicationPrivateInternal was only available as 'friend' on Q_WS_WIN.
* Doc: Fix qdoc warningsVolker Hilsheimer2009-08-101-1/+1
|
* Removed unused member in QApplicationPrivateBradley T. Hughes2009-08-101-1/+0
| | | | The appAllTouchPoints variable isn't used on Windows, remove it.
* Compile fix with namespaceshjk2009-08-102-0/+7
|
* Implemented QPinchGesture.Denis Dzyubenko2009-08-107-27/+316
| | | | | | | | | | | Added a new standard gesture, which is implemented using a native zoom and rotate gestures on Windows and with a direct touch event handling on other platforms. Improved pan support - we subscribe to native pan gesture only when it's really needed, and we pass proper flags for single finger horizontal/vertical panning. Reviewed-by: Richard Moe Gustavsen
* Made the QGesture::reset function protected.Denis Dzyubenko2009-08-102-3/+4
| | | | | | | By default the QGesture::reset function is protected, and it can be made public in the derived class if necessary. Reviewed-by: trustme
* Fix default QWidget size on X servers with XineramaBradley T. Hughes2009-08-101-0/+7
| | | | | | | The default widget size is normally calculated from the root window size, but when running on an X server with Xinerama enabled, the root window spans all screens, making the widget far to large. Use the default screen's size instead to give the widget a size that should fit on a single screen.
* 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
* QItemSelectionModel did not send selectionChanged signal when deleting an itemGabriel de Dietrich2009-08-072-1/+23
| | | | | | | | | in a tree-like model with one of its grand-children being selected. Added recursive deselection for the model. Task-number: 232634 Reviewed-by: thierry
* 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>
* Don't crash if we are drawing an empty image.Jan-Arve Sæther2009-08-071-0/+3
| | | | Reviewed-by: gunnar
* Doc - Removing trailing whitespacesKavindra Devi Palaraja2009-08-071-7/+7
| | | | Reviewed-By: TrustMe
* Doc - Improving the documentation for QListWidget and QListWidgetItemKavindra Devi Palaraja2009-08-071-218/+228
| | | | Reviewed-By: TrustMe
* Refactor the code that reads the KDE config in one fileOlivier Goffart2009-08-077-189/+297
| | | | | | | | | | | Move the code out of qapplication_x11.cpp, and qcommonstyle.cpp to qkde.cpp into the QKde namespace. This removes few of the code duplication, and is much cleaner. This will also let us install hook easily later. Reviewed-by: Jens Bache-Wiig
* QDockWidget: Make visibilityChanged more accurateThierry Bastian2009-08-072-2/+2
| | | | Task-number: 258459
* Fixes: QComboBox keyboard search not working properly when current index is -1Olivier Goffart2009-08-071-1/+1
| | | | | | | | If the current index is invalid, start would be (0,0) but would be skiped Task-number: 220195 Reviewed-by: thierry
* 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
* build fix for mingwThierry Bastian2009-08-061-0/+1
| | | | getQApplicationPrivateInternal was not declared
* Fix compile on WindowsJens Bache-Wiig2009-08-061-1/+1
| | | | Reviewed-by: jesper
* Cocoa: Add support for native gesturesRichard Moe Gustavsen2009-08-062-13/+51
| | | | Cocoa: Add support for native gestures
* Fix warnings on MSVCThierry Bastian2009-08-061-1/+1
|
* Fix test failure in tst_QDateTimeEdit::task118867Eskil Abrahamsen Blomfeldt2009-08-061-1/+1
| | | | | | | setCursorPosition() should be able to set the cursor at the end of the string. This is a copy-paste error made when refactoring QLineEdit. Reviewed-by: Gunnar
* Make sure cursorPositionChanged is emitted when cursor position changesEskil Abrahamsen Blomfeldt2009-08-061-0/+1
| | | | | | | | | | | When selecting the text and setting the cursor position, we need to emit the cursorPositionChanged signal. This seems to be a copy-paste error from refactoring QLineEdit, as the function call is there in the original version of setSelection(). The effect was two test breakages in tst_QDateTimeEdit, because the section and cursor position of the QDateTimeEdit would be out of sync. Reviewed-by: Gunnar
* QMenuBar: we can't test the action geometries when it is nativeThierry Bastian2009-08-061-0/+3
|
* QStandardItem::takeRow() would crash when it had no columns.Gabriel de Dietrich2009-08-061-8/+10
| | | | Reviewed-by: olivier
* Make sure QWidget::setStyle() relayouts its children.Jan-Arve Sæther2009-08-061-1/+3
| | | | | | | | | | | | Changing a style on a widget should invalidate the widget's layout, since the layouts spacings and margins may depend on the style. One optimization could be to check to see if the spacing and margins have changed due to the style change, but the old style is not available in changeEvent, so we'll keep it simple for now. RevBy: paul Task: 256986
* QMenu: small little code simplificationThierry Bastian2009-08-061-12/+5
| | | | Reviewed-by: trustme
* Fix QMacStyle subControlRect()-reporting for CC_SpinBoxTor Arne Vestbø2009-08-061-3/+9
| | | | | | | | | The mac style ignored the QAbstractSpinBox::NoButtons flag for the SC_SpinBoxEditField sub-control, effectivly always making room for the spinner buttons. Now it's in line with both the Cleanlooks style and the Windows (common) style. Reviewed-by: Jens Bache-Wiig <jbache@trolltech.com>
* QMenu could return wrong geometries for its actionsThierry Bastian2009-08-061-0/+2
| | | | | We needed to call ensurePolished before updating the action rects.
* Faster quaternion multiplications.Ariya Hidayat2009-08-061-18/+11
| | | | | | | | | | | | | Use the known factorization trick to speed-up quaternion multiplication. Now we need only 9 floating-point multiplications, instead of 16 (but at the cost of extra additions and subtractions). Callgrind shows that the function now takes 299 instructions instead of 318 instructions, which is not a big win. However I assume the speed-up has a better effect for mobile CPU, where multiplications are more expensive. Reviewed-by: Rhys Weatherley
* Compile fix for gestures.Denis Dzyubenko2009-08-061-5/+4
| | | | Reviewed-by: trustme
* Support _NET_WORKAREA on Xinerama setups in QDesktopWidgetBradley T. Hughes2009-08-061-8/+18
| | | | | | | Instead of ignoring _NET_WORKAREA, merge it with each screen geometry to give a meaningful availableGeometry() for all screens. Reviewed-by: denis
* Fixes a regression in qwidget when setting a large minimum size.Denis Dzyubenko2009-08-061-9/+9
| | | | | | | | | Setting a minimum size to a value that is larger then the biggest allowed widget size, we should costrain the widget to that max allowed size as we did before. Change 6a2621b6832dbdd349f77cf1f3242b4a6ba3c740 broke it. Reviewed-by: Bradley T. Hughes
* Small fix for native gestures on windows.Denis Dzyubenko2009-08-061-7/+2
| | | | | | We should close the gestureinfo handle only we managed to open successfully. Reviewed-by: trustme
* Enable pan gesture on all QAbstractScrollArea-based widgets.Denis Dzyubenko2009-08-067-29/+40
| | | | | | | | | Two-finger panning will work on all QAbstractScrollArea based widgets, however single-finger panning will be enabled only on some special widgets that always wants it - for example we don't want it on QGraphicsView, and we might want it on itemviews *sometimes*. Reviewed-by: trustme
* Changed setting state in a QGestureDenis Dzyubenko2009-08-064-40/+55
| | | | | | | | | | | | Instead of having a protected setter for the state and forcing the application developer to emit signals manually (which leads to misunderstanding - i.e. if the started() signal should be emitted only once, or of the triggered() signal should be emitted before the finished() signal, etc). So I've added an protected updateState(state) function that sets the internal state and emits appropriate signals depending on the old and new states. Reviewed-by: Volker Hilsheimer Reviewed-by: Richard Moe Gustavsen
* Rearranged the gesture code a bit for future native gestures on Windows.Denis Dzyubenko2009-08-069-45/+80
| | | | | | | | Moved the code that subscribes to native gestures on Windows to a private function in QWidget which will check which gestures the widget is subscribed to and enable native gestures as requested. Reviewed-by: trustme
* Fix build for mingwThierry Bastian2009-08-061-1/+2
| | | | | Unfortunately mingw doesn't know about the IFileDialog interface. So it might have issues on Vista with a file dialog with search enabled.
* Fixed crash in tst_qitemview.Gabriel de Dietrich2009-08-061-1/+2
| | | | | | QAbstractItemViewPrivate::selectionModel may be null. Reviewed-by: olivier
* Merge commit 'origin/4.5'Rohan McGovern2009-08-063-6/+28
|\ | | | | | | | | | | | | | | Conflicts: src/gui/dialogs/qfiledialog.cpp src/gui/dialogs/qfiledialog_win.cpp tests/auto/qicoimageformat/tst_qicoimageformat.cpp tests/auto/qscriptqobject/qscriptqobject.pro
| * Fix a bug when activating HideNameFilterDetails on Windows filedialog.Alexis Menard2009-08-052-11/+19
| | | | | | | | | | | | | | | | | | | | The HideNameFilterDetails was not taken in account for windows file dialog. This patch fix that. For Windows Vista and later we use now the new COMMON_ITEM_DIALOG API (in master) where it add always the filter extension like *.txt so no point to take that flag in account. Task-number: None, during testing Reviewed-by: prasanth
| * Fixes hangup when pressing key in QListWidgetOlivier Goffart2009-08-051-0/+7
| | | | | | | | | | | | | | | | | | If there is severals matching items but all of them are disabled, it would have produced an infinite loop. Block the loop once we reach an already matched item. Task-number: 258949 Reviewed-by: Thierry
| * Cocoa: Menus show old selected values.Richard Moe Gustavsen2009-08-051-0/+6
| | | | | | | | | | | | | | | | | | | | We never told Cocoa that it needed to redraw the window view when a window was shown. This is implicit if the window is shown for the first time, but needs to be done explicit if you hide and show it again. Task-number: 254672 Reviewed-by: bnilsen
* | Make QLineEdit cursor blink againAlan Alpert2009-08-061-0/+3
| | | | | | | | | | | | | | Somehow forgot to hook up the blinking signal (in the new QLineControl) to QLineEdit. Reviewed-by: Trust Me
* | Compile Fix for QT_KEYPAD_NAVIGATIONAlan Alpert2009-08-067-11/+29
| |
* | ItemViews: make it possible for chekcable items to get partiallyCheckedThierry Bastian2009-08-052-2/+13
| | | | | | | | | | | | | | Previously it was only switching between checked and unchecked. Task-number: 259008 Reviewed-by: ogoffart
* | QTapAndHoldGesture is gone, remove referenceVolker Hilsheimer2009-08-051-1/+1
| |
* | Fixed setting a style shet on a QSpinBox to change the arrow possitionOlivier Goffart2009-08-051-4/+4
| | | | | | | | | | | | | | If you only set the position, of the button without setting a geometry, it did not work. Task-number: 259226
* | Fix regressions introduced by 31edb4d5a63b9b3c28cce1c4ca6eb99f62a09759Alexis Menard2009-08-052-5/+11
| | | | | | | | | | | | | | | | | | | | The commit 31edb4d5a63b9b3c28cce1c4ca6eb99f62a09759 introduced regressions in filters which breaks the mac native dialog, the non native dialog with HideNameFilterDetails activated. Task-number:259105 Reviewed-by:olivier Reviewed-by:prasanth