summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Update dependency list in xcb READMEJørgen Lind2011-06-101-1/+1
|
* QtPlatformSupport: A helper library for platform pluginsJørgen Lind2011-06-1064-256/+179
| | | | | | | | 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
* Actually add QEventDispatcherMac.Morten Sorvig2011-06-102-0/+1368
|
* QWindowContext / QWindowFormat refactor.Samuel Rødal2011-06-1077-1038/+1426
| | | | | | | | | | | | | 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.
* Use XLookupString for translating key events.Laszlo Agocs2011-06-093-35/+82
| | | | | | | | | There seems to be no easy equivalent in the XCB world and the fallback we currently have is really incomplete. Hence we will call XLookupString with a fake XKeyEvent if XCB_USE_XLIB is enabled. Reviewed-by: Samuel Rødal
* Add QEventDispatcherMac.Morten Sorvig2011-06-099-184/+19
| | | | | Create it directly in QGuiApplication for now, later on we'll move it to the cocoa plugin.
* Remove QPlatformEventLoopIntegration.Morten Sorvig2011-06-0910-425/+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.
* Bail out from cursor creation when malloc fails.Laszlo Agocs2011-06-091-0/+6
|
* Get modifier mapping using standard X, no need for libxkbcommon here.Laszlo Agocs2011-06-092-33/+52
| | | | Reviewed-by: Samuel Rødal
* Create custom cursors via XRender.Laszlo Agocs2011-06-096-15/+120
| | | | Reviewed-by: Samuel Rødal
* Cursor support in xcb plug-in.Laszlo Agocs2011-06-0819-178/+1002
| | | | | | | 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
* Undefine DrawText in qlineedit.cppOlli Werwolff2011-06-081-0/+3
| | | | | | | | | There is a #define DrawText DrawTextW in winuser.h which is included in windows.h so that the enum value in line 1981 is seen as DrawTextW and thus is not a valid enum value on Windows. Reviewed-by: Samuel Reviewed-by: Lars Knoll
* Most checks for windows in widgets have to be ws specificOlli Werwolff2011-06-084-8/+8
| | | | | Reviewed-by: Samuel Reviewed-by: Lars Knoll
* use correct includes in qaccessible_win.cpp/qwizard_win_p.hOlli Werwolff2011-06-082-5/+5
| | | | | Reviewed-by: Samuel Reviewed-by: Lars Knoll
* Do not compile _win files when -qpa is usedOlli Werwolff2011-06-084-5/+5
| | | | | Reviewed-by: Samuel Reviewed-by: Lars Knoll
* QTextDocumentLayout has to be exported as it is used in widgetsOlli Werwolff2011-06-081-1/+1
| | | | | Reviewed-by: Samuel Reviewed-by: Lars Knoll
* Fixed compilation with QT_NO_PRINTEROlli Werwolff2011-06-081-0/+2
| | | | | Reviewed-by: Samuel Reviewed-by: Lars Knoll
* cosmetic changesLars Knoll2011-06-082-5/+5
|
* Fix behaviour after WM_TAKE_FOCUSLars Knoll2011-06-081-1/+0
| | | | | | | We should not call requestActivateWindow() in reaction to WM_TAKE_FOCUS. Looks like it should only be done if the focus should in fact go to a modal child of the widget.
* Use Q_WIDGETS_EXPORT for widgets libraryOlli Werwolff2011-06-08227-450/+465
| | | | Reviewed-by: Lars Knoll
* revert accidental commitLars Knoll2011-06-071-1/+1
|
* remove unused codeLars Knoll2011-06-071-118/+0
|
* cleanups codeLars Knoll2011-06-079-166/+147
| | | | | | | Make QXcbClipboard and QXcbDrag a QXcbObject to simplify the code. Use the predefined atoms in xproto.h instead of our own defines.
* Implement QDropEvent::source() againLars Knoll2011-06-075-10/+8
| | | | | | | | QDropEvent::source() now returns a QObject instead of a widget, matching the implementation in QDrag. Reviewed-by: Samuel
* reset certain global variables on deletionLars Knoll2011-06-071-0/+2
| | | | | | | qt_button_down needs to be reset to 0 if it points to the widget being deleted. 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
* Fix some remaining issues with DnDLars Knoll2011-06-074-93/+10
| | | | | | | | | Do not set the event mask of the window we drop onto to NO_EVENT. Always use the clipboards requestor window to convert selections. Reviewed-by: Samuel
* add WM support classLars Knoll2011-06-079-15/+285
| | | | | | | | | Add a QXcbWMSupport class to better integrate with NET_WM compliant window managers. Suppport NET_WM_USER_TIME on windows. Reviewed-by: Samuel
* Implement XDnD in the xcb pluginLars Knoll2011-06-078-752/+656
| | | | | | | | | 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
* X11 DnD implementationLars Knoll2011-06-0710-26/+1883
| | | | | | | | | | | Initial code for DnD on X11. Only Xdnd based, Motif DnD is being ignored. The code is currently limited to dropping stuff onto the application. Starting drags is not yet implemented. 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
* Cocoa: Implement raise() and lower().Morten Sorvig2011-06-072-0/+14
|
* Cocoa: Implement setWindowTitle.Morten Sorvig2011-06-072-0/+9
|
* Fix Cocoa mouse position handling.Morten Sorvig2011-06-071-4/+4
| | | | | | | I'm not sure what "local" and "global" means for QWindowSystemInterface::handleMouseEvent. Sending the mouse position in window coordinates for both works.
* Buildfix for Mac OSRichard Moe Gustavsen2011-06-071-1/+1
| | | | | | Since 'widgets' now is a separate library outside GUI, some previously hidden symbols now needs to be exported. This patch will make 'widgets' build.
* Made tst_QWidget::updateWhileMinimized() pass.Samuel Rødal2011-06-0613-3/+154
| | | | | | | | | | 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).
* Fixed warning about missing return in qmessagebox.cppSamuel Rødal2011-06-061-0/+2
|
* Set visibility state.Morten Sorvig2011-06-061-2/+5
|
* Make building of platform plugins indifferent if its out of sourceJørgen Lind2011-06-0643-223/+316
| | | | | This requires some source files to be shipped with the Qt install They are now copied into QT_INSTALL_DATA/platform
* Made tst_QWidget::repaintWhenChildDeleted() pass.Samuel Rødal2011-06-061-0/+8
| | | | Implement some missing functionality in QWidget::destroy().
* Prevent tst_QWidget::showAndMoveChild() from failing on KDE.Samuel Rødal2011-06-061-0/+1
| | | | | Since we grab the desktop the KDE task bar appears on top of the window we're interested in. It's preferable to make the window a bit smaller.
* Avoid setting the active window to null when there is a FocusIn queued.Laszlo Agocs2011-06-064-1/+42
|
* Implemented QXcbScreen::topLevelAt(const QPoint &p).Samuel Rødal2011-06-064-3/+52
| | | | This makes the tst_QWidget::widgetAt() auto-test pass.
* Make XCB plugin work better in combination with auto-tests.Samuel Rødal2011-06-061-0/+1
| | | | | | | | | When an auto-test calls processEvents() indirectly via QTest::qWait(), QAbstractEventDispatcher::aboutToBlock() doesn't get emitted since the processEvents() implementation gets called without the QEventLoop::WaitForMoreEvents flag set. Since the auto-tests depend on all events getting delivered, we need to process the XCB events on awake() as well.
* Made the tst_QWidget::widgetAt() test a bit more robust.Samuel Rødal2011-06-061-10/+4
| | | | | The QTRY_VERIFY() should include the whole test, not just whether we got a widget or not, since it might be the wrong one.
* Basic QDesktopWidget support.Samuel Rødal2011-06-032-2/+11
| | | | | Makes it possible to use grabWindow on the desktop widget with the xcb plugin, which gives us a few more passing tests in tst_QWidget.
* Remove tst_QWidget::painterRedirection().Samuel Rødal2011-06-031-59/+0
| | | | | We've removed support for painter redirection, QWidget::render() should be used instead.
* Remove out-of-date TODOs.Laszlo Agocs2011-06-031-7/+1
|