summaryrefslogtreecommitdiffstats
path: root/src/gui
Commit message (Collapse)AuthorAgeFilesLines
* Implemented faster image transformation in the raster engine.Kim Motoyoshi Kalland2009-08-173-13/+664
| | | | | Task-number: 245650 Reviewed-by: Gunnar
* Doc - mentioned that if no QRegExp is set, or an empty string is set,Kavindra Devi Palaraja2009-08-171-3/+5
| | | | | | | | everything in the source model will be accepted. Task: 251308 Reviewed-By: Olivier Goffart
* Doc - some clean ups to QSortFilterProxyModel's documentationKavindra Devi Palaraja2009-08-171-89/+82
| | | | Reviewed-By: TrustMe
* Merge QGV delta from kinetic-declarativeui into master.Andreas Aardal Hanssen2009-08-179-11/+39
| | | | | | | | | | | | New flag: QGraphicsItem::ItemNegativeZStacksBehindParent, which makes it easy to toggle stack-behind based on the value of Z alone. Add interface initializations to QGV classes. Add a simple internal focus policy to QGraphicsItem to allow derived items to be focusable without allowing clickfocus. Reviewed-by: Alexis
* Fix a crash in the destruction of QListViewThierry Bastian2009-08-171-2/+4
|
* More coverity warnings removedThierry Bastian2009-08-173-12/+2
|
* qdoc: Fixed the bug that made reporting NOTIFY signals not work.Martin Smith2009-08-171-2/+3
| | | | | | | | | | The signal was being associated with a particular property, but in many classes, the NOTIFY signal applies to multiple properties. Added a new function to the PropertyNode class that adds the signal function without associating it with any property. Task-number: 259071
* QTextControl::print: fix coverity warningThierry Bastian2009-08-172-4/+3
| | | | | the test was wrong on the QPrinter pointer In addition, priv is never null
* remove QT_RASTER_PAINTENGINE and QT_RASTER_IMAGEENGINE defines as they areGunnar Sletta2009-08-175-82/+33
| | | | | | legacy and completely pointless... Reviewed-By: Eskil
* Fix coverity warningsThierry Bastian2009-08-175-9/+6
|
* QPaintDevice implemented in qpaintdevice.cpp. Saves duplicated codeGunnar Sletta2009-08-175-72/+69
| | | | Reviewed-by: Eskil
* Transforms do not obey AnchorUnderMouse with viewport margins setGabriel de Dietrich2009-08-171-2/+2
| | | | | | | | | | | | | setTransformationAnchor(QGraphicsView::AnchorUnderMouse) would not work properly if viewport margins were set. When centering the view in QGraphicsViewPrivate::centerView, the viewport margins were not being taken into account. Mapping from global cursor coordinates in the viewport instead of the view fixes the issue. Task-number: 255529 Reviewed-by: Olivier
* Better handling of qreal with QVariantThierry Bastian2009-08-175-11/+5
|
* Fixed coverity warningsThierry Bastian2009-08-176-9/+10
|
* Use LIBS_PRIVATE on Mac and X11.Thiago Macieira2009-08-179-10/+15
| | | | | | | | | | | | | | | | On the Mac, it means "-framework ApplicationServices -framework Carbon -framework AppKit" are no longer part of the default LIBS in Qt applications. This required a lot of fixes where we used Mac-specific code in Qt. On X11, it was very straightforward, because we apparently use very little of X11 outside QtGui. I haven't changed the Windows-specific LIBS paths, because I don't know how Windows behaves. Windows has DLLs, but it links to static "import" libraries. So is it static linking or dynamic linking? Reviewed-By: Marius Storm-Olsen
* qpdf: fix memory leak detected by coverityThierry Bastian2009-08-171-0/+3
|
* Doc: Mention that destroying an item that belongs to a QGraphicsScene is ↵Olivier Goffart2009-08-171-0/+3
| | | | | | | | | inneficient As the virtual functions (such as the boundingRect()) are not available anymore in the destructor, the view has to refresh everything. Reviewed-by: Alexis
* 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