summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qwindow.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* QWindow::mapToGlobal/mapFromGlobal and move()Gunnar Sletta2011-08-291-0/+35
| | | | | | | Change-Id: If1909b9ce468a8708cb25d5a2fbe8ebd90bd958a Reviewed-on: http://codereview.qt.nokia.com/3702 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
* Preliminary change to get resizeEvents for QWindow::resize() callsGunnar Sletta2011-08-241-1/+2
| | | | | | | Change-Id: I43e1d7fb98f1b20939dba8cdccffa4dcb99a7369 Reviewed-on: http://codereview.qt.nokia.com/3453 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Morten Johan Sørvig <morten.sorvig@nokia.com>
* Fixed empty if statement in QWindow.cppOlli Werwolff2011-08-221-1/+1
| | | | | | | Change-Id: Ib324eb30da1e16f01b9655ed293244fb50b621b8 Reviewed-on: http://codereview.qt.nokia.com/3289 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
* Implement "quit on last window closed" logic for QWindowGunnar Sletta2011-08-111-2/+30
| | | | | | | Change-Id: Ide33578ad60796f3e267b09be76cda87eaf873d0 Reviewed-on: http://codereview.qt.nokia.com/2827 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
* Made QWindow::setVisible() send show and hide events.Samuel Rødal2011-08-101-2/+19
| | | | | | | Change-Id: Ideae15f7bd6801d7afe2354627c0893b0b6a32ca Reviewed-on: http://codereview.qt.nokia.com/2741 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
* Added some convenience to QWindowGunnar Sletta2011-08-051-0/+13
| | | | | | | Change-Id: I367f5e3f586661322184cfa5f7653814569cb6e3 Reviewed-on: http://codereview.qt.nokia.com/2611 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
* QWindow: Do not call setters for window state, type etc in creation.Friedemann Kleint2011-07-261-7/+0
| | | | | | | | | | | | | | Remove the need to do housekeeping and comparison of window types, etc in the platform window setters. They can safely assume the flags have really changed and something (potentially recreating the window) has to be done. createPlatformWindow() must then query all parameters from QWindow and apply them. Change-Id: I497060ba46a955cad1fa3cbb5eb91438a420b80e Reviewed-on: http://codereview.qt.nokia.com/2198 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
* Added workable QScreen API on top of QPlatformScreen.Samuel Rødal2011-07-251-1/+33
| | | | | | | | | | | | | | | | | | | | | 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>
* Reintroduce QWindow::SurfaceTypeMorten Sorvig2011-06-221-0/+12
| | | | | | | On Cocoa it makes sense to distinguish between the two window types. Reviewed-by: Samuel
* Made QExposeEvent public and added exposeEvent() in QWindow.Samuel Rødal2011-06-221-0/+8
| | | | This is needed for applications that use QBackingStore directly.
* OpenGL API refactor.Samuel Rødal2011-06-211-27/+11
| | | | | | Rename QGuiGLFormat to QSurfaceFormat, and make QWindow sub-class of QSurface and QPlatformWindow sub-class of QPlatformSurface, instead of having QPlatformGLSurface accessor in QWindow.
* Rename QWindowSurface -> QBackingStore and split into platform / public.Samuel Rødal2011-06-211-10/+0
| | | | Also get rid of GL window surface and related classes.
* Make glx wayland backends working.Laszlo Agocs2011-06-201-0/+1
|
* Added frameMargins() API and support in XCB plugin.Samuel Rødal2011-06-101-0/+8
|
* QWindowContext / QWindowFormat refactor.Samuel Rødal2011-06-101-19/+13
| | | | | | | | | | | | | 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.
* Made tst_QWidget::updateWhileMinimized() pass.Samuel Rødal2011-06-061-0/+8
| | | | | | | | | | This requires adding a couple of window system interface events, namely Map, Unmap, and Expose. When a widget is minimized on X11 it is unmapped, and thus update requests should not be delivered. Instead the event will delivered when the widget is mapped, which causes an Expose event to be sent. The Unmap and Expose event thus need to be handled in QWidgetWindow, and Map is also added for the purpose of API symmetry (and for future needs).
* Add support for mouse and keyboard grab.Laszlo Agocs2011-06-031-0/+16
| | | | Reviewed-by: Samuel Rødal
* Fix isTopLevel() in QWindow.Laszlo Agocs2011-05-311-1/+1
| | | | | | | | This also makes modal hints set properly for dialogs so the additional checks during active window change are not needed anymore. Reviewed-by: Samuel Rødal
* Added QWindow::setTransientParent().Samuel Rødal2011-05-231-4/+19
| | | | | Make the transient parent relationship explicit instead of having it encoded through the window flags.
* Remove superfluous setter / getter for QWindowFormat in QWindow.Samuel Rødal2011-05-231-11/+0
|
* Add QGuiApp::topLevelAt and fix visibility flagLars Knoll2011-05-221-2/+8
| | | | | | | Add and remove windows to the list of top level windows. Correctly set the visibility flag for windows and implement a QGuiApplication::topLevelAt() method that uses the QPlatformScreen.
* Added QGuiApplication::activeWindow().Samuel Rødal2011-05-201-0/+3
|
* Better setWindowFlags() support in XCB window.Samuel Rødal2011-05-191-3/+0
| | | | | We need to re-create the native window in setParent, as used to be done in QWidgetPrivate::setParent_sys in qwidget_x11.cpp.
* Add QWindow::setWindowModality().Samuel Rødal2011-05-181-0/+18
| | | | Also set corresponding window manager hints in xcb plugin.
* Re-implement transient window support in XCB backend.Samuel Rødal2011-05-161-5/+11
| | | | | | If a QWindow has a parent but is top-level the corresponding QPlatformWindow should not be re-parented but instead be made transient for the parent window if possible.
* Implement QWindow minimum/maximum/base size hints and size increments.Samuel Rødal2011-05-161-10/+66
|
* Initial QPlatformWindow window state setting API and xcb implementation.Samuel Rødal2011-05-131-6/+16
|
* move files in src/gui into their final locationsLars Knoll2011-05-111-0/+457
| | | | | Rename the guikernel subdir to kernel and guiutil to util.
* split kernel/ up according to the future library splitLars Knoll2011-05-041-458/+0
| | | | | | | 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 QApp dependenciesLars Knoll2011-05-041-1/+1
| | | | | | platformIntegration() lives in QGuiApplication QFont and QFontDatabase can live with QGuiApp only as well.
* rename qwindow_qpa to qwindowLars Knoll2011-05-031-0/+458