summaryrefslogtreecommitdiffstats
path: root/src/platformsupport
Commit message (Collapse)AuthorAgeFilesLines
...
* More graceful choosing of EGL configs.Samuel Rødal2011-07-271-11/+18
| | | | | | | | | | | | If someone asks for a depth buffer of size 32, we should try to give them a smaller depth buffer if none of that size is available. Also, don't unconditionally read the alpha size of the configure attributes, since it might have been removed when reducing the config. Change-Id: If2f9d49c1cc3ded015384f9551b19cd15c523ce3 Reviewed-on: http://codereview.qt.nokia.com/2269 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
* Get the eglfs plugin compiling.Samuel Rødal2011-07-261-0/+1
| | | | | | | Change-Id: I5addb1a2593a670d559b9fbf9183f52af410895b Reviewed-on: http://codereview.qt.nokia.com/2176 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
* Added workable QScreen API on top of QPlatformScreen.Samuel Rødal2011-07-251-2/+0
| | | | | | | | | | | | | | | | | | | | | QPlatformIntegration::screens() no longer has to be implemented, implementations should call QPlatformIntegration::screenAdded() for each screen instead. This is for being able to support adding screens at run-time later on, by connecting it to a signal in QGuiApplication. The QGuiGLContext API has changed a bit, by not sending in all the parameters in the constructor but instead having a create() function. The createPlatformGLContext() factory in QPlatformIntegration takes a QGuiGLContext * instead of a QSurfaceFormat and a share context, similar to how the window and backing store factory functions work. The XCB plugin has experimental support for connecting to multiple X displays simultaneously, creating one or more QScreen for each. Change-Id: I248a22a4fd3481280710110272c04a30a8021e8f Reviewed-on: http://codereview.qt.nokia.com/2103 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
* Fix minimal plugin for windowsOlli Werwolff2011-07-071-1/+1
| | | | | | | Change-Id: Ica017cdad4c8205706b42767035d834498b63037 Reviewed-on: http://codereview.qt.nokia.com/1268 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
* Fix crash if IBus is not configured.Friedemann Kleint2011-06-291-3/+5
| | | | Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
* Compile on Mac.Morten Sorvig2011-06-281-1/+1
| | | Mac is a Unix but we probably don't want to use ibus.
* Factor out CGL code for reuse in wayland.Morten Sorvig2011-06-284-0/+171
|
* ibus IM support for the xcb backendLars Knoll2011-06-2713-1/+1106
| | | | | | | | Test code to check input methods using the ibus backend used on e.g. ubuntu. The IM code is not very sophisticated, but enough to test that things are working. Reviewed-by: Jørgen Lind
* Compile.Morten Johan Sorvig2011-06-231-1/+1
|
* Remove QEventDispatcherQPA inheritance support.Morten Sorvig2011-06-232-36/+5
| | | | | | QEventDispatcherQPA is now a small "leaf" class, there is no need to inherit from it or make it inherit another event dispatcher.
* Add QWindowSystemInterface::windowSystemEventsQueued()Morten Sorvig2011-06-232-2/+2
| | | | | | This removes the last use of QWindowSystemInterfacePrivate from outside QtGui, so we can make that class non-exported again.
* Refactor window system event dispatching.Morten Sorvig2011-06-232-52/+7
| | | | | | | | | | Add QWindowSystemInterface::sendWindowSystemEvents, which contains the canonical "empty and send queued window system events" implementation. Make the Cocoa, QPA, and GLIB dispatchers use the new implementation. Cocoa now no longer inherits from QPA.
* Remove stray file.Morten Sorvig2011-06-231-10/+0
|
* Remove leftover file.Friedemann Kleint2011-06-231-60/+0
| | | | Code went into Windows plugin.
* Remove Windows code from platform lib.Friedemann Kleint2011-06-226-270/+0
| | | | Rubber-stamped-by: Jørgen <jorgen.lind@nokia.com>
* Add QGuiEventDispatcherWin32.Friedemann Kleint2011-06-223-1/+145
| | | | | | | | Dispatches Gui events after DispatchMessage(). Reviewed-by: Samuel Rødal <sroedal@trolltech.com> Reviewed-by: Morten Sørvig <morten.sorvig@nokia.com>
* Q_GUI_EXPORT is a mac-only workaround.Morten Sorvig2011-06-221-1/+1
|
* add a platform interface for input method supportLars Knoll2011-06-221-1/+1
| | | | | | | | add QPlatformInputContext to help supporting complex text input. Communication with the focus objects/widgets will happen slightly different then before, through events instead of methods one can query on QWidget.
* Add lighthouse event dispatcher API.Morten Sorvig2011-06-229-1/+583
| | | | | | | | | | Platform plugin creation is now moved forward in order to have a platform plugin instance at event dispatcher creation time. Plugins are now responsible for implementing PlatformIntegration::createEventDispatcher and returning an QAbstractEventDispatcher subclass.
* OpenGL API refactor.Samuel Rødal2011-06-216-54/+42
| | | | | | Rename QGuiGLFormat to QSurfaceFormat, and make QWindow sub-class of QSurface and QPlatformWindow sub-class of QPlatformSurface, instead of having QPlatformGLSurface accessor in QWindow.
* Compile fix for platformsupport on Mac.Morten Sorvig2011-06-212-1/+8
| | | | | | | | | | Switch platformsupport over to be a shared library, which is well supported by the build system. This requires exporting classes we use. I've done this on OS_MAC only for now. Reverts 4581a9999e12e14bbf0836d0740191ba50109540
* Mac: buildfix for QtPlatformsupportRichard Moe Gustavsen2011-06-201-2/+3
|
* Mac: build fix. Make sure Platformsupport builds as a static lib.Richard Moe Gustavsen2011-06-201-0/+1
| | | | | | ...and not as an .app, as It did. Rev-By: Jørgen Lind
* Compile fix, and remove warningsJørgen Lind2011-06-103-4/+4
|
* Fix versionheader name for QtPlatformSupportJørgen Lind2011-06-101-1/+1
|
* QtPlatformSupport: A helper library for platform pluginsJørgen Lind2011-06-1033-0/+3703
QtPlatformSupport is a static library. Platform plugins are meant to link against this library to pull in dependencies such as fontengines and convenience functions for finding the right GL configs. The linker will only pull in the symbols used, so the size of the library doesn't really matter