summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/kernel.pri
Commit message (Collapse)AuthorAgeFilesLines
* Extend touch events.Laszlo Agocs2011-12-091-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The capability flags indicate which information is valid in the touch points. Previously there was no way to tell if e.g. the value returned by pressure() is actually the value provided by the driver/device or it is just something bogus due to pressure not being supported. The points' flags return information about the individual touch points. One use case is to differentiate between touches made by finger and pen. Velocity, if available, is now also exposed. Each touch point can now contain an additional list of "raw" positions. These points are not reported individually but are taken into account in some way by the underlying device and drivers to generate the final, "accurate" touch point. In case the underlying drivers expose these additional positions, they are made available in the lists returned by the touch points' rawScreenPosition(). The raw positions are only available in screen coordinates to prevent wasting time with mapping from global positions in applications that do not use this data. Instead, apps can query the QWindow to which the touch event was sent via QTouchEvent::window() and can call mapFromGlobal() manually if they need local raw positions. The capability and device type information is now held in a new QTouchDevice class. Each touch event will contain only a pointer to one of the global QTouchDevice instances. On top of type and capability, the new class also contains a name which can be used to differentiate between multiple touch input devices (i.e. to tell from which one a given QTouchEvent originates from). The introduction of QTouchDevice has three implications: The QTouchEvent constructor and QWindowSystemInterface::handleTouchEvent need to be changed (to pass a QTouchDevice pointer instead of merely a device type value), and each platform or generic plug-in is now responsible for registering one or more devices using the new API QWindowSystemInterface::registerTouchDevice. Change-Id: Ic1468d3e43933d8b5691d75aa67c43e1bc7ffe3e Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
* Factor out QPlatformTheme from QPlatformPlugin.Friedemann Kleint2011-11-111-0/+6
| | | | | | | | | | | | | | | | | | Implement QCocoaPlatformTheme. The menus and dialog API is moved from the platform to the theme plugin. (Both APIs contain references to QtWidget classes, which we are working towards removing.) The theme plugin is created after the platform plugin, first by asking the platform plugin, then by looking for a separate plugin if the platform does not specify a theme. Initial-patch-by: Morten Sorvig <msorvig@trolltech.com> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com> Change-Id: I2778cdd3a205c4ce35ead93e39fe6b4cd58a39f9 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
* Gui/OpenGL: Remove remains of qpa from profiles.Friedemann Kleint2011-10-311-52/+46
| | | | | Change-Id: Iff2531a19030bd782ee4cd9bbe529d18666503f9 Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
* Move QShortcutMap to QtGuiLars Knoll2011-10-181-0/+2
| | | | | | | | | QShortcut stays in QtWidgets, what we need in QtGui is only the basic functionality of the shortcut map. QML can integrate directly with the map where required. Change-Id: Ie39e9242f24cbebf824e5c3d2926880325ea4187 Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
* Get rid of the last traces of QMimeSourceLars Knoll2011-09-291-2/+0
| | | | | | | | | | | The class has been deprecated since Qt 4.0, but couldn't be removed as QDropEvent inherited from it. Change-Id: I9caa19b30977a319e79255900dee8b2425783f46 Reviewed-on: http://codereview.qt-project.org/5754 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Bradley T. Hughes <bradley.hughes@nokia.com>
* Refactor the input frameworkLars Knoll2011-09-071-0/+3
| | | | | | | | | | | | | | | | Results of the ongoing workshop in Oslo: QInputPanel will be the application facing interface for controlling the input context as well as querying things like the position of the virtual keyboard. QInputContext is significantly cleaned up and only there as a compatibility API for existing code. Change-Id: Ie8e2ee480930763f414bfaae63247b1fb6500c82 Reviewed-on: http://codereview.qt.nokia.com/4357 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Vesa Rantanen <vesa.rantanen@nokia.com> Reviewed-by: Joona Petrell <joona.t.petrell@nokia.com> Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
* move QSurface into its own file.Jørgen Lind2011-09-071-2/+6
| | | | | | | | | also move QPlatformSurface to its own file Change-Id: I29fb6c70ede18a0ac5e0f6bfb97a33293633e668 Reviewed-on: http://codereview.qt.nokia.com/4309 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
* Add a QStyleHints class to QtGuiLars Knoll2011-08-311-2/+4
| | | | | | | | | This class encapsulates platform specific style hints like doubleClickInterval or cursorFlashTime. Change-Id: I0d88c47a59d564d8d346642184e5b14e1864cf40 Reviewed-on: http://codereview.qt.nokia.com/3927 Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
* Copy core GL functionality to QtGui with QGL -> QOpenGL naming.Samuel Rødal2011-08-291-5/+5
| | | | | | Change-Id: Ibc989afa4a30dd184d41d1a1cd89f97196e48855 Reviewed-on: http://codereview.qt.nokia.com/3710 Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
* Move GL resource handling enablers to QtGui.Samuel Rødal2011-08-291-0/+1
| | | | | | | | | | | Made resource handling more robust by attempting to free GL resources in the correct thread, and not forcing a context to become current to free resources. Change-Id: Ie81d4005b608972375755571d9b50ce82080709b Reviewed-on: http://codereview.qt.nokia.com/3258 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
* Added workable QScreen API on top of QPlatformScreen.Samuel Rødal2011-07-251-0/+2
| | | | | | | | | | | | | | | | | | | | | 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>
* add a platform interface for input method supportLars Knoll2011-06-221-0/+2
| | | | | | | | 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-221-19/+0
| | | | | | | | | | 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-211-2/+2
| | | | | | Rename QGuiGLFormat to QSurfaceFormat, and make QWindow sub-class of QSurface and QPlatformWindow sub-class of QPlatformSurface, instead of having QPlatformGLSurface accessor in QWindow.
* QWindowContext / QWindowFormat refactor.Samuel Rødal2011-06-101-4/+4
| | | | | | | | | | | | | To enable having a single GL context used for multiple drawables we need to de-couple the context class a bit more from the window class in the plugin API. Now contexts are created stand-alone based on a GL format and a share context, and when calling makeCurrent() a desired surface is specified. This maps well to GLX, EGL, Cocoa, AGL, and WGL, which all support this use case. QWindowContext is renamed to QGuiGLContext, and QWindowFormat is renamed to QGuiGLFormat. We have the ability to introduce a pbuffer or similar other offscreen GL drawable abstraction in the future.
* Add QEventDispatcherMac.Morten Sorvig2011-06-091-0/+8
| | | | | Create it directly in QGuiApplication for now, later on we'll move it to the cocoa plugin.
* Remove QPlatformEventLoopIntegration.Morten Sorvig2011-06-091-2/+0
| | | | | | | | Instead we'll let the platform plugins construct an QEventDispatcherQPA subclass. This API will be added later on. This temporarily breaks cocoa, uikit and opencode.
* add a platform interface for DnDLars Knoll2011-06-011-0/+1
| | | | | Use the simple in process DnD implementation for xcb.
* Clean up DnD codeLars Knoll2011-06-011-1/+0
| | | | | Some cleanups of the DnD code to prepare for creating a platform API.
* Windows: Bring back the HDC to the raster engine, Q_OS_WIN.Friedemann Kleint2011-05-311-0/+2
|
* move drag handling back to GuiLars Knoll2011-05-201-0/+5
| | | | | | | | | | Move the DnD related classes back into QtGui. Parts of the implementation is currently commented out and needs to be moved to QWidgetWindow. SC incompatible change: APIs taking QWidget * now take QObject *
* move files in src/gui into their final locationsLars Knoll2011-05-111-0/+88
| | | | | Rename the guikernel subdir to kernel and guiutil to util.
* library splitLars Knoll2011-05-071-246/+0
|
* split up qguivariant into two filesLars Knoll2011-05-061-2/+3
| | | | | | Move everything that will end up in QtWidgets into a qwidgetsvariant.cpp file. Currently this is QIcon and QSizePolicy only.
* move QPalette into QtGuiLars Knoll2011-05-061-4/+2
| | | | | also add QGuiApplication::palette() for the default application palette.
* moving some more files around.Lars Knoll2011-05-041-2/+11
|
* split kernel/ up according to the future library splitLars Knoll2011-05-041-82/+6
| | | | | | | Create a guikernel/ directory that contains the files that'll go into libQtGui. What remains in kernel/ will go into QtWidgets. In addition to that image/, painting/ and text will end up int QtGui.
* remove more QT3_SUPPORT codeLars Knoll2011-05-031-2/+2
|
* rename qwindow_qpa to qwindowLars Knoll2011-05-031-3/+3
|
* QGuiApplication is not QPA specificLars Knoll2011-05-031-3/+3
| | | | | Rename files to reflect that QGuiApplication is going to be used everywhere.
* split the HexString template class out of qstylehelperLars Knoll2011-05-031-0/+1
| | | | | | The class is used in quite a few places and has no relation to styles. Split it out into it's own file to remove a dependency between Gui and Widgets.
* QWS removal, part 2Lars Knoll2011-05-021-27/+1
|
* remove Qt/Embedded.Lars Knoll2011-05-021-2/+2
| | | | Everybody use Lighhouse instead :)
* Add QWidgetWindow to bridge events from QWindow to QWidget.Samuel Rødal2011-04-291-0/+2
| | | | | Gets rid of QWidget dependencies in QWindow and QWindowSurface. Events are not delivered to the correct child widget yet.
* Add resize event support to QWindow.Samuel Rødal2011-04-281-0/+1
| | | | (cherry picked from commit 12b4e7e5a2b18cdd23f540821e1f2785f62b0b9a)
* QGuiApplication refactor in progress.Samuel Rødal2011-04-281-0/+3
| | | | | Things are a bit broken now... At least wiggly runs :) (cherry picked from commit 6cdcf395ffe1e051d109a45ecd71141173a4a4c0)
* Added QWindowContext and got wiggly up and running with xcb.Samuel Rødal2011-04-281-0/+2
| | | | (cherry picked from commit c980e4ef4ebc7699a6c3a7529d3f08ebafc21ffe)
* Make QtGui compile again....Jørgen Lind2011-04-281-3/+3
| | | | | Comment out stuff in QWidget::create_sys (cherry picked from commit 1bbc6a6bb2bf1175080e7a5ba6834ff642fd47ab)
* QPlatformWindowFormat -> QWindowFormat fixes.Samuel Rødal2011-04-281-2/+2
| | | | (cherry picked from commit 4c2eba33ca0433386fa1273fb1bc14adb852d9ac)
* Just some more on QWindow. Nothing worksJørgen Lind2011-04-281-11/+13
| | | | (cherry picked from commit 3acf7aa979630a57791e2a039b1b7b0b85b0aac8)
* Initial import from the monolithic Qt.Qt by Nokia2011-04-271-0/+329
This is the beginning of revision history for this module. If you want to look at revision history older than this, please refer to the Qt Git wiki for how to use Git history grafting. At the time of writing, this wiki is located here: http://qt.gitorious.org/qt/pages/GitIntroductionWithQt If you have already performed the grafting and you don't see any history beyond this commit, try running "git log" with the "--follow" argument. Branched from the monolithic repo, Qt master branch, at commit 896db169ea224deb96c59ce8af800d019de63f12