summaryrefslogtreecommitdiffstats
path: root/src/gui
Commit message (Collapse)AuthorAgeFilesLines
* Doc: Fix links and silence qdoc warnings.Volker Hilsheimer2009-08-162-21/+22
|
* Avoid wrapping outside word boundaries in QTextDocument unless necessaryEskil Abrahamsen Blomfeldt2009-08-141-9/+10
| | | | | | | | | | | | | If you have a floating object which affects the width available to the text, we need to recalculate the width of the text line. In the code, the setLineWidth() call to do this would by default have WrapAnywhere as its wrap mode, even when this was not necessary. The code has now been moved so that WrapAnywhere is only used if we try to set the line width to match the available width and detect that the text is too wide (the natural text width exceeds the available space.) Task-number: 240325 Reviewed-by: Simon Hausmann
* QVariant: more work on avoinding conversion between float and doublesThierry Bastian2009-08-141-3/+2
| | | | we call QVariant::toReal instead of toDouble when needed
* Fixed Coverity defect CID 1528.Gabriel de Dietrich2009-08-141-1/+1
| | | | Reviewed-by: Olivier
* Removing some unused variables.Alessandro Portale2009-08-146-16/+0
|
* QCssParser: reordering initializers to match declarationThierry Bastian2009-08-141-1/+1
|
* Fixed coverity warningsThierry Bastian2009-08-1414-24/+24
| | | | | Some dead code removed Some member not initialized missing
* QVariant: added toFloat and toRealThierry Bastian2009-08-1412-37/+42
| | | | | | | | Made better use of qreal all over the place. We were previously using QVariant::toDouble a lot. That is triggering unnecessary conversions between float and double on embedded. Reviewed-by: ogoffart
* Cocoa: Fix several issues with the event dispatcherRichard Moe Gustavsen2009-08-146-193/+308
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Autotest: qcoreapplication, qapplication, qtimer qwidget_window, qwidget Issue 1: stacking order of modal windows was not working correctly. With this patch, we remove the need for rebuilding modal sessions all the time, and when we do, we rebuild them all in the correct order. Issue 2: When running the event processor manually (that is, just calling processEvents in a loop), we sometimes spendt 100% cpu if a window was pending to become modal. The reason was that we need to keep reposting the QCocoaRequestModal event until we could block the calling thread (that is, one of the exec flags was given to processEvents). With this patch, the need for posting QCocoaRequestModal is completly removed in favor of an 'interrupt' approach instead. Issue 3: If using Qt as a plugin, or just add widget to a native cocoa application, it would often lead to closing down the application. The reason is that the event dispatcher needs to restart [NSApp run] now and then. But this approach fails if Qt was not the code that started [NSApp run] in the first place. This patch removes the need to restart NSApp in this situation, at the cost of modal windows not beeing modal if Qt is not spinning the event dispatcher. Normal QDialog::exec etc will always work.
* QTextFormat: better use QVariant::userType over QVariant::typeThierry Bastian2009-08-141-15/+15
| | | | | it was even a bug when checking against QMetaType::Float because Float is a user type so it could never be true
* spelWarwick Allison2009-08-143-12/+12
|
* Fix coverity warningsThierry Bastian2009-08-134-7/+8
|
* Fix coverity warningsThierry Bastian2009-08-133-7/+2
| | | | | for unreachable code, break missing and uninitialized members in constructors
* Use the correct font for QLineEditPaul Olav Tvete2009-08-131-0/+1
| | | | | | | We don't get a FontChange event initially, so the control ended up with the default font instead. Reviewed-by: Andreas
* Fix focus proxy deletion bugs/crashes in QGraphicsItem.Andreas Aardal Hanssen2009-08-134-14/+24
| | | | | | | | | | | | | | | | | | | This change would have been much simpler if either QGraphicsItem inherited QObject, or if we had some similar QPointer-like class that supported QGraphicsItem. The issue is this: Each item can delegate another item to be its focus proxy. That item can be a parent or child, or something completely unrelated. Either of the two items can be deleted independently. The former solution was to store backpointers in a map in the scene. Problem is, the items may not be in a scene when this happens, they may be removed from the scene, and the items may be moved between two scenes. The bad part about this fix is that it adds another pointer to QGraphicsItemPrivate. Reviewed-by: Shane Kearns <shane.kearns@sosco.com>
* fix tab and hold for Windows CE and scrollbarsThomas Hartmann2009-08-131-0/+6
| | | | | Task-number: 258378 Reviewed-by: Maurice
* Compile with QT_KEYPAD_NAVIGATION definedAlan Alpert2009-08-131-3/+2
| | | | | | | Also, try not to regress in functionality (which the last compile fix did just a little) Reviewed-by: Thomas Hartmann
* Ugly round corners when no border is drawnGabriel de Dietrich2009-08-122-7/+14
| | | | | | | | | | | | | | | When specifying round corners with QStyleSheetStyle and no border-width specified, the round corners were not rendered with antialiasing. Furthermore, if border-width was set to 0, part of the border was rendered in discordance with CSS3. The background in now rendered directly instead of drawing a clipped rectangle. The actual border width is checked before rendering. A test has been added at tests/auto/uiloader/baseline/css_borderradius_allwidgets.ui Task-number: 230362 Reviewed-by: olivier
* fixing warnings for qreal=floatThomas Hartmann2009-08-121-1/+1
| | | | Reviewed-by: Joerg
* QGraphicsRotation and QGraphicsRotation3D are now merged into 1 classThierry Bastian2009-08-122-119/+94
| | | | | | | | You can now also set the axis following hte Qt::Axis enum Note: I'm not 100% sure about the maths in QGraphicsRotation::applyTo Feel free to fix it. Reviewed-by: ogoffart
* Mouse move events delivered toa blocked widget.Prasanth Ullattil2009-08-121-1/+1
| | | | | | | | On windows we were not checking whether the widgets receiving the mouse events are blocked by another modal widget or not. Task-number: 255912 Reviewed-by: Thierry Bastian
* 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
* usage of Q_OS_WINCE fixedJoerg Bornemann2009-08-121-2/+2
| | | | | | There's no QT_OS_WINCE define. Reviewed-by: mauricek
* Compile fix for Windows CE standard SDKThomas Hartmann2009-08-122-6/+8
| | | | | | Q_WS_SINCE_WM ifdefs were broken Reviewed-by: Joerg
* Replace some mentions of Trolltech with more appropriate terms.Jason McDonald2009-08-124-14/+14
| | | | Reviewed-by: Trust Me
* Update references to online documentation.Jason McDonald2009-08-122-2/+2
| | | | Reviewed-by: Trust Me
* Eliminate last mentions of "Qt Software".Jason McDonald2009-08-126-6/+6
| | | | Reviewed-by: Trust Me
* Update URL's to use new domain.Jason McDonald2009-08-124-6/+6
| | | | Reviewed-by: Trust Me
* Update contact URL in license headers.Jason McDonald2009-08-121034-1034/+1034
| | | | Reviewed-by: Trust Me
* QMenuBar does not respect the border-image stylesheet propertyGabriel de Dietrich2009-08-111-1/+16
| | | | | | | | | | | Added WA_StyledBackground to QMenuBar when using style sheets. This also implies that CE_PanelMenuBar (drawing only the menubar border) no longer needs to be drawn. Tested in uiloader/baselne/css_borderimage_allwidgets.ui. Task-number: 230363 Reviewed-by: olivier
* Optimize qt_format_text test operations: try not to detachOswald Buddenhagen2009-08-111-40/+28
| | | | Reviewed-by: Oswald Buddenhagen
* Change QFontMetrics::width to return the width of the longest variant if the ↵Olivier Goffart2009-08-111-2/+4
| | | | | | | string is a multi-length one Task-number: QT-10 Reviewed-by: Oswald Buddenhagen
* Make QFontMetrics::elidedText aware of multi-length stringsOlivier Goffart2009-08-111-2/+15
| | | | | Reviewed-by: Oswald Buddenhagen Task-number: QT-10
* Add the Qt::TextLongestVariant flag so QFontMetrics::size returns the size ↵Olivier Goffart2009-08-112-2/+3
| | | | | | | | | of the biggest string In case the strings contains multiple strings separated by \x9c Reviewed-by: Oswald Buddenhagen Task-number: QT-10
* Handle multi-length strings in the low-level formatting codeOlivier Goffart2009-08-111-13/+21
| | | | | | | | | | | Patch originally from Oswald on Jira QT-10, with few a modifications. If a string contains multiple variants sorted by decreasing length, separated by \x9c, it will try to paint the longest variant which fits into the bounding box. Reviewed-by: Oswald Buddenhagen Task-Number: QT-10
* fix QTextFormat::doubleProperty where qreal is floatJoerg Bornemann2009-08-111-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 warnings for the qreal == float caseJoerg Bornemann2009-08-112-11/+11
| | | | Reviewed-by: mauricek
* QWidget::isHidden documentation clarification.Jocelyn Turcotte2009-08-111-3/+6
| | | | Reviewed-by: Kavindra
* QDateTimeEdit: setFrame property is respected when a popup calendarMatthew Cattell2009-08-111-0/+1
| | | | | | | | | | has been set. The hasFrame() or frame property of the QStyleOptionSpinBox was not being copiedthrough to the QStyleOptionComboBox inside the paintEvent method if a calendarPopup had been enabled. Task-number:259510 Reviewed-by:Jens Bache-Wiig
* Merge commit 'remotes/wm65/wm65'Thomas Hartmann2009-08-113-368/+4127
|\
| * Cleanup of Windows Mobile StyleThomas Hartmann2009-08-111-76/+61
| | | | | | | | Reviewed-by: Maurice
| * activate wm65 style only for wm65Thomas Hartmann2009-08-111-1/+1
| |
| * adding qt_wince_is_windows_mobile_65()Thomas Hartmann2009-08-111-0/+25
| |
| * using proxy()Thomas Hartmann2009-08-111-103/+103
| |
| * Adding Windows Mobile 6.5 styleThomas Hartmann2009-08-112-271/+4020
| |
* | Merge commit 'remotes/wm65/wm65'Thomas Hartmann2009-08-111-0/+1
|\ \ | |/ | | | | | | Conflicts: src/gui/dialogs/qfiledialog_win.cpp
| * Fixes build for Windows MobileThomas Hartmann2009-07-201-1/+0
| | | | | | | | Reviewed-by: Joerg
* | Merge branch '4.5'Thiago Macieira2009-08-111-6/+7
|\ \ | | | | | | | | | | | | | | | Conflicts: configure tests/auto/moc/tst_moc.cpp
| * | 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>
* | | QTableView with swapped headers PageUp/PageDown bugGabriel de Dietrich2009-08-111-9/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | QTableView with header-swapped rows wouldn't scroll correctly when PageUp or PageDown pressed. Simplified calculation for next currentIndex provided in QTableView::moveCursor. Task-number: 259308 Reviewed-by: olivier