summaryrefslogtreecommitdiffstats
path: root/src/corelib
Commit message (Collapse)AuthorAgeFilesLines
* qdoc: Added \brief texts to all the since 4.6 functions.Martin Smith2009-09-213-5/+14
|
* Add a new compressable event QEvent::UpdateSoftKeys.Jason Barron2009-09-211-0/+2
| | | | | | | | | | | Now that the softkey framework triggers updates on focus changed, window activated, and action added/removed/changed the softkey bar was updating many times resulting in flicker. Solve that by introducing a new event type that is posted to the softkey framework. Since we only need to update the softkeys once per event loop iteration, the event is compressible in the event loop. Reviewed-by: Alessandro Portale
* System locale on Mac may not return AnyCountry for any language != Ccon2009-09-181-2/+5
| | | | | | Because of QLocale limitations this broke other places. Reviewed-by: Denis Dzyubenko
* Adding support for symbian graphics resources.Aleksandar Sasha Babic2009-09-181-1/+3
| | | | | | | | | | | | | | This enables us to convert from and to new Symbian type of graphics resource, namely SgImage. This only supported with the OpenVG graphics system. On other graphics systems this will return null QPixmap. Conflicts: src/corelib/global/qglobal.h src/gui/image/qpixmap.h src/gui/image/qpixmap_s60.cpp Reviewed-by: Jason Barron
* Introduce native Symbian bitmap support to QPixmapJani Hautakangas2009-09-181-0/+1
| | | | | | | | | This is done to reduce heap consumption and to give a possibility to share bitmaps across process. QPixmap maps to Symbian CFbsBitmap which is stored in Symbian font and bitmap server. Reviewed-by: Jason Barron
* Add a new wildcard mode similar to bash in QRegExpBenjamin Poulain2009-09-172-18/+85
| | | | | | | | | | | It is not possible to escape a wildcard character in the Wildcard mode of QRegExp. This follows the kind of wildcard of the CLI of Windows The new WildCardUnix follows the escaping of a unix's bash. Task-number: 241346 Reviewed-by: Olivier Goffart Reviewed-by: Matthew Cattell
* have make_qfeatures_dot_h use QTSRCDIR if defined, update qfeatures.hJeremy Katz2009-09-161-5/+5
| | | | Reviewed-by: Paul
* QGlobal: fix Windows error reportingPeter Hartmann2009-09-161-1/+1
| | | | | | | before, we did not retrieve the detailed error message correctly on Windows. Reviewed-by: Joao
* Merge branch '4.6' of git@scm.dev.nokia.troll.no:qt/qt into 4.6Shane Kearns2009-09-165-23/+22
|\
| * Put back the declarativeData into its union so it doesn't take memoryOlivier Goffart2009-09-161-2/+4
| | | | | | | | | | | | As it was in commit 025dcc2bb Reviewed-by: Thiago
| * Move QGuard to the ExtraDataOlivier Goffart2009-09-162-15/+15
| | | | | | | | | | | | | | not every QObject need a pointer to the QGuard while none of them will usually use it (it is private API) Reviewed-by: Thiago
| * Document that errors from flush are ignored in QFile::close()João Abecasis2009-09-161-1/+1
| | | | | | | | Reviewed-by: Andy Shaw
| * doc: Fixed some qdoc errors.Martin Smith2009-09-162-5/+2
| |
* | Fix QTimer overflow with interval > 35 minutes on symbianShane Kearns2009-09-162-5/+30
|/ | | | | | | | For long intervals, restart the system timer every 2000 seconds New autotest to verify long timers don't crash or complete immediately Task-number: QT-651 Reviewed-by: axis
* Hide getStaticMetaObject() on platforms without Q_NO_DATA_RELOCATIONShane Kearns2009-09-161-2/+8
| | | | | | | | | getStaticMetaObject() is a workaround for linkage problems on symbian platform, so it does not exist on other platforms. This change makes the forward declaration inside Q_OBJECT only present when Q_NO_DATA_RELOCATION is defined Reviewed-by: axis
* doc: Fixed some qdoc errors.Martin Smith2009-09-161-1/+1
|
* I don't think this was intentional...João Abecasis2009-09-152-2/+0
| | | | | | Wonder how it survived for so long. Reviewed-by: Peter Hartmann
* QCursor support for Symbian OSShane Kearns2009-09-153-0/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reviewed-By: Jason Barron Reviewed-By: Alessandro Portale Summary: QT_NO_CURSOR is now not defined for symbian builds Existing QCursor APIs are all supported New public API, QApplication::setNavigationMode, to allow the navigation mode to be set. I.E. on an S60 3.2 phone, some applications will want a virtual mouse cursor (web browser), while others are designed for keypad navigation. Symbian HAL is used for detecting input capabilities. Fix DND, code cleanup & comment QCursor visibility now uses a refcount, and is called from DND and the setNavigationMode so they are both simpler and don't interfere with each other. QApplication::setNavigationMode New public API for configuring cursor/keypad navi style. This links in with ongoing work on the 4-way keypad navi branch, but 2-way and 4-way modes both act as 2-way mode until that is integrated Some of the demos/examples have cursor switched on (those that were not usable with keypad) Virtual mouse support for non touch, non mouse phones (tested on N78) add *.d and .metadata (carbide debug file / workspace dir) to .gitignore System pointers are unavailable when using sprite workaround, so the system cursor shapes are compiled into qtgui as resources. MAC port does this also for shapes that aren't standard on the MAC. Refactor Drag'n'Drop to use QCursor Add test case to check all system cursor shapes Simply a mainwindow containing a label widget for each cursor shape, with the cursor property set appropriately QCursor(QBitmap,QBitmap) supported Fixed problem with the image & mask being inverted when using the QCursor constructor that takes two mono bitmaps. add .make.cache files to .gitignore Correct implementation of QApplication::setOverrideCursor QApplication::restoreOverrideCursor and QApplication::setOverrideCursor are now working correctly on Symbian platform. Performance will be slower compared with other platforms, because the Symbian window server has a cursor associated with each native window. Add test case for custom cursors Create a pixmap cursor and associate it with a widget. No changes to production code, since test passed 1st time ;) Add manual test for QCursor Make cursor independent of construction order Updated to work around window server issue where contruction order affects what cursor is displayed in child windows. Also changed to effectiveWinId following review comments Also fixed a problem which would make qcursor not link if configured with QT_NO_CURSOR Moved some multiply declared extern functions from cpp to _p.h files Implemented Symbian versions of the cursor functions. Merged in work I'd done based on tower. Fill in bits of stub functions based on windows port Removed QT_NO_CURSOR from list of config options forced on symbian Recompiled configure.exe Added stub functions for the missing functions in s60 port
* Fix ambiguous overload for QTileRules constructorOlivier Goffart2009-09-151-0/+2
| | | | | | Also fix the relations in the documentation Reviewed-by: David Boddie
* System locale on Mac returns preferred language/country from sys prefs.con2009-09-141-5/+29
| | | | | | | Previously it always returned the C locale's language, which is of not much help for an application. Reviewed-by: Morten Sorvig <msorvig@trolltech.com>
* Merge branch '4.5' of scm.dev.nokia.troll.no:qt/qt into 4.6Simon Hausmann2009-09-141-1/+1
|\
| * Fix libiconv support on FreeBSD.Raphael Kubo da Costa2009-09-131-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For some reason iconv support was broken in Qt 4.5 on FreeBSD, and this patch was made to fix that. Original patch by Max Brazhnikov <makc@freebsd.org>. Original message: Enable libiconv support. Didn't get where the real problem is, but using UTF-16LE/BE as default encoding (see patch) fixes the issue. Merge-request: 1480 Reviewed-by: Thiago Macieira <thiago.macieira@nokia.com>
| * Update license headers again.Jason McDonald2009-09-08367-1468/+1468
| | | | | | | | Reviewed-by: Trust Me
* | Fix -Wconversion warnings where possible.David Faure2009-09-1310-45/+45
| | | | | | | | | | | | | | | | | | | | | | | | In order to detect "int foo = myQReal" mistakes, one needs to compile with -Wconversion. However that flag triggers many warnings inside Qt. This commit fixes many of them, like qchar.h:295: warning: conversion to 'ushort' from 'unsigned int' may alter its value qglobal.h:1026: warning: conversion to 'qreal' from 'qint64' may alter its value qbytearray.h:441: warning: conversion to 'char' from 'int' may alter its value Other warnings remain (such as those coming from bitfields) Merge-request: 1460 Reviewed-by: Thiago Macieira <thiago.macieira@nokia.com>
* | Do not make Mac-specific checks on FreeBSD.Raphael Kubo da Costa2009-09-131-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | Commit 098be4ff adds a check for MAC_OS_X_VERSION_MAX_ALLOWED and MAC_OS_X_VERSION_10_5, which do not exist on FreeBSD. Therefore, both evaluate to 0 and a Mac-specific header ends up included. This commit properly verifies that Q_OS_MAC is defined before performing that check. Merge-request: 1477 Reviewed-by: Thiago Macieira <thiago.macieira@nokia.com>
* | Compile fix for windowsRobert Griebl2009-09-111-1/+1
| | | | | | | | Reviewed-by: TrustMe
* | Out of memory fix for qUncompressRobert Griebl2009-09-112-21/+34
| | | | | | | | | | | | | | | | | | | | | | qUncompress shouldn't crash when running out of memory, since it might deal with buffers which are not under user control (same behavior as Qt 4.5). It will however throw a std::bad_alloc exception if Qt is compiled with exception handling. Reviewed-by: Harald Fernengel Reviewed-by: Ralf Engels Reviewed-by: Lars Knoll
* | small optimization for variant handling in animationsThierry Bastian2009-09-111-3/+9
| | | | | | | | Just one test less
* | animations now display a warning if they don't have a end valueThierry Bastian2009-09-111-2/+2
| | | | | | | | also improved the autotests
* | Merge branch '4.6' of git@scm.dev.troll.no:qt/qt into 4.6Miikka Heikkinen2009-09-111-1/+1
|\ \
| * | Fix the signal output in QObject::dumpObjectInfoOlivier Goffart2009-09-101-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | The computation of the offset was wrong. (The offset is the difference between the method index, and the signal index) Reviewed-by: trustme
* | | Optimized S60 version check.Miikka Heikkinen2009-09-111-21/+29
|/ / | | | | | | | | | | | | | | | | | | | | | | Use pure Symbian code to get S60 version, because if done using QDir, there will be a call back to this method, resulting doing this expensive operation twice before the cache kicks in. Pure Symbian code also makes this method ~10x faster, speeding up the application launch. Task-number: 260757 Reviewed-by: Janne Anttila
* | Merge branch '4.6' of git@scm.dev.troll.no:qt/qt into 4.6Miikka Heikkinen2009-09-10456-1843/+1857
|\ \
| * | Some unneeded semicolons lessAlessandro Portale2009-09-092-2/+2
| | |
| * | Add missing \since 4.6 in the QMargins documentationOlivier Goffart2009-09-091-0/+1
| | |
| * | Unable to access file means QFile::PermissionsErrorJoão Abecasis2009-09-091-1/+1
| | | | | | | | | | | | | | | | | | | | | Relates to changes introduced in 6d87a01f2d3108bbee5b9995f20edfc26a01cd57. Reviewed-by: Marius Storm-Olsen
| * | Merge branch '4.6' of git@scm.dev.troll.no:qt/qt into 4.6Janne Anttila2009-09-09456-1839/+1877
| |\ \
| | * | Update license headers again.Jason McDonald2009-09-09456-1824/+1824
| | | | | | | | | | | | | | | | Reviewed-by: Trust Me
| | * | Fix windows implemetation of QLocalSocket to emit bytesWritten() signalabcd2009-09-092-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Have QWindowsPipeWriter emit a bytesWritten signal and have QLocalSocket connect this to its own bytesWritten signal. This change contains an autotest to check for the signal emission. Previously there was no implementation to emit the signal.
| | * | Doc: A timeline's current value is not reset when the duration changes.David Boddie2009-09-081-0/+4
| | | | | | | | | | | | | | | | | | | | Task-number: 219152 Reviewed-by: Trust Me
| | * | Replace QGLDrawable with a new QGLPaintDeviceTom Cooksey2009-09-081-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds a new abstract base class which inherits from QPaintDevice called QGLPaintDevice. This base class will contain everything the GL paint engines need to know about the surface they are drawing onto. As such, new surfaces can be targeted by the GL paint engines without having to modify QtOpenGL. This is very useful for plugins, specifically QGraphicsSystem plugins. To unify things a little, the GL paint engines will use the same QGLPaintDevice API to render into existing target surfaces (QGLWidget, QGLPixelBuffer & QGLFrameBufferObject). Ideally we'd make QGLPaintDevice a common ancestor for these surfaces, but obviously that wil break B/C. This patch only implements QGLWidget using the new interface. Rendering to other surfaces will be fixed in following patches.
| | * | exception safety fix for QList::operator+= (const QList&)mread2009-09-081-7/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The refactoring of current++ and src++ out of the new line makes the code easier to understand but it also seems to be significant at least in the ::isComplex case. I suspect that the ordering increment operations vs throw from new is not well defined, or not implemented as you might hope (with the ++ happening very last). The changes in the catch blocks mean that it deletes the created objects, rather than trying with the first failed object. The test code has been updated with a +=(Container) test, and to force testing of both static and moveable types. Reviewed-by: Harald Fernengel
| * | | Fixed 'use of function is deprecated' warnings reported by RVCTJanne Anttila2009-09-094-8/+9
| | | | | | | | | | | | | | | | | | | | Task-number: 241223 Reviewed-by: Janne Koskinen
* | | | Fixed various PlatSec violations when app had no AllFiles capability.Miikka Heikkinen2009-09-103-9/+47
| |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | Fixed QtCore in various places that caused Platform Security violations in Symbian if AllFiles capability was missing from the application. All of these these were caused by trying to access /private folder unnecessarily, either by Qt code or Open C. Task-number: 249008 Reviewed-by: Janne Koskinen
* | | Merge branch '4.6' of git@scm.dev.troll.no:qt/qt into 4.6Miikka Heikkinen2009-09-081-2/+15
|\ \ \
| * | | Animations of redocking widgets are brokenThierry Bastian2009-09-081-2/+15
| |/ / | | | | | | | | | | | | | | | | | | | | | The problem is that when starting an animation, we delay it by starting a 0-timer. That doesn't work on windows while dragging a native window. Task-number: 260772 Reviewed-by: prasanth
* | | Fixed resolving absolute paths in Symbian.Miikka Heikkinen2009-09-081-5/+18
|/ / | | | | | | | | | | | | | | | | | | Fixed resolving absolute path using QFileInfo for paths that were relative but contained the drive letter (e.g. "c:my.dll"). Absolute paths should now be properly cleaned in Symbian, too. Task-number: 255326 Reviewed-by: Janne Anttila
* | Fix warning when compiling with QT_NO_EXCEPTIONSOlivier Goffart2009-09-071-1/+1
| | | | | | | | | | | | src/corelib/global/qglobal.h:1368:1: warning: "QT_NO_EXCEPTIONS" redefined Reviewed-by: Alexis
* | Fix a crash in the Win32 event dispatcherBradley T. Hughes2009-09-071-0/+2
| | | | | | | | | | | | | | | | Not clearing the timerVec and timerDict containers can cause crashes during application shutdown when code tries to unregister timers (that were unregistered in closingDown()). Reviewed-by: dt
* | Doc: Added a note that a state machine requires a running event loop.David Boddie2009-09-071-31/+11
| | | | | | | | Reviewed-by: Trust Me