summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* add {QString,QByteArray,QList,QLinkedList,QHash,QMap,QVector}::isSharedWith()Oswald Buddenhagen2009-12-1014-0/+42
| | | | | | | | | | | | | | | | these functions just compare the d pointers of two objects. this can be used to verify the validity of cached data: you keep a copy of the original data in your cache. consequently, any changes to the original data must detach, so this function reflects whether the cached data is still up-to-date. of course, this is not thread safe, as the data might change right after you check it, but that's a general problem of cache coherency which needs to be handled further up the stack. the functions are internal because the other detaching-related functions are internal as well for reasons beyond me. Reviewed-by: brad
* fix (internal) apidocOswald Buddenhagen2009-12-101-1/+1
|
* Assistant: Added rebuild-search-index command line option.ck2009-12-103-3/+40
| | | | Reviewed-by: kh1
* Mac: add support for public.vcard UTI (DnD)Richard Moe Gustavsen2009-12-101-0/+57
| | | | | | Added a QMacPasteboard converter for data dragged from the address book on Mac. It is an easy piece of code, and will make it easier for Mac people to work with standard Mac apps.
* Prevent posted event starvation by native Windows messagesBradley T. Hughes2009-12-101-5/+11
| | | | | | | | | | Avoid live-lock if native messages are generated quickly enough by allowing posted events to be sent if more than 10ms has passed since we last sent them. This means that we can allow multiple calls to sendPostedEvents() during a single call to processEvents(), but only when the QEventLoop::EventLoopExec flag is passed to processEvents(). Task-number: QTBUG-1697
* Assistant: Make doc file watching work for the intended use case.ck2009-12-092-1/+75
| | | | | | | | | | The QFileSystemWatcher signals the changing of a file several times, with the first one coming too early. As a result, we are likely checking a file that is not yet fully constructed. The workaround/solution is to delay reacting to the change until after the (hopefully) last signal from the QFileSystemWatcher. Reviewed-by: kh1
* Cocoa: scrolling viewports containing many widgets is slowRichard Moe Gustavsen2009-12-091-0/+4
| | | | | | | | | One of the reasons is that [NSView resetCursorRects] is called for each view, also the ones not actually visible. And the function is slow. This patch does an early check, and bails out if this is the case. Reviewed-by: Prasanth
* Re-enabled support for the FSEvents-based QFileSystemWatcher.Denis Dzyubenko2009-12-092-6/+6
| | | | | | | | | Also fixed it to use canonicalFilePath instead of absoluteFilePath since when we get notification from the system, it gives us the canonical path with resolved symlinks (for example when watching for /tmp, the notification that we get says that /private/tmp was modified). Reviewed-by: Prasanth
* Implemented getting a canonical file name on Mac OS X 10.5Denis Dzyubenko2009-12-091-1/+16
| | | | | | | Using FSRef to get a canonical file path on OS X 10.5 which doesn't support realpath(X,0) extension. Reviewed-by: Prasanth
* Use realpath only on OS we know it works on.Denis Dzyubenko2009-12-092-4/+23
| | | | | | | | | | | | | | | | | | | As far as we know realpath(X,0) extenstion is only supported on Linux, Mac OS X starting with 10.6 and on Symbian. Here goes the trick: realpath() on Mac properly handles file systems case-sensitivity, meaning two files with different cases will are the same file if the file system is case insensitive (which is the default on Mac). However the QFSFileEngine will still say that the file system is case sensitive because on Mac you can have several drives with different file systems (with different case sensitivity), and QFSFileEngine doesn't allow to return different values depending on the file path, so we still say that the file system is case-sensitive, which is the safiest behavior. This changes the behavior on Mac, but changes it to be correct. Reviewed-by: Markus Goetz Reviewed-by: João Abecasis
* Assistant: Try to reload open pages on doc file update.ck2009-12-095-10/+23
| | | | Reviewed-by: kh1
* Merge branch 'master' of scm.dev.nokia.troll.no:qt/qtck2009-12-0919-44/+150
|\
| * Fix the int validator not handling the localeThierry Bastian2009-12-094-4/+54
| | | | | | | | | | Task-number: QTBUG-3179 Reviewed-by: ogoffart
| * Merge branch '4.6'Thiago Macieira2009-12-0813-32/+84
| |\
| | * Fix cleanup hooks error.Sarah Smith2009-12-081-2/+2
| | | | | | | | | | | | | | | | | | | | | Trying to fix QTBUG-6563, getting crash from cut-n-paste slippage, now fixed. Task-number: QTBUG-6563 Reviewed-by: Rhys Weatherley
| | * Update source package names in documentation.Jason McDonald2009-12-082-10/+10
| | | | | | | | | | | | | | | Task-number: QTBUG-6574 Reviewed-by: Trust Me
| | * Merge remote branch 'staging/4.6' into 4.6Oswald Buddenhagen2009-12-077-13/+43
| | |\
| | | * make qdoc3 a proper tools subtarget and install itOswald Buddenhagen2009-12-043-4/+5
| | | | | | | | | | | | | | | | | | | | | | | | needed for building qtmobility and qtcreator docs without magic. Reviewed-by: Daniel Molkentin
| | | * remove dead fileOswald Buddenhagen2009-12-041-5/+0
| | | |
| | | * Fix cursor positiong after block undo and redomae2009-12-041-2/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Block changes in different selections happens quite frequently with Qt Creator, e.g. when renaming local variables. The desired behaviour which the tst_QTextCursor::cursorPositionWIthBLockUndoAndRedo() tests, is like this: after an undo, the cursor should be where it was when the block operation started. After a redo, the cursor should be where it was after the block operation ended. Reviewed-by: Simon Hausmann
| | | * Added auto test for the cursor position when doing block undo and redomae2009-12-041-1/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Block changes in different selections happens quite frequently with Qt Creator, e.g. when renaming local variables. This test tests the desired cursor position behaviour: after an undo, the cursor should be where it was when the block operation started. After a redo, the cursor should be where it was after the block operation ended.
| | | * Stylesheets example: Fix warning about multiple &-mnemonics.Friedemann Kleint2009-12-041-1/+1
| | | | | | | | | | | | | | | | Reviewed-by: Olivier Goffart <ogoffart@trolltech.com>
| | * | Merge branch '4.5' of git@scm.dev.nokia.troll.no:qt/qt into 4.6Rhys Weatherley2009-12-062-6/+2
| | |\ \
| | | * | Replace glColor4ub() calls with glColor4f()Rhys Weatherley2009-12-062-6/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Intel Q45/Q43 Express Chipset has problems with glColor4ub() not updating GL_CURRENT_COLOR correctly. Replace all references with calls to glColor4f() instead as it is more likely to be implemented correctly on all chipsets. Task-number: QTBUG-6217 Reviewed-by: Sarah Smith
| | * | | Merge branch '4.6' of scm.dev.nokia.troll.no:qt/qt into 4.6Bill King2009-12-0663-401/+1005
| | |\ \ \
| | * | | | Revert previous commit as it breaks an sqlite assumption.Bill King2009-12-041-5/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | During the exe(), sqlite does it's first stepping, and stores that into the cache. It assumes that that value is still in the cache when fetchNext() is called, and uses the "cached" value to return.
| | * | | | Fixes: QOCI setForwardOnly(true) accumulating values.Bill King2009-12-042-1/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | readPiecewise() is assuming an empty valueCache when reading a new row. setForwardOnly(true) means that only one row is used/re-used. The value cache wasn't being cleared out when moving to a new row, so the above assumption was invalid. Task-number: QTBUG-6421 Reviewed-by: Justin McPherson
| * | | | | Optimize QOrderedMutexLockerOlivier Goffart2009-12-081-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | try first to lock without releasing the second mutex. If it succees at first (likely), we should not have deadlock, and we do not need to unlock and relock the first mutex Should help in ~QObject Reviewed-by: brad
| * | | | | Small optimisations in ~QObjectOlivier Goffart2009-12-081-4/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Avoid calling signalSlotMutex while there is a very small probability that the node will be different or that the mutex are the same for two different object. Reviewed-by: brad
| * | | | | Disable some code in normal build.Olivier Goffart2009-12-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Q_AUTOTEST_EXPORT is always defined. (it is defined empty if not internal build) Reviewed-by: Brad
* | | | | | Assistant: Allow search tab to be displayed on start-up.ck2009-12-081-2/+2
|/ / / / / | | | | | | | | | | | | | | | Reviewed-by: kh1
* | | | | Assistant: Don't re-load saved pages that don't exist anymore.ck2009-12-081-11/+13
| | | | | | | | | | | | | | | | | | | | Reviewed-by: kh1
* | | | | Added QToolBar::visibilityChanged(bool) signal.J-P Nurmi2009-12-083-0/+41
| | | | | | | | | | | | | | | | | | | | Reviewed-By: Thierry
* | | | | Assistant: Add "shared" directory to dependency list.ck2009-12-071-0/+1
| | | | |
* | | | | Fix memory leakDavid Faure2009-12-071-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | Merge-request: 391 Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>
* | | | | Assistant: Use tracing macro in all functions.ck2009-12-0718-0/+472
| | | | | | | | | | | | | | | | | | | | Reviewed-by: kh1
* | | | | Assistant: Logical re-structuring of start-up code.ck2009-12-076-148/+172
| | | | | | | | | | | | | | | | | | | | Reviewed-by: kh1
* | | | | Fix performance issue with live resizeRichard Moe Gustavsen2009-12-071-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Calling [NSView addTrackingArea] is slow. So doing this for views that are not even visible on screen is unnecesary. This patch will greatly improve the speed for some (perhaps extreme) cases. Task-number: QT-1610 Reviewed-by: MortenS
* | | | | Cleanup, no functional change.kh12009-12-071-23/+30
| | | | |
* | | | | Merge branch '4.6' of scm.dev.nokia.troll.no:qt/qtSimon Hausmann2009-12-0537-92/+544
|\ \ \ \ \ | | |/ / / | |/| | |
| * | | | Merge commit '33441e2a611f07207b0b942368aab9010cdf8ab1' of ↵Simon Hausmann2009-12-0540-370/+702
| |\ \ \ \ | | | | | | | | | | | | | | | | | | oslo-staging-1/4.6 into 4.6
| | * \ \ \ Merge branch '4.6' of git@scm.dev.nokia.troll.no:qt/oslo-staging-1 into 4.6Martin Smith2009-12-04100-800/+1642
| | |\ \ \ \
| | | * | | | Fix compilation with Sun CC 5.9: it was crashing with this code.Thiago Macieira2009-12-041-4/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Definitely a compiler bug. Reviewed-by: Kent Hansen
| | | * | | | Apparently fixes some build issues on some old unixes...Pierre Rossi2009-12-041-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Reviewed-by: Marius Storm-Olsen
| | * | | | | doc: Example page now lists images used by the exampleMartin Smith2009-12-0410-26/+168
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It just links to an empty page at the moment, i.e., it doesn't load the images. But I will add that. Task-number: QTBUG-4484
| * | | | | | Merge commit 'c0b81480b2909b18ac15bdd124a562ae005c2f41' into origin-4.6Olivier Goffart2009-12-0423-30/+302
| |\ \ \ \ \ \
| | * | | | | | Rebind window surface fbo after native GL renderingRhys Weatherley2009-12-044-2/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If the user called QGLFramebufferObject::bind()/release() during a beginNativePainting() callout, the release() would reset the context's fbo to zero, not the actual window surface fbo. Task-number: QTBUG-6204 Reviewed-by: Tom
| | * | | | | | Better check for EGL extension stringsRhys Weatherley2009-12-041-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The previous code might have failed if the desired extension name was a prefix of another name: "EGL_foo" member of "EGL_foo_bar". This change introduces a more precise check. Task-number: QTBUG-6454 Reviewed-by: Sarah Smith
| | * | | | | | Some doc fixesJan-Arve Sæther2009-12-031-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Remove a lie. - When referring to the size of an anchor, refer to it consistently as 'spacing' instead of magnitude.
| | * | | | | | Fixes broken selection with Shift and extended selectionOlivier Goffart2009-12-032-2/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ItemAt() is in viewport coordinate. Pressed index is in coordinate relative to the whole view (regression since Qt 4.5) Reviewed-by: thierry Task-number: QTBUG-6407