catalinr
8c2b9423c2
Fix compilation by using appropriate subdirs for Qt headers
...
This fixes wxQt build under MSW.
Closes https://github.com/wxWidgets/wxWidgets/pull/1533
2019-09-27 13:27:44 +02:00
Paul Cornett
8791313aff
Add defaults to switch statements to avoid many warnings about unhandled enum values
2019-04-05 09:26:05 -07:00
Vadim Zeitlin
6370662cc8
Merge branch 'qt-dnd'
...
Initial drag-and-drop implementation for wxQt.
Closes https://github.com/wxWidgets/wxWidgets/pull/1205
2019-02-02 15:54:21 +01:00
Vadim Zeitlin
0145916fb6
Unindent contents of anonymous namespaces
...
No real changes, only formatting.
2019-02-02 15:50:13 +01:00
Jay Nabonne
111a37fd73
Get rid of another switch/default issue by avoiding switch altogther. Makes the code more readable (I think) actually.
2019-01-30 16:09:18 +00:00
Jay Nabonne
653979936b
Clean up the code a bit to follow the guidelines, including handling of default in switches and line length.
2019-01-30 15:59:37 +00:00
Jay Nabonne
58639481c6
Make OnData behave like other implementations in terms of paying attention to what GetData returns.
2019-01-30 15:25:51 +00:00
Jay Nabonne
76eee80738
Initialize m_pendingMimeData to NULL!
2019-01-30 15:21:43 +00:00
Jay Nabonne
4844c80e18
Add some consts to const things.
2019-01-30 15:19:39 +00:00
Jay Nabonne
32780f00f2
Combine two separate anonymous namespaces into one.
2019-01-30 15:11:46 +00:00
Jay Nabonne
6fa65900f9
Implement cursor overriding for DnD on wxQt.
...
This uses the cursor variant (as opposed to the icon one) since these actually are cursors, the base class looks like cursors are meant to be used, and the icon thing looks like a hack.
2019-01-30 14:22:01 +00:00
Jay Nabonne
abdebb1895
Do not allow drag and drop process on targets that do not support the formats dragged.
...
Privatize some Impl members.
2019-01-30 10:42:01 +00:00
Graham Dawes
fbc39bac54
Fix Linux build
2019-01-30 09:12:08 +00:00
Jay Nabonne
6ba6d9967a
Change Qt wxDropTarget to remember widget and disconnect self when necessary. Clean up naming a bit.
2019-01-29 17:11:09 +00:00
Jay Nabonne
87f6707123
Fix some spacing transgressions.
2019-01-29 16:58:52 +00:00
Jay Nabonne
8c63c40953
Clean up wxDropTarget and wxWindow a bit more by moving DnD stuff fully into drop target (besides connecting and disconnecting).
...
Window doesn't have to know more than how to hook itself up.
Impl now performs function of event filter/adapter.
2019-01-29 16:55:31 +00:00
Jay Nabonne
2bceaaa572
Clean up wxDropTarget (first stage) by moving Qt specific stuff (e.g. QMimeData) into an Impl.
2019-01-29 16:29:58 +00:00
Jay Nabonne
323cbdabdb
Implement initial try of wxDropTarget.
...
The drop target needs to use an event filter to capture drag-and-drop events from the window.
2019-01-29 16:13:41 +00:00
Jay Nabonne
0dc1654ab6
Get simple (text) drag and drop case working with drop source.
...
We ended up not needing the underlying QMimeData-based implementation, as the classes sitting on top of it
bypassed it anyway. It now treats the hierarchy as a pure data storage mechanism, generating the
QMimeData when drag-drop is initiated.
2019-01-28 15:30:25 +00:00
Maarten Bent
7f0d7ef520
Fix several build errors in WXQT
...
Move declaration of wxOwnerDrawnBase::ms_defaultMargin to correct file.
Do not include headers when wxUSE_UIACTIONSIMULATOR is disabled.
Add guards for wxUSE_DRAG_AND_DROP.
Use a different wxFont constructor in printing sample, which is also available in WXQT.
2018-09-30 17:23:58 +02:00
Vadim Zeitlin
df13791078
Merge wxQT branch into the trunk.
...
This merges in the latest sources from GSoC 2014 wxQt project with just a few
minor corrections, mostly undoing wrong changes to common files in that branch
(results of a previous bad merge?) and getting rid of whitespace-only changes.
Also remove debug logging from wxGrid.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77455 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-08-24 01:50:11 +00:00
Václav Slavík
e7f8e8b788
removed stubs and qt 'ports'
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10334 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-26 10:05:06 +00:00
Karsten Ballüder
01b2eeec59
replaced by stubs files
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@509 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1998-08-12 09:16:21 +00:00
Robert Roebling
7c78e7c702
More configure fixes
...
/src/qt and /include/wx/qt now have stubs. Not everything
compiles yet. But it's a start..
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@455 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1998-08-07 21:32:13 +00:00