summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
...
| | * | make JIT construct objects of type QScriptObject, not JSC::JSObjectKent Hansen2009-08-261-0/+8
| | | | | | | | | | | | | | | | | | | | Commit 25e76959da84fe4c40f98cf32b7b8c69e5087681 changed it for the interpreter, this commit makes it work with the JIT enabled as well.
| | * | warn if QScriptValue::setScriptClass() is called on incompatible objectKent Hansen2009-08-261-1/+6
| | | |
| | * | doc: Add Graphics Effect images.Bjørn Erik Nilsen2009-08-261-3/+17
| | | |
| | * | Use QScopedPointer instead of homegrown smartptrAnders Bakken2009-08-261-30/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Since QScopedPointer can take a custom cleanup handler we can use this instead of the original QDirectFBPointer. Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
| | * | Missing ducumentation in QAbstractItemModelOlivier Goffart2009-08-261-0/+34
| | | |
| | * | reverting the definition of WINVER and _WIN32_WINNT in qglobal.hJoerg Bornemann2009-08-264-13/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This just caused too much problems and must be solved another way. In qfsfileengine_win.cpp we define FSCTL_GET_REPARSE_POINT and all of the other stuff that's needed for NTFS symlink support, if its not defined. This is the case if _WIN32_WINNT is less than 0x0500. All other changes in this commit are just reversions of commits that were done for the infamous qglobal.h change. Discussed with prasanth, tested by pulse.
| * | | make x11 compile...Gunnar Sletta2009-08-271-3/+3
| | | |
| * | | New variant of QGLContext::bindTexture that does not require mipmap generationGunnar Sletta2009-08-279-89/+308
| | | | | | | | | | | | | | | | | | | | | | | | | | | | and y-axis inversion and overall less conversion, making significantly faster for plain usecases Reviewed-by: Trond
* | | | Doc: First review/editing of the QTouchEvent class documentation.David Boddie2009-08-271-27/+30
| | | | | | | | | | | | | | | | Reviewed-by: Trust Me
* | | | Doc: Added a section to tidy things up. This document needs more work.David Boddie2009-08-261-10/+12
| |/ / |/| | | | | | | | Reviewed-by: Trust Me
* | | Merge branch '4.6' of git@scm.dev.nokia.troll.no:qt/qt into 4.6David Boddie2009-08-2613-71/+479
|\ \ \
| * | | Made GL 2 engine reset various GL state to their defaults in end().Samuel Rødal2009-08-262-3/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This makes mixing GL and QPainter code safer. We need to be able to assume default GL state in begin(), and set back whatever we change to the default state in end() in the GL 2 paint engine. Reviewed-by: Trond
| * | | Made brush textures in GL2 engine use correct filtering.Samuel Rødal2009-08-261-8/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Only use bilinear filtering when SmoothPixmapTransform render hint is used. Reviewed-by: Kim
| * | | Improved GLSL precision specifiers in GL 2 engine.Samuel Rødal2009-08-261-24/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The recommended specifiers are lowp for colors / normal vectors, mediump for texture coordinates when a limited range is sufficient, and highp for generic texture coordinates and vertex coordinates / transformation matrices. We used to use mediump for texture coordinate in some places, but since we don't control the texturing scenarios we need to handle the worst case, which is zooming in on part of a large texture (2048x2048) with bilinear filtering. To properly handle this case without color banding mediump is probably not sufficient, so we'll use highp for texture coordinates. Reviewed-by: Tom
| * | | Improved QPainter API for allowing native painting in GL / VG.Samuel Rødal2009-08-268-36/+88
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously we were using QPaintEngine::syncState() which is not ideal naming-wise, since it actually prepares for native painting instead of syncing the painter's state to native state. Reviewed-by: Trond
| * | | doc: Misspelled class names.Bjørn Erik Nilsen2009-08-261-2/+2
| | | |
| * | | Add move API to QAbstractItemModel.Stephen Kelly2009-08-263-0/+347
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds the function beginMoveRows, endMoveRows, beginMoveColumns, endMoveColumns Reviewed-by: Olivier Goffart <ogoffart@trolltech.com> Acknowledged-by: Thierry Merge-request: 972
* | | | Doc: Corrected incorrect snippets and info in inherits() documentation.David Boddie2009-08-261-4/+3
|/ / / | | | | | | | | | | | | Task-number: 201882 Reviewed-by: Trust Me
* | | don't crash when attempting to access properties of a JS Object that ↵Kent Hansen2009-08-262-24/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | belonged to a deleted script engine When the engine is deleted, the JSValue is invalidated, but the QScriptValue's type will still be QScriptValuePrivate::JSC. Use a new helper function, isObject(), that checks both that the value is of type JSC _and_ that it is valid, before calling JSValue::isObject() (JSValue::isObject() assumes that the value is valid).
* | | QAbstractItemView sometimes doesn't allow changing the selectionThierry Bastian2009-08-261-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If you do a selection with the mouse and react to selectionChanged by changing the selection. Those changes would be overwritten by QAbstractItemView::mouseReleaseEvent. It is useless to set the selection on mouse release. We already do that on mouse press. Task-number: 250683 Reviewed-by: ogoffart
* | | Remove Graphics View dependency from QGraphicsShaderEffect.Bjørn Erik Nilsen2009-08-262-8/+0
| | | | | | | | | | | | Graphics effects are no longer in the Graphics View module.
* | | doc: fixes qdoc warnings/errors related to the Graphics Effect framework.Bjørn Erik Nilsen2009-08-263-72/+145
| | | | | | | | | | | | Reviewed-by: Kavindra
* | | Avoid undefined text metrics when GetTextMetrics() in QFontEngineWinEskil Abrahamsen Blomfeldt2009-08-261-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If GetTextMetrics() should fail, the results are undefined. When the undefined data are used, e.g. when painting text, this can cause a crash. To avoid the crash and make it clear that the metrics cannot be retrieved, we zero out the entire structure. Task-number: 251172 Reviewed-by: gunnar
* | | Revert "qglobal.h now has the definition for WINVER"Thierry Bastian2009-08-261-0/+7
| | | | | | | | | | | | | | | This reverts commit f7ebdd380d16a7be9713930b5ab41c32e996dcdb. defining WINVER in qglobal.h is about to be reverted.
* | | Compile fix for mingwThierry Bastian2009-08-262-3/+1
| | |
* | | Merge branch '4.6' of git@scm.dev.nokia.troll.no:qt/qt into 4.6David Boddie2009-08-261-1/+1
|\ \ \
| * | | Remove superfluous '.data()' call from dashStroker.Jason Barron2009-08-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The extra ".data()" call is not needed here because QScopedPointer overloads operator!() to do the right thing here. Reviewed-by: Eskil Blomfeldt
* | | | Doc: Noted a limitation in using slashes in settings section names.David Boddie2009-08-261-3/+3
|/ / / | | | | | | | | | | | | Task-number: 254511 Reviewed-by: Trust Me
* | | Fix column number in QScriptEngineAgent with JIT enabledJedrzej Nowacki2009-08-261-0/+1
| | | | | | | | | | | | | | | | | | | | | Column number in executed JS source code is correctly passed to debugger. Few autotest were repaired. Reviewed-by: Kent Hansen
* | | Fixes typo in doc and missing return in anchor layoutLeonardo Sobral Cunha2009-08-261-2/+4
| | | | | | | | | | | | Reviewed-by: janarve
* | | QToolbar now collapses when draggedThierry Bastian2009-08-263-5/+5
| |/ |/| | | | | | | | | | | Previously it wouldn't and the layout could appear to be broken. Task-number: 248817 Reviewed-by: Gabriel De Dietrich
* | fix performance issue with QScriptValue::propertyFlags()Kent Hansen2009-08-262-28/+39
| | | | | | | | | | | | | | Calling QScriptEngine::toStringHandle() is dead slow, so don't call it; use JSC::Identifier directly. This is the same issue as was fixed for setProperty() in commit a8574172dd5e6bc11cf6f69b6fad5a063549e88d.
* | Added missing precision specifiers to custom shader effect.Samuel Rødal2009-08-264-8/+8
| | | | | | | | | | | | The precision specifiers need to be there on OpenGL ES 2.0. Reviewed-by: Tom
* | implement proxying of JSObject::putWithAttributes() on Global ObjectKent Hansen2009-08-262-0/+13
|/ | | | | | Otherwise the property is stored on the wrong object (the proxy). This fix makes the Qt bindings generated by qtscriptgenerator work again.
* Doc - Completed review of documentation for the QGraphicsEffect group ofKavindra Devi Palaraja2009-08-261-77/+95
| | | | | | classes Reviewed-By: TrustMe
* Fix warning.Olivier Goffart2009-08-261-1/+3
| | | | | | The member need to be initialized in the same order as in which they are declared Reviewed-by: Thierry
* Fixed compilation on gcc 3.3 and mutex locker lifetimeThorbjørn Lindeijer2009-08-261-1/+1
| | | | | | | This fixes the lifetime of the mutex locker, since before it would already be destroyed on the next line. Reviewed-by: Olivier Goffart <olivier.goffart@trolltech.com>
* Fix "We mean it." comments in graphicsviewOlivier Goffart2009-08-2610-20/+20
|
* fix warnings on Windows CEJoerg Bornemann2009-08-266-4/+11
| | | | | | | Lots of warnings in the qreal == float case. Some Q_UNUSED added. Reviewed-by: thartman
* QXmlSimpleReader: fix crashFrank Osterfeld2009-08-261-2/+4
| | | | | | | | | | | | | Don't crash when parsing "<?xml version=\"1.0\" encoding=\"iso-8859-1\" ?><guid><http://www.foo.dk/artikel/8938</guid>" (unmatched "< tag followed by "foo:") using QDomDocument::setContent together with a QXmlSimpleReader with the "http://xml.org/sax/features/namespaces" feature enabled. Fixes task tracker issue 254700. See there for a test case. Merge-request: 1322 Reviewed-by: Peter Hartmann <peter.hartmann@trolltech.com>
* Make QWS compile with namespacesPaul Olav Tvete2009-08-2617-35/+66
| | | | Reviewed-by: hjk
* Fixed clipping bug in GL 2 paint engine (visible in arthur demos).Samuel Rødal2009-08-261-1/+1
| | | | | | | | | | QVectorPath::hints() is not a strict bit field, and thus can not be anded with RectangleHint. Instead, QVectorPath::shape() should be directly compared with RectangleHint to check if the vector path is a rectangle or not. In this case the first four points of a regular painter path were treated as a rectangle with dire consequences. Reviewed-by: Tom
* QLineEdit: reenable the delete action from the context menuThierry Bastian2009-08-265-13/+2
| | | | | | | We now need to connect to the slot in the QLineControl and not to the slot of the QLineEdit (the QLineEdit slot is now also removed). Reviewed-by: Alan Alpert
* compile fix with namespaceshjk2009-08-2613-1/+48
| | | | 13 pairs missing...
* Cocoa, the menus can be disabled after a modal dialogRichard Moe Gustavsen2009-08-261-3/+10
| | | | | | | | | | | | | | | Why this happends is a bit blurry. From before, I know that cocoa is a bit buggy regarding setting a menu item hidden or not. The solution back then resulted in the function syncNSMenuItemEnabled in qmenu_mac.mm. This patch basically applies the same (silly) trick; disabling the menuitem before enabling it. This seems to force an update to the menu items enabled state. For the record: this is not a fix that I embrace. I hope we can remove it again some day. See task for how to reproduce. Task: 259600 Rev-By: alexis
* Fix another minor copy'n'paste error from QLineControl refactoringAlan Alpert2009-08-261-2/+2
| | | | | | | | Had left the cursor flash time as half the QApplication cursor flash time by mistake. The new function sets the whole period and not just the time between toggling cursor visibility. Reviewed-by: Trust Me
* Make IDirectFBImageProvider enabled by defaultAnders Bakken2009-08-252-3/+3
| | | | | | | To prevent using IDirectFBImageProviders one can define QT_NO_DIRECTFB_IMAGEPROVIDER Reviewed-by: Donald Carr <donald.carr@nokia.com>
* Ensure that windows are double buffered in DFBAnders Bakken2009-08-251-1/+1
| | | | Reviewed-by: Donald Carr <donald.carr@nokia.com>
* Render cursor with a window in dfb if desiredAnders Bakken2009-08-253-4/+171
| | | | | | | | Some DFB implementations do not support rendering the cursor using the intended interfaces. In these cases one can define QT_DIRECTFB_WINDOW_AS_CURSOR and use a window to render the cursor. Reviewed-by: Donald Carr <donald.carr@nokia.com>
* Implement support for keeping image provider aliveAnders Bakken2009-08-254-1/+42
| | | | | | | | | | | If you define QT_DIRECTFB_IMAGEPROVIDER_KEEPALIVE we make sure atleast one IDirectFBImageProvider is alive at all times. Apparently this is refcounted by DirectFB on atleast one implementation and there's considerable overhead involved when releasing the last/creating the first image provider. Reviewed-by: TrustMe