summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Remove the xxxRaw versions of the QProcessEnvironment functions.Thiago Macieira2009-08-212-30/+2
| | | | | If we ever decide we need them later, we can readd. For the moment, let's keep the QString versions only.
* Add the reason for a process's failure to start to the errorStringThiago Macieira2009-08-211-1/+4
| | | | | It would have been of great help to find this out when I was debugging the previous commit.
* Add a new class for handling a process's environment variables.Thiago Macieira2009-08-217-86/+300
| | | | | | | | | | | | | | | | | First of all, make it a lot easier to access individual variables by having them in an associative container (a QHash). This fixes task 232427, albeit one release later than I had originally planned. On Windows, the variable names in the environment are case-insensitive, so a direct QHash isn't a good solution. Implement code that does the uppercasing on Windows and leaves untransformed on other platforms. Since we're doing this anyways, use QByteArray on Unix systems, since, in theory, the environment could contain any random binary data, which is not representable in QString. Task-number: 232427
* Improved a QGesture api a little bit.Denis Dzyubenko2009-08-216-63/+88
| | | | | | | Changed the constructor of the QGesture to separate the gesture target (the object/widget that the gesture filters events for), and the parent object. Reviewed-by: Richard Moe Gustavsen
* Improved the QPanGesture implementation.Denis Dzyubenko2009-08-211-16/+18
| | | | | | | When Pan is implemented with touch events, make sure it pans only when two fingers are used. Reviewed-by: trustme
* Fixed gesture handling on Windows when there are no alien widgetsDenis Dzyubenko2009-08-211-4/+13
| | | | | | Use the proper winid to set gesture configuration to. Reviewed-by: trustme
* Dont create native windows when setting up gestures.Denis Dzyubenko2009-08-213-64/+82
| | | | | | | | | | | | The code used to create native window handle even before checking if the widget subscribes to gestures, basically breaking alien widgets. Check the position of the gesture instead when the WM_GESTURE message is received in the GID_BEGIN state. This will work properly in most cases - but not always as the position that we get with the WM_GESTURE message is the center point of the multitouch gesture, which might be outside of the widget depending on positions of fingers. Reviewed-by: trustme
* Doc - Clarified the use of layoutChanged() in relation to persistentKavindra Devi Palaraja2009-08-211-1/+10
| | | | | | | | model indexes Reviewed-By: Olivier Goffart Task: 231608
* get rid of qmake warnings when parsing script.pro (JavaScriptCore.pri)Kent Hansen2009-08-211-0/+9
|
* Fix memory leakOlivier Goffart2009-08-212-4/+7
| | | | | | | | | When the variant is invalid the shared is not destroyed. We even can avoid the creation of the PrivateShared if we know the variant is invalid Reviewed-by: Thierry
* Optimize contrcuction of variant of type pointer.Olivier Goffart2009-08-213-9/+29
| | | | | | | | | | | | | Constructing a variant of a pointer type was previously quite slow: QVariant had no information it was a pointer. It had to create a QVariant::PrivateShared, ask the QMetaType for a constructor (slow as it involve locking mutextes) and allocate a pointer. By detecting a pointer in qVariantFromValue, we can store the pointer value dirrectly in the Variant union. We then avoid 2 allocations, and the expensive locking in QMetaType::construct Reviewed-by: Thierry
* qdoc: Moved javascripts for search box from header to footer.Martin Smith2009-08-211-6/+6
| | | | This is meant to speed up loading the landing page. But does it work?
* Add documentation for Qt::AnchorPointJan-Arve Sæther2009-08-211-0/+18
|
* qdoc: Redesigned the Class and Function Documentation page.Martin Smith2009-08-2112-97/+129
|
* Make QEglContext::extensions() staticTom Cooksey2009-08-212-3/+3
| | | | | | This is private API Reviewed-By: Trustme
* Add a static QEglProperties::dumpAllConfigs()Tom Cooksey2009-08-212-0/+16
| | | | | | This is private API Reviewed-By: Trustme
* Fix QGLWidget::showFullScreen() on X11/EGLTom Cooksey2009-08-211-2/+5
| | | | | | It seems the winId can change during a WindowStateChange event too. Reviewed-By: Trustme
* Removed PBO texture upload from QGLContextPrivate::bindTexture().Samuel Rødal2009-08-212-41/+4
| | | | | | | | | The PBO code path causes a crash on certain AMD graphics cards, plus seems to perform worse than the straight forward glTexImage2D code path on several configurations. Task-number: 257353 Reviewed-by: Gunnar Sletta
* rename QEventTransition::eventObject to eventSourceKent Hansen2009-08-213-14/+14
| | | | | | eventObject was a horrible name. The documentation already used the term "event source", so let's call it that. Agreed with Eskil.
* move qdoc3 binary to bin, so we can use it for Qt Creator without hacks.Daniel Molkentin2009-08-214-2/+5
| | | | | | | Most Linux distributions already move qdoc3 to that place for exactly this reason anyway. Reviewed-by: Marius Storm-Olsen <marius@trolltech.com>
* Merge branch 'master' of git@scm.dev.nokia.troll.no:qt/qtGunnar Sletta2009-08-21469-38009/+24240
|\
| * Fix linking to uninstalled libraries after LIBS_PRIVATE.Thiago Macieira2009-08-211-0/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On ELF systems, the static linker isn't allowed to find a linked library's dependencies using the -L flag. That means if you're linking lib or app X against a library A, and library A links against library B, then -L$QTDIR/lib won't apply to B. Before LIBS_PRIVATE, we had -lB, so it did apply. Now we need to find another solution. The solution is one of: a) install the libraries before linking anything against them b) set LD_LIBRARY_PATH c) set -rpath or -rpath-link Reviewed-by: TrustMe
| * Doc fixes to anchor layout.Jan-Arve Sæther2009-08-211-6/+6
| |
| * Doc fixes.Jan-Arve Sæther2009-08-211-1/+2
| |
| * Autotest QEXPECTED_FAIL removedJedrzej Nowacki2009-08-211-3/+1
| | | | | | | | Reviewed-by: Kent Hansen
| * JSC::Debugger fix. Events exceptionThrow and functionExit modificationJedrzej Nowacki2009-08-211-10/+26
| | | | | | | | | | | | | | | | | | | | JSC::Debugger::exceptionThrow event was moved _before_ stacks unwinding so there is possibility to check stack state before it's deletion. Missing functionExit event was added in Interpreter::unwind() Reviewed-by: Kent Hansen
| * Another typo.Alexis Menard2009-08-211-1/+1
| | | | | | | | Reviewed-by:TrustMe
| * Fix typo in anchor layout documentation.Alexis Menard2009-08-211-1/+1
| | | | | | | | Reviewed-by:TrustMe
| * Handle Touch* events in the same way as other input events in ↵Bradley T. Hughes2009-08-211-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | QAbstractScrollArea We send the Touch* events filtered from the viewport to the scroll area's default handler so that we can take advantage of the default handling in QWidget. But we also need to ignore Touch* events in QAbstractScrollArea::event() so that we don't get the events twice (once from the filter, and again if propagated). Reviewed-by: Richard Moe Gustavsen
| * Convert the screen cursor image to native premultiplied formatPaul Olav Tvete2009-08-211-1/+21
| | | | | | | | | | | | | | | | | | | | The default cursor on QWS is loaded as an 8bit QImage. Blitting that one is really slow so we better convert the image into a fast format before using it. Based on a patch by Lars. Reviewed-by: Tom
| * Allow linuxfb device names like /dev/fb/0Takumi ASAKI2009-08-211-9/+7
| | | | | | | | | | | | Previously, length of linuxfb device's path must be 8 and start with "/dev/fb". Reviewed-by: Paul
| * Avoid painting window decorations flicker showPaul Olav Tvete2009-08-211-6/+9
| | | | | | | | | | | | | | | | Request focus before requesting a geometry. This makes it much more likely that the initial paint will be done after the window is active. Task-number: 255828 Reviewed-by: Tom
| * Fix blend function crash on AVR32Paul Olav Tvete2009-08-211-2/+2
| | | | | | | | | | | | | | AVR32 doesn't support non-aligned access. (Contributed patch) Task-number: 255495 Reviewed-by: Paul
| * make the new anchor layout code compile with namespaceshjk2009-08-216-5/+29
| |
| * Merge branch 'anchorlayout' of ↵Jan-Arve Sæther2009-08-2116-3/+4906
| |\ | | | | | | | | | | | | | | | | | | git@gitorious.org:+openbossa-developers/qt/openbossa-clone Conflicts: src/gui/graphicsview/graphicsview.pri
| | * Remove the anchorlayoyt example that can load layouts.Jan-Arve Sæther2009-08-2014-1759/+0
| | | | | | | | | | | | | | | We decided to remove it because it does not serve its purpose as an example.(Too much code, does not show how to use the API in a nice way)
| | * Add the autotest to auto.proJan-Arve Sæther2009-08-201-1/+2
| | |
| | * Implement the functions we added in the API review:Jan-Arve Sæther2009-08-194-26/+95
| | | | | | | | | | | | | | | | | | | | | | | | | | | Those are: * setAnchorSpacing() * anchorSpacing() * unsetAnchorSpacing() Autotests for the two last ones are missing though..
| | * update API to what was agreed on the API review meeting yesterday:Jan-Arve Sæther2009-08-199-496/+584
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The changes are: * Move enums in QGraphicsAnchorLayout::Edge to Qt::AnchorPoint. Prefix them with Anchor since they are not edges in general. * Rename anchor() to addAnchor() * Rename anchorCorner() -> addCornerAnchors() * Rename anchorWidth() -> addLeftAndRightAnchors() * Rename anchorHeight() -> addTopAndBottomAnchors() * Rename anchorGeometry() -> addAllAnchors() * remove the overloads that take a spacing argument, and add setAnchorSpacing() to accommodate for that. * Added anchorSpacing() (implementation missing) * Added unsetAnchorSpacing(). (implementation missing) * made sizeHint() protected. Updated all examples and autotest to reflect this API change.
| | * Fix one "failure" on the mac.Jan-Arve Sæther2009-08-191-0/+3
| | | | | | | | | | | | This failed on Alexis' Mac Mini (Leopard)
| | * Only compile in toString() functions if we are compiling in debug mode.Jan-Arve Sæther2009-08-183-15/+32
| | | | | | | | | | | | | | | Also, only include the "name" member to AnchorData if we are compiling in debug mode.
| | * Improved internal docs for simplification.Jan-Arve Sæther2009-08-181-29/+44
| | |
| | * Remove some warningsJan-Arve Sæther2009-08-182-2/+2
| | |
| | * Remove some warningsJan-Arve Sæther2009-08-181-2/+0
| | |
| | * Just a small improvement to SequentialAnchorData::updateChildrenSizes()Jan-Arve Sæther2009-08-181-33/+20
| | | | | | | | | | | | Functionality-wise it should be the same, its just a bit less code.
| | * Fix a potential crash in AnchorVertex::toString().Jan-Arve Sæther2009-08-181-5/+6
| | | | | | | | | | | | Don't assume that m_item is always a QGraphicsWidget
| | * QGraphicsAnchorLayout: fix calculation of sizeAt* values for SequentialCaio Marcelo de Oliveira Filho2009-08-182-11/+75
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit implements what's described in the previous commit QGraphicsAnchorLayout: fix expected values for parallel test When filling the sizeAt* values (the three points used for interpolation when setting geometry), now sequential anchors distribute the sizes to the children in a fair way, i.e. proportionally in relation to the existing min/pref/max hints. Each value is defined in relation of the pref (either as a shrinkage in pref or a grow in pref). In both cases the shrinking/growing factor is the same for all children. When we implement support for QSizePolicies, this distribution might be changed by setting size policies for a certain item or anchor. This makes two tests work -- so no more expected fail. Also fixed a typo in one test's expected results.
| | * QGraphicsAnchorLayout: missing restoreSimplifiedGraph callCaio Marcelo de Oliveira Filho2009-08-171-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When creating an anchor we might have to create the edges for an item if the item is new. In this case both dimensions are affected. The call is clearly missing since createItemEdges() declared this dependency via Q_ASSERT. Patch from Jan-Arve. Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@openbossa.org>
| | * QGraphicsAnchorLayout: add QT_ANCHORLAYOUT_NO_SIMPLIFICATION backCaio Marcelo de Oliveira Filho2009-08-171-0/+4
| | | | | | | | | | | | | | | | | | For debugging purposes, if QT_ANCHORLAYOUT_NO_SIMPLIFICATION environment variable is set, the layout won't use simplification. Useful for some debuggings.
| | * QGraphicsAnchorLayout: hide some debug messagesCaio Marcelo de Oliveira Filho2009-08-171-0/+8
| | |