summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Doc: document reimplementations of internal functions as internal.Volker Hilsheimer2009-07-214-8/+8
|
* Fixed opacity bug in the GL2 paint engine.Kim Motoyoshi Kalland2009-07-211-0/+1
| | | | | | | When premultiplying a color with the opacity, the color's alpha channel was not set correcly. Reviewed-by: Tom
* Fixed gradient bug in the GL2 paint engine.Kim Motoyoshi Kalland2009-07-211-3/+3
| | | | | | | Texture filtering was set before binding the texture, so the gradient spread was not set correctly. Reviewed-by: Tom
* Corrected the value of GL_MAX_SAMPLES_EXT.Kim Motoyoshi Kalland2009-07-211-1/+1
| | | | Reviewed-by: Tom
* Fixed crash in the GL2 engine's texture glyph cache.Kim Motoyoshi Kalland2009-07-211-4/+12
| | | | Reviewed-by: Tom
* Used QGLContextResource for the gradient cache in the GL2 paint engine.Kim Motoyoshi Kalland2009-07-213-30/+31
| | | | Reviewed-by: Tom
* Fixed GL2 engine shader manager to work with more than one context.Kim Motoyoshi Kalland2009-07-216-63/+228
| | | | | | | | | | | | | | | | | | I added a QGLContextResource class which can be used internally in Qt for sharing resources between contexts. The QGLContextResource is a hash map where the context is used as 'key', and the resource is the 'value'. All the sharing contexts point to the same resource, and the resource is automatically deleted when it is not referenced any more. Now, the shader manager uses the QGLContextResource class. I also added a pointer to a struct in the QGLContextPrivate class. The struct is shared between all the sharing contexts and is deleted automatically. Currently, the struct only contains the resolved OpenGL function pointers. The shared context register code has been simplified. Reviewed-by: Tom
* Fixed inheritence of SVG 'use' element fill attributes.Kim Motoyoshi Kalland2009-07-213-28/+36
| | | | | | | | | Inheritence of fill attributes was implemented by copying attributes from the parent node. This approach wouldn't work if the node is referenced by a 'use' element. Now, only the fill attributes which have been explicitly set are applied on the painter while drawing. Reviewed-by: Tor Arne
* Merge the memcpy with the lowercasing and the non-ASCII detection.Thiago Macieira2009-07-211-13/+17
| | | | | This gives a 5% improvement in performance by avoiding iterating over the contents more than once.
* Slight performance improvement by caching the label size.Thiago Macieira2009-07-211-7/+14
|
* Minor performance improvements in nameprepping.Thiago Macieira2009-07-212-25/+28
| | | | | | Avoid calling functions that may have other side effects, like QString::utf16(). Use pointers whenever possible when iterating over the string.
* Fix bug in locating non-lowercase TLDs: must lowercase.Thiago Macieira2009-07-211-2/+6
| | | | | Use qt_nameprep after all since it's extremely fast for ASCII only and it does in-place replacement.
* One more improvement in QUrl: avoid an extra lowercasing step.Thiago Macieira2009-07-211-17/+13
| | | | | | | Since we're going to do nameprepping anyways, avoid the lowercasing step at the function entry (and thus, one extra temporary). The nameprepping step is also faster than QString::toLower for the ASCII case.
* Improve performance in QUrl parsing by doing in-line operations.Thiago Macieira2009-07-211-31/+32
| | | | | | Unfortunately, I can't do it all inline because the punycode encoding and decoding requires reading the source several times. (Maybe the decoding can be done with some effort in the future)
* Change qt_nameprep to do in-line namepreppingThiago Macieira2009-07-211-26/+24
| | | | This will allow to do less allocations in qt_ACE_do.
* Add qt_string_normalize to do in-place Unicode normalization.Thiago Macieira2009-07-212-37/+37
| | | | | This way, we can improve QUrl parsing performance by avoiding unnecessary copies.
* Implement strict STD3 checking of hostnames in URLs.Thiago Macieira2009-07-211-69/+172
| | | | | | | | | | | | | | | Made the toPunycodeHelper function write to a QString. Renamed qt_from_ACE to qt_ACE_do to indicate what it actually does. Added the STD3 rules for hostnames, forcing hostnames to have to strictly comply to STD3. Also, execute nameprep in the correct order (before trying to encode to Punycode). Validate hostnames when QUrlPrivate::canonicalHost() called, including validation of IP Literals. Validation of IPv4 is missing. Adapted other functions to use qt_ACE_do, notably QUrl::toAce (avoid code duplication).
* Fix memory leak with wrapped eventsKent Hansen2009-07-211-0/+3
| | | | Reviewed-by: Eskil Abrahamsen Blomfeldt
* Doc: More docu for the QPixmapCache::KeyVolker Hilsheimer2009-07-211-1/+13
|
* Use the configure script to enable/disable QtConcurrent and QtXmlPatternsThiago Macieira2009-07-211-18/+5
| | | | | | | | Using qglobal.h and checking the compiler version with the preprocessor has the side-effect that moc won't generate proper code since it doesn't know about the compiler version. Enable both modules under Sun CC 5.9 and IBM xlC 7.0.
* Fix compilation with xlC 7: the compiler tries to expand ↵Thiago Macieira2009-07-212-14/+14
| | | | | | | | | qIsForwardIteratorEnd with QString This is used in other places too, so move the definition to the header. Reviewed-By: Trust Me
* Fix compilation with xlC 7: the compiler doesn't find statics in template ↵Thiago Macieira2009-07-211-1/+2
| | | | | | | | | | expansions. parser/qmaintainingreader.cpp", line 175.40: 1540-0274 (S) The name lookup for "formatKeyword" did not find a declaration. parser/qmaintainingreader.cpp", line 175.40: 1540-1292 (I) Static declarations are not considered for a function call if the function is not qualified. Reviewed-By: Peter Hartmann Reviewed-By: Frans Englich
* Fix compilation of QHash<QUrl, ...> with xlC 7.Thiago Macieira2009-07-211-11/+13
| | | | | | | Make sure that the function is found properly. It can't be static, for whatever reason. Reviewed-By: Peter Hartmann
* xlC 7 cannot compile QtConcurrent with these templates hereThiago Macieira2009-07-211-1/+1
|
* Fix compilation with xlC 7: the cast is necessary to get delete[] to ↵Thiago Macieira2009-07-211-1/+1
| | | | | | understand what to delete Reviewed-By: Trust Me
* Doc: Updated link and a bit more documentation forVolker Hilsheimer2009-07-212-10/+26
| | | | QWebSecurityOrigin and QWebDatabase.
* Fix warning with Sun CC 5.9 and xlC 7: no new types inside anonymous unions.Thiago Macieira2009-07-211-5/+6
| | | | | | | | These compilers compile this code fine, but this warning shows up *everywhere* when building Qt (or used to, since qstringlist.h included qstringmatcher.h). Move the structure definition to outside the union.
* There's no need to include qstringmatcher.h in qstringlist.hThiago Macieira2009-07-212-1/+1
|
* Disable visibility on CC 5.9 since the compiler doesn't like itThiago Macieira2009-07-211-1/+2
|
* Remove unused gesture related defines and structuresBradley T. Hughes2009-07-212-101/+56
| | | | | We don't use all of them. I also changed the typedefs for the touch related functions to follow the same naming convention.
* Compile with QT_NO_PROCESS or QT_NO_SETTINGSHarald Fernengel2009-07-211-3/+3
| | | | | | Feature define logic was wrong Reviewed-by: Robert Griebl
* Try to express ourselves better in the explanation for the curve types.Jan-Arve Sæther2009-07-211-81/+84
| | | | | Don't use easing too much. Also add an explanation of what "ease in" and "ease out" is.
* Doc fixes to QEasingCurve.Jan-Arve Sæther2009-07-211-7/+8
| | | | | | | | | | | * Remove some references to QAnimation. QAnimation does not exist. * Clarify the documentation for QEasingCurve::Linear. (avoid "tweening" and "no easing") * In the diagrams, change "ease" to "value". * Change the diagram generation code to use antialiased drawing (just as we do in the easingcurve example) Reviewed-by: leo
* Fix compiler warning about initialization orderhjk2009-07-211-2/+2
| | | | reviewed-by: Kim Motoyoshi Kalland
* Compile fix with namespaced Qthjk2009-07-213-0/+12
|
* Fixes memory leak of global data.Denis Dzyubenko2009-07-211-1/+5
| | | | | Task-number: related to 253013 Reviewed-by: João Abecasis
* LayeredPane should not be reported as an IP address edit control to MSAAJan-Arve Sæther2009-07-212-0/+3
| | | | | | | | | | | | | The reason was that ROLE_SYSTEM_IPADDRESS = 0x3F has been added to MSAA at one point in time. (Can be found in recent versions of OleAcc.idl). Since the MSAA bridge used a direct mapping between QAccessible::Role and MSAA roles this lead to that LayeredPane was interpreted to be an IP address edit control, affecting QStackedWidget (and some relatives). This caused some screen readers to be confused when the same accessible interface had children such as push buttons. I also discussed this change with Harald. Task-number: 257958
* Doc: mark QImage/QPixmap alphaChannel and setAlphaChannel as obsolete.Volker Hilsheimer2009-07-212-41/+38
| | | | | | | They are expensive - which is why QImage::setALphaChannel had been obsoleted in Qt 4.5. Reviewed-by: Gunnar
* Workaround for transacted, locked and inaccesible filesRitt Konstantin2009-07-201-0/+88
| | | | | | | | | | | wich can not be stat'ed in a natural way. FindFirstFile solves this problem. Task-number: 167099 Task-number: 189202 Merge-request: 880 Reviewed-by: Joerg Bornemann <joerg.bornemann@trolltech.com>
* Doc: fix links between QGraphicsItem and QTouchEventVolker Hilsheimer2009-07-202-7/+7
|
* Doc: fix formatting of lists.Volker Hilsheimer2009-07-201-12/+17
|
* Doc: not an overloadVolker Hilsheimer2009-07-201-2/+0
|
* Partial fix for Qt issue #244648 - QtIcoHandler does not support large & ↵miniak2009-07-201-0/+12
| | | | | | | Vista PNG format icons Merge-request: 431 Reviewed-by: Joerg Bornemann <joerg.bornemann@trolltech.com>
* Return selectedFilter in QGtkStyle file dialogsLukáš Lalinský2009-07-202-5/+27
| | | | | | | | | | | Function setupGtkFileChooser is modified to optionally build a map of GtkFileFilters. File dialog methods then use gtk_file_chooser_get_filename to get the current GtkFileFilter and look it up in the map produced by setupGtkFileChooser. This value is then saved in the selectedFilter pointer. Merge-request: 846 Reviewed-by: Jens Bache-Wiig <jbache@trolltech.com>
* Doc: clarify relevance for QGraphicsItem and add a few \saVolker Hilsheimer2009-07-201-26/+84
|
* Doc: small improvementsVolker Hilsheimer2009-07-202-6/+21
|
* Doc: Make QAction::priority/Priority documentation clearerVolker Hilsheimer2009-07-201-9/+9
|
* Fixed includes in the gestures public headers.Denis Dzyubenko2009-07-202-10/+9
| | | | Reviewed-by: trustme
* Fixes build for Windows MobileThomas Hartmann2009-07-201-1/+0
| | | | Reviewed-by: Joerg
* doc: Changed several \reimp to \internalMartin Smith2009-07-208-22/+8
| | | | The base function was \internal pr private.