summaryrefslogtreecommitdiffstats
path: root/src/gui
Commit message (Collapse)AuthorAgeFilesLines
* Update license headers again.Jason McDonald2009-09-08981-3924/+3924
| | | | Reviewed-by: Trust Me
* Doc: keypad navigation is supported on Windows CEJoerg Bornemann2009-09-081-2/+10
| | | | Reviewed-by: thartman
* Fix pixel snow on the combo box popup on Snow Leopard.Morten Sorvig2009-09-041-0/+1
| | | | | | | | | On 10.5 and below the pixmap data bytes happened to be initialized by malloc, on 10.6 this is no longer the case. Revby: Gunnar Sletta <gunnar@trolltech.com> Similar to 28f94e1ef94f.
* Wizard background images incorrect in Snow Leopard.Prasanth Ullattil2009-09-041-0/+1
| | | | | | | We need to clear the QPixmap before the image is drawn using the CGContextDrawImage(). Reviewed-by: Norwegian Rock Cat
* Fix a regression with QListView::setRowHidden() when a root index is setAndy Shaw2009-09-041-4/+4
| | | | | | | | | When setRowHidden() was called after a root index was set then it would not actually hide the row, if a root index is not set then it worked fine. Task-number: 260879 Reviewed-by: Jan-Arve
* Fixed clipping of native style elements when raster is used on macGunnar Sletta2009-09-041-2/+6
| | | | Reviewed-by: Trond
* Merge branch '4.5' of git@scm.dev.nokia.troll.no:qt/qt into 4.5Jason McDonald2009-09-041-0/+6
|\
| * restoring a minimized window on Windows CE didn't workJoerg Bornemann2009-09-031-0/+6
| | | | | | | | | | | | | | | | | | After restoring a minimized window we only saw the window decoration. All content was missing. That's because we don't get a WM_SIZE message for restoring the window. We must react on WM_ACTIVATE in this case. Task-number: 260702 Reviewed-by: thartman
* | Pedantic fixes for license headers.Jason McDonald2009-09-041-0/+1
|/ | | | Reviewed-by: Trust Me
* unneeded Q_OS_WINCE checks removedJoerg Bornemann2009-09-031-5/+1
| | | | | | There's a big outer ifdef and we don't need these inner checks. Reviewed-by: thartman
* Add missing license headersJason McDonald2009-09-031-0/+3
| | | | Reviewed-by: Trust Me
* Update license headers.Jason McDonald2009-09-0210-30/+0
| | | | Reviewed-by: Trust Me
* Add license header to perl scripts.Jason McDonald2009-09-021-0/+40
| | | | Reviewed-by: Trust Me
* Remove obsolete copies of GPL.Jason McDonald2009-09-021-0/+41
| | | | Reviewed-by: Trust Me
* Made mouse wheel navigation skip disabled tabsStian Sandvik Thomassen2009-09-012-12/+16
| | | | | | | | Mouse wheel navigation should skip disabled tabs like keyboard navigation does. Task-number: 260568 Reviewed-by: Jens Bache-Wiig
* Merge branch '4.5' of git@scm.dev.nokia.troll.no:qt/qt into 4.5David Boddie2009-09-01979-12776/+12805
|\
| * Fix misformatted license headers.Jason McDonald2009-09-011-11/+8
| | | | | | | | Reviewed-by: Trust Me
| * Don't crash when convert Indexed8 without colortable to QPixmapGunnar Sletta2009-08-311-0/+6
| | | | | | | | | | | | | | | | This implicitly adds "grayscale" support for indexed 8, but only for the conversion. The alternative would be leave the pixels uninitialized which would be less nice... Reviewed-by: Samuel
| * Invalidate cached QVectorPath when QPainterPath changesGunnar Sletta2009-08-311-0/+2
| | | | | | | | Reviewed-by: Samuel
| * Update tech preview license header.Jason McDonald2009-08-31979-12727/+12727
| | | | | | | | Reviewed-by: Trust Me
| * Fixes: Crash when double-clicking a tab in a QTabBar with movable tabsOlivier Goffart2009-08-281-1/+2
| | | | | | | | | | | | This is a backport of commit 8ac7e81260 Reviewed-by: Peter Hartmann
| * Fix subControlRect of the Mac style for the QComboBoxBenjamin Poulain2009-08-251-3/+10
| | | | | | | | | | | | | | | | The subControlRect of the arrow and the listBoxPopup where assuming the widget rect is at the origin. Reviewed-by: Richard Moe Gustavsen Reviewed-by: Pierre Rossi
| * Fix QPlainTextEdit painting errorsmae2009-08-241-2/+3
| | | | | | | | | | | | | | | | With line wrapping enabled and very large text blocks, painting errors could occur. Reviewed-by: hjk (cherry picked from commit 82dba1d346a6f4a5d2602d930e0aed75c13bcafb)
| * Merge branch '4.5' of git@scm.dev.nokia.troll.no:qt/qt into 4.5Morten Sørvig2009-08-24979-1115/+1211
| |\
| | * Make assorted constructors follow good coding practiceKeith Isdale2009-08-244-14/+10
| | | | | | | | | | | | | | | | | | | | | Ensure that class members are initialized Moved some value assignment from constructor body into the the constructor's intializer list Reviewed-by: Jason McDonald
| | * Fix the size returned by QCommonStylePrivate::viewItemSize() for textBenjamin Poulain2009-08-211-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | The size of the text, computed in qreal, was rounded. If the decimal part of the size was < 0.5, a pixel was missing in the size returned. Reviewed-by: Samuel Rødal Reviewed-by: Olivier Goffart
| | * Fix the painting of QSpinBox on Mac when the buttons are disabledBenjamin Poulain2009-08-201-0/+1
| | | | | | | | | | | | | | | | | | | | | The edit area of the spinbox should take complete surface of the widget when the button symbol is QAbstractSpinBox::NoButtons. Reviewed-by: Richard Moe Gustavsen
| | * Fix the painting of QSpinBox on Mac when the buttons are disabledBenjamin Poulain2009-08-201-3/+8
| | | | | | | | | | | | | | | | | | | | | The edit area of the spinbox should take complete surface of the widget when the button symbol is QAbstractSpinBox::NoButtons. Reviewed-by: Richard Moe Gustavsen
| | * Fixed usage of the MITSHM extension for 16 bit X servers.Trond Kjernåsen2009-08-191-3/+6
| | | | | | | | | | | | | | | | | | | | | | | | The server color layout test was a bit to harsh, since it excluded 16 bit X11 servers with RGB layout. Task-number: 259846 Reviewed-by: Gunnar
| | * Fixed rounding error in fillRect() in the raster paint engineEskil Abrahamsen Blomfeldt2009-08-181-11/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem introduced by 7661126bc86ed105c02fd9b084ac5a91f12f10c4, which introduced always rounding up when converting the rectangle's coordinates to integers. This would e.g. cause off-by-one errors for the cursor in QTextDocument. Some code paths depended on the ceiling of the coordinates, and these have been reverted. Task-number: 257914 Reviewed-by: Samuel
| | * Fix regression in clip path calculation for QGraphicsWidget.Alexis Menard2009-08-181-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes a regression when computing the clip path for a QGraphicsWidget that clip its children to its shape. The clip path cache use the bounding rect which has a null width and height the very first time on a QGraphicsWidget. This might happen as well for any item that have a null width and height (e.g. QGraphicsRectItem before you set the rect). We should do better in mainline by refactoring this clip path cache and calling it in prepareGeometryChange which should be called when you update the shape and the boundingRect of the item. Do we really need also in 4.6/mainline the clip path as it is now? This should be investigate also. The auto-test cover the problem so we can use it after for refactoring the cached clip path. Task-number: 257232 Reviewed-by: andreas Reviewed-by: bnilsen
| * | Fix QCombobox popup flicker on OSMorten Sørvig2009-08-241-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | Don't disable updates when showing the popup. This was introduced by commit 5516c2165, the original bug in task 152840 is not reproducible on OS X. Task-number: Reviewed-by: Richard Moe Gustavsen
* | | Doc: Fixed broken links to renamed functions.David Boddie2009-09-011-4/+5
| |/ |/| | | | | Reviewed-by: Trust Me
* | fix WA_DontShowOnScreen bug on Windows CEJoerg Bornemann2009-08-171-1/+1
| | | | | | | | | | | | | | We must not retrieve the initial window geometry for WA_DontShowOnScreen widgets with GetClientRect. Reviewed-by: thartman
* | Document QAction::MenuRole not working on submenus.Norwegian Rock Cat2009-08-141-0/+5
| | | | | | | | | | | | | | We could do it or we couldn't. It's simply a judgement call and I think the comments in the task are a good argument for NOT doing it. Task-number: 227875
* | Fix the painting of QComboBox on Mac when the rect is not at the originBenjamin Poulain2009-08-141-42/+60
| | | | | | | | | | | | | | | | | | | | | | | | The style was assuming that the combo box is painted at (0,0). This is not the case when the painting is done in the delegate of an item view. The offset of the rect is now taken into account to paint the style. HIRect has been replaced by QRect when it make sense. Task-number: 00026815 Reviewed-by: Richard Moe Gustavsen
* | On Mac, hitTestComplexControl() return an incorrect value for comboboxBenjamin Poulain2009-08-141-2/+0
| | | | | | | | | | | | | | | | The function hitTestComplexControl() of the mac style returned SC_ComboBoxArrow when the point is not over an element of the widget. Task-number: 252857 Reviewed-by: Richard Moe Gustavsen
* | Fix crash/assert on Mac when painting "small" QPushButtons.Morten Sorvig2009-08-131-0/+7
| | | | | | | | | | | | | | | | | | A QPushButton with a height if (say) three pixels would cause HIThemeGetButtonContentBounds ot return a rect with dimentions {int_min, int_min, 0, 0}. Detect that case and return the button rect instead. Reviewed-by: Trust Me
* | Fix Menu icons are too large on CocoaDean Dettman2009-08-131-2/+2
| | | | | | | | | | | | | | | | The magic number 22 was based on windows sized icons, a size of 16 should be correct for mac Task-number: 259289 Reviewed-by: NRC
* | Wrapped the XInput include with an ifdef.Denis Dzyubenko2009-08-121-0/+4
| | | | | | | | | | | | | | | | That should fix compilation on platforms that do not have xinput headers installed. Reviewed-by: Thiago Macieira (cherry picked from commit 0a13188468997d6c3253db5b29f05a119945f131)
* | respect QAbstractSpinBox::NoButtons in windowsce / windowsmobile stylesJoerg Bornemann2009-08-122-1/+9
| | | | | | | | | | | | | | Code is adapted from QCommonStyle which handles this case for other styles. Reviewed-by: thartman
* | fix QTextFormat::doubleProperty where qreal is floatJoerg Bornemann2009-08-121-3/+4
| | | | | | | | | | | | | | | | This function was too strict. It returned 0 if the property wasn't of type QVariant::Double. Now it tests for QMetaType::Float too. Reviewed-by: kh1 Reviewed-by: mauricek
* | fix decoration of DontShowOnScreen widgets on Windows CEJoerg Bornemann2009-08-121-1/+1
| | | | | | | | | | | | | | | | Widgets with the WA_DontShowOnScreen attribute must not have a window decoration. Autotest: tst_QWidget::initialPosForDontShowOnScreenWidgets Reviewed-by: thartman
* | Revert "Frame property for QDateTimeEdit can be set independently of"Matthew Cattell2009-08-111-1/+0
| | | | | | | | | | | | This reverts commit 6844dea0cb583a86bc72e7f008720ab76deef040. added to wrong branch. should be in 4.6 but this was added to 4.5
* | Frame property for QDateTimeEdit can be set independently ofMatthew Cattell2009-08-111-0/+1
| | | | | | | | | | | | | | | | | | | | | | calendar popup A frame was always drawn around the QDateTimeEdit editor if a popup calendar had been set. QStyleOptionsComboBox options are being set in paintEvent and initialised from the properties of QStyleOptionsSpinBox but were missing the frame bool property. Now, if the user sets a frame on the QDateTimeEdit, this property will be consistent with setFrame() property of the QDateTimeEdit widget.
* | Update URL of online documentation.Jason McDonald2009-08-113-3/+3
| | | | | | | | Reviewed-by: Trust Me
* | Eliminate some mentions of Trolltech.Jason McDonald2009-08-112-12/+12
| | | | | | | | Reviewed-by: Trust Me
* | Qt's domain name is now qt.nokia.com.Jason McDonald2009-08-114-6/+6
| | | | | | | | Reviewed-by: Trust Me
* | Update license headers.Jason McDonald2009-08-11979-979/+979
| | | | | | | | Reviewed-by: Trust Me
* | Fix crash in QX11Data::xdndHandleEnter when XGetWindowProperty failsOctavian Voicu2009-08-061-6/+7
| | | | | | | | | | | | | | Task-number: 259143 Merge-request: 1119 Reviewed-by: Denis Dzyubenko <denis.dzyubenko@nokia.com>