summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel
Commit message (Collapse)AuthorAgeFilesLines
* Get rid of some obsolete functions in QImage / QPixmap / QPixmapData.Samuel Rødal2011-07-181-1/+1
| | | | | | | | Change-Id: I0d2412c9196475b926a17de9fcc3281f6625fae0 Reviewed-on: http://codereview.qt.nokia.com/1733 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Olivier Goffart <olivier.goffart@nokia.com> Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
* Use PlatformNativeInterface to obtain backingStore's dcOlli Werwolff2011-07-122-0/+9
| | | | | | Change-Id: I6ec2fc0b8e7696fdfe4468920228df2d21c933fd Reviewed-on: http://codereview.qt.nokia.com/1501 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
* Use PlatformNativeInterface to obtain handlesOlli Werwolff2011-07-071-1/+1
| | | | | | | Change-Id: I8cdf3d5477e72e89bcde46ccb6670320bf4dd797 Reviewed-on: http://codereview.qt.nokia.com/1270 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
* Merge remote branch 'gerrit/master' into refactorLars Knoll2011-07-063-77/+169
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: config.tests/unix/opengldesktop/opengldesktop.cpp examples/itemviews/interview/interview.pro examples/mainwindows/mainwindow/mainwindow.pro examples/openvg/README examples/richtext/textedit/textedit.pro examples/tools/undo/undo.pro src/corelib/global/qglobal.h src/corelib/kernel/qcoreapplication.h src/corelib/kernel/qcoreevent.h src/corelib/kernel/qmetatype.h src/gui/kernel/qevent.cpp src/gui/kernel/qevent.h src/gui/painting/qpaintengine_raster.cpp src/gui/painting/qpaintengine_raster_p.h src/gui/text/qfontdatabase.cpp src/opengl/qgl.h src/openvg/qpaintengine_vg.cpp src/plugins/platforms/wayland/qwaylandwindow.cpp tests/auto/qmainwindow/qmainwindow.pro Change-Id: I6bfb586740a68379bb99f4612ec993393a5f3234
| * Add QScreenOrientationChangeEvent and rotation support to wayland clientLasse Holmstedt2011-07-043-0/+133
| | | | | | | | | | | | | | | | | | | | | | Qt Compositor propagates screen orientation changes to wayland, which are then picked up by the wayland client. The wayland client then sends a QScreenOrientationChangeEvent to QApplication, which can handle the orientation change. Change-Id: Ieb2225e52b7e3c318648f2cb21dab7937f301505 Reviewed-on: http://codereview.qt.nokia.com/1063 Reviewed-by: Matthias Ettrich
| * make QHoverEvent inherit from QInputEventLars Knoll2011-06-303-7/+9
| | | | | | | | | | | | | | | | | | | | QHoverEvent is an input event and as such should also contain the current keyboard modifiers. Change-Id: Ic403a8511eb991a9c6b5132908af1d5900869361 Reviewed-on: http://codereview.qt.nokia.com/937 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Paul Olav Tvete <paul.tvete@nokia.com>
| * Use floating point coordinates in eventsLars Knoll2011-06-273-75/+34
| | | | | | | | | | | | | | | | | | | | Use FP coordinates in Mouse, Wheel and Hover events. Change-Id: I8b43ca257620b4653ae5d6b6122c516384db1e48 Reviewed-on: http://codereview.qt.nokia.com/766 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Paul Olav Tvete <paul.tvete@nokia.com>
| * Fix event delevery orderOlivier Goffart2011-06-271-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Some functions (such as QObject::moveToThread) did not keep the event ordered by priority. And because qUpperBound is used to add events, that mean new events would not be inserted in order. Task-number: QTBUG19637 Change-Id: I38eb9addb1cdd45b8566e000361ac6e5f1f2c2b8 Reviewed-on: http://codereview.qt.nokia.com/733 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Bradley T. Hughes <bradley.hughes@nokia.com> Reviewed-by: Olivier Goffart <olivier.goffart@nokia.com>
| * Support -qtnamespace and -qtlibinfix againLiang Qi2011-06-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | This fix is for qtbase libraries with -qtnamespace and -qtlibinfix options in configure. Task-number: QTBUG-19964 Change-Id: I2f2ff1748f2c1c2b20d5f73b6be36f68a7a26cef Reviewed-on: http://codereview.qt.nokia.com/505 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com> Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
| * Initialize member variable.Gunnar Sletta2011-06-141-1/+2
| | | | | | | | | | | | | | Change-Id: Ica42c77614fa4fa9ae7692e00d3fc796219aacdc Reviewed-on: http://codereview.qt.nokia.com/466 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
| * Fix infinite recursion when changing geometry on MacGabriel de Dietrich2011-05-261-7/+5
| | | | | | | | | | | | | | | | | | | | | | | | Some complex widgets might get a negatively sized rectangle when calling QWidgetPrivate:setGeometry_sys_helper(), triggering a infinite recursion. Normalizing the rectangle size before checking for size change is enough to break this infinite recursion. Task-number: QTBUG-17333 Change-Id: I4682c3088ea53fb9f28f746c8264f573b5284825 Reviewed-on: http://codereview.qt.nokia.com/156 Reviewed-by: Olivier Goffart <olivier.goffart@nokia.com>
| * Compile. Morten Sorvig2011-05-251-13/+0
| | | | | | | | | | Change 0748751c brought in an extra copy of this function.
* | Start porting the Mac menu system to QPA.Morten Sorvig2011-07-061-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Global changes: qglobal.h: remove code that sets Q_WS_MAC and Q_MAC_USE_COCOA - this is dead code now. Add qt_widget_helpers_mac_p.h/mm which will contain helper functions needed for widgets on Qt 5. Menu-related changes: Set AA_DontUseNativeMenuBar before creating the platform plugin. Change Q_WS_MAC to Q_OS_MAC in the menu code. Remove Q_MAC_USE_COCOA defines and Carbon code paths. Move some qt_mac helper functions only used by the menu system to qmenu_mac.mm. #ifdef out some code paths that require further porting. Native menus are now disabled by default but can be enabled by the QPA plugins that want them by clearing AA_DontUseNativeMenuBar. Since we at compile time don't know which plugin will be loaded the Mac menu code is always included when building on OS X. (The above is currently only relevant for the Cocoa plugin.)
* | Get declarative and wayland EGL backend working for Qt compositor.Samuel Rødal2011-06-233-1/+11
| |
* | Add QWindowSystemInterface::windowSystemEventsQueued()Morten Sorvig2011-06-233-1/+7
| | | | | | | | | | | | 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-0/+38
| | | | | | | | | | | | | | | | | | | | 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.
* | Reintroduce QWindow::SurfaceTypeMorten Sorvig2011-06-223-0/+19
| | | | | | | | | | | | | | On Cocoa it makes sense to distinguish between the two window types. Reviewed-by: Samuel
* | Compile.Friedemann Kleint2011-06-221-0/+1
| |
* | Make xcb work again after event dispatcher changes.Morten Johan Sorvig2011-06-221-1/+0
| | | | | | | | | | | | The platform plugin/event dispatcher creation order has now been reversed and the event dispatcher cannot be accessed during plugin construciton.
* | add QInputMethodQueryEventLars Knoll2011-06-222-0/+63
| | | | | | | | | | | | | | QInputMethodQueryEvent will replace the old inputMethodHints() and inputMethodQuery() APIs in QWidget. It has the advantage that it works nicely with any kind of QObject.
* | add a platform interface for input method supportLars Knoll2011-06-225-0/+158
| | | | | | | | | | | | | | | | 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-2212-1874/+56
| | | | | | | | | | | | | | | | | | | | 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.
* | Made QExposeEvent public and added exposeEvent() in QWindow.Samuel Rødal2011-06-225-12/+44
| | | | | | | | This is needed for applications that use QBackingStore directly.
* | OpenGL API refactor.Samuel Rødal2011-06-2113-203/+161
| | | | | | | | | | | | 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-215-25/+8
| | | | | | | | Also get rid of GL window surface and related classes.
* | Compile fixes.Samuel Rødal2011-06-211-0/+1
| |
* | Add a platform API for QClipboard::ownsMode()Lars Knoll2011-06-203-4/+9
| | | | | | | | Simply forward ownsMode() to the QPlatformClipboard.
* | Make glx wayland backends working.Laszlo Agocs2011-06-201-0/+1
| |
* | Compile.Friedemann Kleint2011-06-141-0/+1
| |
* | Added frameMargins() API and support in XCB plugin.Samuel Rødal2011-06-104-0/+19
| |
* | Compile Windows.Friedemann Kleint2011-06-102-2/+2
| |
* | Actually add QEventDispatcherMac.Morten Sorvig2011-06-102-0/+1368
| |
* | QWindowContext / QWindowFormat refactor.Samuel Rødal2011-06-1015-362/+430
| | | | | | | | | | | | | | | | | | | | | | | | | | 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-093-1/+18
| | | | | | | | | | Create it directly in QGuiApplication for now, later on we'll move it to the cocoa plugin.
* | Remove QPlatformEventLoopIntegration.Morten Sorvig2011-06-099-424/+17
| | | | | | | | | | | | | | | | 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.
* | Cursor support in xcb plug-in.Laszlo Agocs2011-06-084-4/+40
| | | | | | | | | | | | | | Custom cursor pixmaps with depth greater than 1 are not yet supported and will be converted to monochrome always. Reviewed-by: Samuel Rødal
* | Avoid out of bounds writeLars Knoll2011-06-081-2/+4
| | | | | | | | Reviewed-by: Samuel
* | Fixed compilation with QT_NO_PRINTEROlli Werwolff2011-06-081-0/+2
| | | | | | | | | | Reviewed-by: Samuel Reviewed-by: Lars Knoll
* | Implement QDropEvent::source() againLars Knoll2011-06-072-7/+5
| | | | | | | | | | | | | | | | QDropEvent::source() now returns a QObject instead of a widget, matching the implementation in QDrag. Reviewed-by: Samuel
* | Protect against deleted windowsLars Knoll2011-06-071-0/+24
| | | | | | | | | | | | | | Check that the window is still there before trying to deliver an event to it. Reviewed-by: Samuel
* | Initialize variableLars Knoll2011-06-071-0/+1
| | | | | | | | Reviewed-by: Samuel
* | Implement XDnD in the xcb pluginLars Knoll2011-06-072-54/+55
| | | | | | | | | | | | | | | | | | Ported most of the code to support dragging from qdnd_x11.cpp to xcb. Some features are still not working 100% correct, but it's becoming usable. Reviewed-by: Samuel
* | Add a startDrag to QPlatformDragLars Knoll2011-06-072-1/+4
| | | | | | | | | | | | | | | | This can be used to initialize data when a drag starts. The Xdnd implementation at least has a need for it. Reviewed-by: Samuel
* | Made tst_QWidget::updateWhileMinimized() pass.Samuel Rødal2011-06-067-1/+104
| | | | | | | | | | | | | | | | | | | | 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-034-0/+37
| | | | | | | | Reviewed-by: Samuel Rødal
* | add a platform interface for DnDLars Knoll2011-06-017-142/+132
| | | | | | | | | | Use the simple in process DnD implementation for xcb.
* | Clean up DnD codeLars Knoll2011-06-014-480/+403
| | | | | | | | | | Some cleanups of the DnD code to prepare for creating a platform API.
* | Have a sensible default double click interval.Laszlo Agocs2011-05-311-2/+2
| | | | | | | | | | | | | | Having 0 as default would disable double clicks completely which is not really good. Reviewed-by: Samuel Rødal
* | Windows: Bring back the HDC to the raster engine, Q_OS_WIN.Friedemann Kleint2011-05-313-3/+135
| |
* | 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