summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Fix raw translation on WindowsBradley T. Hughes2009-06-081-5/+3
| | | | We don't keep the state from the previous events anymore, so the 'down' variable is useless (and actually caused problems).
* set the start and last global positions when translating "raw" touch eventsBradley T. Hughes2009-06-081-2/+11
| | | | | this makes it possible to have a little code as possible feeding the raw events into Qt (and tests/auto/qtouchevent passes now too :P)
* s,RawKeyEvent,RawTouchEvent,gBradley T. Hughes2009-06-081-2/+2
| | | | how embarassing :/
* Fix linking on WindowsBradley T. Hughes2009-06-081-1/+2
| | | | Need to move the extern declaration out of the QtTest namespace
* Compile on Windows againBradley T. Hughes2009-06-084-38/+23
|
* Compile after API updatesBradley T. Hughes2009-06-051-38/+20
|
* Some API changes after an API review roundBradley T. Hughes2009-06-0512-227/+550
| | | | | | | | | | | | | | | | | | | | | | | | | 1. Don't have QGraphicsSceneTouchEvent::TouchPoint inherit from QTouchEvent::TouchPoint. The only reason to do this is to support an implementation trick, which can be done another way (see below). This means we have to essentially duplicate the API in the GraphicsScene variant. 2. Don't use a list of pointers to touch points in QTouchEvent and QGraphicsSceneTouchEvent. This means we have to make the TouchPoint classes implicitly shared (and the effect of the previous trick of static_casting the widget touch point to a graphics-scene touch point can be emulated by sharing the d-pointers between the classes). 3. QEvent::RawTouch isn't really an event type, it's a backdoor. Remove it and export the bool qt_translateRawTouchEvent(QList<QTouchEvent::TouchPoint>, QWidget *) function instead. 4. Rename QTouchEvent::TouchPoint::area() to size() (which is more clear as to what the function returns). QGraphicsSceneTouchEvent::TouchPoint gains size(), sceneSize(), and screenSize() functions (the actual translation from screen to scene to item still needs to be implemented).
* Accept TouchBegin events by default if they are enabledBradley T. Hughes2009-06-052-7/+7
| | | | | | After an API review round, we agreed that it makes sense for the TouchBegin event to default to accepted if the widget has subscribed to receive touch events.
* Merge branch 'master' of git@scm.dev.nokia.troll.no:qt/qtBradley T. Hughes2009-06-05135-649/+1012
|\
| * Compile when -no-qt3-support is on.Sarah Smith2009-06-051-0/+1
| | | | | | | | | | | | | | As checked in was compiling with QDataStream(QByteArray *, int) and that method is only available when compiling with qt3 support. Reviewed-by: Julian de Bhal
| * All of Qt's own code compiles with -pedantic now (but pcre and webkit don't ↵David Faure2009-06-0425-40/+40
| | | | | | | | | | | | | | seem fixable easily) Merge-request: 594 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
| * Fix compilation with gcc-4.3.3 (due to std::system)David Faure2009-06-041-0/+1
| | | | | | | | | | Merge-request: 594 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
| * Merge commit 'origin/4.5'Olivier Goffart2009-06-0416-39/+90
| |\
| | * Remove a Q_ASSERT that could be triggered under some conditions.Thiago Macieira2009-06-041-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Whenever an argument failed to marshall, this assert would be triggered. It's technically an error in the application, but it's hard to track it down. So remove it and let the execution continue (the function returns false indicating failure already and there's a warning from the marshalling code itself) Reviewed-by: TrustMe
| | * Don't use inactivatable timers to calculate time to wait for next timer.Thomas Sondergaard2009-06-041-3/+11
| | | | | | | | | | | | | | | | | | | | | | | | This patch prevents the eventloop from waking up needlessly. Without this patch the event loop will not sleep at all if a 0-timer is already 'inTimerEvent' Merge-request: 550 Reviewed-by: Olivier Goffart <ogoffart@trolltech.com>
| | * Document the proper signals that the ::open() convenience connects to.Norwegian Rock Cat2009-06-044-6/+15
| | | | | | | | | | | | | | | | | | We were saying that it connected to accepted it all these cases, but it actually is doing some nice magic that makes sense assuming you document it.
| | * Document that textVisible is optional when it comes to styles.Norwegian Rock Cat2009-06-041-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | No progress bars on the mac show text and it would be bad if we allowed it. There's nothing stopping people from connecting the valueChanged() signal to a slot and have a real label layed out correctly that actually updates with the amount of time it takes to complete, etc. This is more what they do on Mac OS X if they decide to show a label.
| | * BT: Fixes Crash when deleting a QProgressBar which has been styled with ↵Olivier Goffart2009-06-041-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | QMotifStyle Same fix as in e9a7e43031d7c1ee712e43be682c4e2c183759c4 but with motif Reported by https://bugs.kde.org/show_bug.cgi?id=193911 Task-number: 255138 Reviewed-by: jbache
| | * fix catalan plural rulesOswald Buddenhagen2009-06-032-0/+4
| | |
| | * BT: Fix a crash in the SDI example in CocoaNorwegian Rock Cat2009-06-031-15/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This was quite a bug and it showed to some issues that I hadn't taken into account when doing the initial port to Cocoa. The issue was that we weren't "merging" items into the application menu if an item had already been associated with it. Which seems OK for applications that create one window with one menubar, but breaks down horrible when you have multiple windows with each having their own menubar. The result is that items in the application menu potentially go to the wrong window (and the potential crash). Since there can only ever be one "Quit", "About", or "Preferences" menu item in Cocoa, we need to make sure that we keep these items in sync whenever we switch the menubar or remove actions that are being deleted. That's what we do here. FWIW, QActions with "ApplicationSpecificRole" for their menu role have potential to cause memory leaks or other bugs if abused. If you are a happy open source hacker who wants a thankless job, solving them would get you lots of goodwill in my book. Task-number: 255038 Reviewed-by: Richard Moe Gustavsen
| | * Fixed raster bug causing fully clipped images to be partially blended.Samuel Rødal2009-06-031-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The blend functions assume the width / height of the images being blended to be greater than 0. A width of 0 caused the first iteration of a duff's device memcpy (QT_MEMCPY_USHORT) to be executed, thus blending 8 pixels instead of none. BT: yes Task-number: 255014 Reviewed-by: Trond
| | * Fix BOM for UTF-32 codecMarius Storm-Olsen2009-06-031-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | The BOM was created correctly, but half of the BOM was then overwritten by the converted data afterwards. Also made the autotest also do reverse encoding tests where possible. Task-number: 255095 Reviewed-by: lars
| | * open pipes in overlapped mode also on the client sideOswald Buddenhagen2009-06-031-2/+2
| | | | | | | | | | | | | | | | | | otherwise PeekNamedPipe() may block in threaded environments. Reviewed-by: thiago
| | * Add a note about what happens when passing 0 to qobject_cast in the docAndy Shaw2009-06-031-1/+2
| | | | | | | | | | | | Reviewed-by: Kavindra Palaraja
| | * Fixed a byte ordering issue when using the raster graphicssystem.Trond Kjernåsen2009-06-021-7/+10
| | | | | | | | | | | | | | | | | | | | | | | | The R and B channels were swapped on little endian machines with BGR layout. Task-number: 254934 Reviewed-by: Samuel
| * | regeneration of qfeatures.hThierry Bastian2009-06-041-0/+5
| | |
| * | add QT_NO_STATEMACHINE define so state machine can be compiled outKent Hansen2009-06-0429-0/+134
| | | | | | | | | | | | Reviewed-by: Thierry Bastian
| * | kill bad QT_END_HEADERKent Hansen2009-06-041-2/+0
| | | | | | | | | | | | There should be no QT_{BEGIN,END}_HEADER here; this is a private header.
| * | Fix headers in the XUnit feature.Thiago Macieira2009-06-049-7/+61
| | | | | | | | | | | | | | | | | | | | | All Qt headers must have QT_BEGIN_HEADER, QT_END_HEADER and QT_MODULE. These headers didn't have this. Reviewed-by: TrustMe
| * | move the QT_NO_ANIMATION macro to the right place (ie after otherThierry Bastian2009-06-047-15/+15
| | | | | | | | | | | | includes)
| * | Make inverted appearance work for progressbar in QMacStyleNorwegian Rock Cat2009-06-041-1/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | HITheme doesn't seem to support the reverse thing. I filled a bug about it, but this is easy to emulate in the horizontal case and the "Inverted" orientation works great for vertical. Task-number: 217594 Reviewed-by: Morten Sørvig
| * | Forgot to remove old code in d5231e0593dcbf226e0ca3d679c2547e8e1c9697.jasplin2009-06-041-1/+0
| | | | | | | | | | | | Reviewed-by: TrustMe
| * | Add an extra explanation for the API extension.Alexis Menard2009-06-041-1/+4
| | | | | | | | | | | | Reviewed-by:David Boddie
| * | Enable valgrind on Mac OS X as well.Morten Sørvig2009-06-041-1/+1
| | |
| * | Removed the internal UsePixmapCache flag in the style code.jasplin2009-06-046-57/+35
| | | | | | | | | | | | | | | | | | | | | | | | In the style code, the internal UsePixmapCache flag made no sense in practice, so it was removed. A fortunate side-effect of the patch is that the code is now accepted by Sun CC 5.5. Reviewed-by: jbache
| * | Fixed build error with Sun CC 5.5.jasplin2009-06-041-0/+3
| | | | | | | | | | | | Reviewed-by: tbastian
| * | Fixed build error with Sun CC 5.5..jasplin2009-06-041-10/+10
| | | | | | | | | | | | | | | | | | | | | | | | Note that the fix is simply to swap the order of the two v_construct() overloads. Sun CC 5.5 requires the version with the default argument to occur first. Reviewed-by: TrustMe
| * | Fixed the frame that would sometimes not be painted around widgets inThierry Bastian2009-06-041-1/+1
| | | | | | | | | | | | | | | | | | | | | a QStatusBar Task-number: 253717 Reviewed-by: ogoffart
| * | Fixed build error with Sun CC 5.5.jasplin2009-06-041-1/+8
| | | | | | | | | | | | Reviewed-by: TrustMe
| * | Code cleanup - use constructor initializers in shader classes.Rhys Weatherley2009-06-041-14/+14
| | | | | | | | | | | | | | | Task-number: QT-80 Reviewed-by: Ian Walters
| * | Improvements to shader API in response to API reviewRhys Weatherley2009-06-043-94/+83
| | | | | | | | | | | | | | | Task-number: QT-80 Reviewed-by: Ian Walters
| * | Doc fix: moved the cldr version outside of the double-to-string license headerDenis Dzyubenko2009-06-031-2/+2
| | |
| * | Change crazy casts from QString to NSSting to qt_mac_QStringToNSString.Norwegian Rock Cat2009-06-031-7/+7
| | | | | | | | | | | | | | | These function exist for making code not look so crazy, so let's actually use that in code where it didn't exist before.
| * | Fixed the QMenu to open submenus even if the pointing device is movingThierry Bastian2009-06-031-5/+7
| | | | | | | | | | | | | | | | | | | | | but the current highlighted item doesn't change Task-number: 254238 Reviewed-by: ogoffart
| * | Removed a warning (qreal should be used, and not float)Thierry Bastian2009-06-031-1/+1
| | |
| * | fix silly typoKent Hansen2009-06-031-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Yeesh. The function worked for the common case of the argument being a plain script object (obviously, otherwise this would have been discovered sooner), but it would never pick the less expensive path when replacing the QObject pointer of an existing proxy. And if you passed in a QVariant proxy (now who would ever do something like that...?), it would assert.
| * | force activation of minimized windows on Windows mobileJoerg Bornemann2009-06-031-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When pressing the <- key on a Windows mobile device, the window gets a minimized event (no other soft keys behave like that). Restoring the window via the app menu isn't possible, because the window get a WM_ACTIVATE but its internal state is still minimized. It makes sense to unminimize activated apps on Windows mobile. Task-number: 254673 Reviewed-by: thartman
| * | fix signal signature bug in debug outputKent Hansen2009-06-031-2/+2
| | | | | | | | | | | | | | | The signal code (first character of const char *signal) is stripped internally, so the debug output code should not skip any characters.
| * | don't require use of SIGNAL macro in calls to addTransition()Kent Hansen2009-06-031-2/+3
| | | | | | | | | | | | | | | Just as with the QSignalTransition::signal property, this makes it possible to use the function from language bindings (e.g. QtScript).
| * | fix qdoc warningKent Hansen2009-06-031-1/+1
| | | | | | | | | | | | No need to link to the class in its own doc page.