Sean D'Epagnier
9f39eeb5e9
wxqt: improve wxbitmap and wxmask implementation
2017-11-06 02:04:23 +01:00
Sean D'Epagnier
e7ca3220f3
improve wxqt behavior
2017-11-06 02:04:23 +01:00
Sean D'Epagnier
8be71bd900
fix failed assertions in wxqt from newer wx library code
2017-11-06 02:04:23 +01:00
Sean D'Epagnier
4e1ddab3ad
add stubs for new opengl formats to wxqt, this fixes opengl for wxqt
2017-11-06 02:04:23 +01:00
Vadim Zeitlin
97dcc02db5
Fix wxQt compilation after first week day changes
...
Fix typo in its version of wxCalendarCtrl.
See https://github.com/wxWidgets/wxWidgets/pull/522
2017-09-11 19:48:09 +02:00
Lauri Nurmi
2f2700b2dd
Automatically determine the first weekday for a calendar control
...
If neither wxCAL_SUNDAY_FIRST or wxCAL_MONDAY_FIRST was given, use
wxDateTime::GetFirstWeekDay() to automatically determine the preferred
day.
This changes the earlier default behaviour, which was to use Sunday
if not otherwise specified. However, the wxGTK native calendar control
ignored this behaviour anyway.
2017-09-02 17:02:35 +03:00
Graham Dawes
d639e4ffce
Fix wxQt build errors when using gcc 4.4
...
Closes #17733 .
2016-11-30 16:13:46 +01:00
Vadim Zeitlin
cfc1681b4c
Virtualize wxUIActionSimulator implementation
...
Extract platform-specific code in a wxUIActionSimulatorImpl-derived class
instead of keeping it in wxUIActionSimulator itself.
This will allow determining which implementation to use dynamically (i.e. at
run-time and not compile-time) to use later and already allows to get rid of
an __WXOSX__ #ifdef in common code.
2016-05-23 03:00:49 +02:00
Dimitri Schoolwerth
1e78bf639e
Add micro version to toolkit version functions
...
Support micro versions in wxAppTraits::GetToolkitVersion and
wxPlatformInfo functions related to toolkit versions.
2016-02-29 10:05:43 +01:00
Vadim Zeitlin
a6155cfe11
Another attempt to fix wxUIActionSimulator compilation in wxQt
...
Pass QWindow to {mouse,key}Event() functions for Qt 5.3+, apparently Qt
documentation is wrong and simply wasn't updated since Qt4.
2016-02-26 12:19:30 +01:00
Vadim Zeitlin
4b9dc20956
Remove or make optional tons of debug messages from wxQt
...
Using the library wasn't really possible with all the debug messages it
generated, so either suppress them completely or turn them into trace messages
which can be activated on demand if needed.
2016-02-24 23:12:37 +01:00
Vadim Zeitlin
67f97053bd
Avoid warning about missing return value in wxCheckBox code
...
Handle unknown checkbox values as well, if only to silence the compiler.
2016-02-24 23:09:13 +01:00
Vadim Zeitlin
4d27a5dde3
Compilation fix for wxQt wxUIActionSimulator with Qt 5.3
...
QTest::mouseEvent() and keyEvent() want QWindow, not QWidget, in this version.
2016-02-24 22:58:07 +01:00
Vadim Zeitlin
9db24be496
Add missing headers to fix PCH-less wxQt build
...
Just include the headers of the classes being used.
2016-02-24 22:57:19 +01:00
Paul Cornett
56701052eb
remove const from pass-by-value parameters
2016-01-16 10:55:01 -08:00
JulianSmart
a797c9d956
Make wxBitmap ctors consistent wrt passing scale for conversion from wxImage; HiDPI adaptation for propgrid buffer and wxRTC images
2015-11-15 12:49:25 +00:00
Tim Stahlhut
fb5d1a002c
Fixes for wxQt build under Cygwin
...
Include the missing headers, notable QtGui/QFont from wx/fontutil.h which uses
a QFont object.
Closes #16750 .
2015-10-25 18:00:05 +01:00
Catalin
d31cfba540
Fixed wxAppConsole spelling in the comments.
2015-06-03 17:14:09 +03:00
Dimitri Schoolwerth
8f8d58d193
Use wx-prefixed macros throughout the repository.
...
Change {DECLARE,IMPLEMENT}_*CLASS and {DECLARE,BEGIN,END}_EVENT_TABLE
occurrences to use the wx-prefixed version of the macros.
2015-04-23 22:00:35 +04:00
Vadim Zeitlin
bf712f05ac
Generate wxEVT_SPINCTRL of the correct wxSpinEvent type.
...
Handlers for this event expect to get wxSpinEvent but wxMSW, wxGTK1 and wxQT
sent an object of base wxCommandEvent class which resulted in invalid memory
access in the handlers when using the derived class methods such as Veto().
Closes #16948 .
2015-04-10 16:38:31 +02:00
Mariano Reingart
e59e6abe7d
remove wxMISSING_IMPLEMENTATION because wxQtDCImpl::DoBlit is implemented
...
Thanks @seandepagnier
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@78388 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2015-01-19 03:05:09 +00:00
Mariano Reingart
e01005e27c
Fix problem with scrollbar events in wxQT
...
the local variable event shadowed the parameter which caused
the incorrect value to be sent
Thanks @seandepagnier
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@78387 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2015-01-19 03:03:59 +00:00
Mariano Reingart
c8e56fa2cf
Fix crash from possible NULL pointer in wxQT list ctrl
...
Thanks @seandepagnier
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@78386 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2015-01-19 03:02:23 +00:00
Mariano Reingart
0476cf3791
Fix problem with clipping region in wxqt.
...
QPainter cannot set the clipping region when it is not active.
Thanks @seandepagnier
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@78385 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2015-01-19 03:01:18 +00:00
Mariano Reingart
e67fbf1579
wxQT: move destroyed debug log into class method
...
(remove global function to handle destroyed signal)
This is needed for applications because the global function is not exported, yet it
is used by the opengl library. An alternative is to add utils.cpp to the opengl library
Thanks @seandepagnier
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@78384 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2015-01-19 02:57:06 +00:00
Mariano Reingart
3be53c43d7
wxQt: Fix compiler error for ambiguous call
...
(when compiling without unicode support)
Thanks @seandepagnier
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@78383 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2015-01-19 02:44:11 +00:00
Mariano Reingart
bb2db9d890
wxQT: Add guard to wxWindowQt for building without unicode support
...
Thanks @seandepagnier
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@78382 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2015-01-19 02:41:44 +00:00
Mariano Reingart
aeb68ff500
Fix Select on wxQT DC implementation
...
Need to set the underlying qt painter up with the current pen, brush and font when a new object is selected
Thanks @seandepagnier
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@78378 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2015-01-19 02:29:38 +00:00
Mariano Reingart
fe3998c3c9
Specify needed header files more correctly (needed for wxqt-android)
...
Thanks @seandepagnier
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@78377 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2015-01-19 02:22:41 +00:00
Mariano Reingart
98c49c9cc5
Correct wxWindowQt::DoSetSize() for possible NULL member de-reference.
...
Thanks David Register
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@78376 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2015-01-19 02:18:02 +00:00
Mariano Reingart
772d42cad1
Added new ctor for wxBitmap using wxCursor for wxQT (similar to wxGTK)
...
This is the implementation that should had been included in r78348
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@78353 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2015-01-06 07:12:17 +00:00
Mariano Reingart
9f009d128f
Fix SIGSEGV due bad pointer in wxMessageDialog (wxQT)
...
m_qtWindow should be used instead of m_qtMessageBox (removed). If not, PostCreation() cannot call wxMessageDialog::GetHandle() as it is virtual (and it is called from the ctor), so it fails to set the base window pointer, raising a SIGSEGV in wxWindow::DoSetSize (for more info, see architecture in docs)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@78312 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-12-24 19:19:27 +00:00
Vadim Zeitlin
0918246efa
Restore Kolya Kosenko copyrights on parts of wxQt code.
...
The original code was originally submitted of #12042 .
Closes #16721 .
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@78262 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-12-10 01:04:11 +00:00
Mariano Reingart
9622023abc
Fix invalid listctrl imagelist assert in wxQT
...
This reverts the bug introduced in r77935, now the list control sample works again.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77983 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-10-09 04:44:54 +00:00
Mariano Reingart
5a6ec20ebc
Support frameless taskbarless dialogs in wxQt
...
* Moved frameless hint to window, checking border
* Removed duplicate code in wxFrame and asserts that were preventing AUI to work
Thanks to @seandepagnier for the original patch
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77982 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-10-09 04:23:05 +00:00
Mariano Reingart
7ccffa24be
Allow setting font and brush in DC when the qt painter is not active in wxQT, thanks @seandpagnier
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77937 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-09-29 04:26:50 +00:00
Mariano Reingart
e3f67c52ee
Fix listctrl base window pointer in wxQT, thanks @seandpagnier
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77936 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-09-29 04:23:36 +00:00
Mariano Reingart
3b12797953
Improve specific listctrl wxQT, thanks @seandpagnier
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77935 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-09-29 04:21:26 +00:00
Mariano Reingart
0435721b3e
Implement readonly dcscreen for wxQT, thanks @seandpagnier
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77933 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-09-29 04:16:57 +00:00
Mariano Reingart
fa98a771e3
Copy pixmap to match others ctors in wxQT, thanks @seandpagnier
...
This should fix a double free crash
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77932 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-09-29 04:14:17 +00:00
Mariano Reingart
0f5be542ae
Correct window transparency calculation in wxQT, thanks @seandpagnier
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77931 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-09-29 04:11:48 +00:00
Mariano Reingart
9348ec2ba9
Add inverted flag support to slider in wxQT, thanks @seandpagnier
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77930 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-09-29 04:10:53 +00:00
Mariano Reingart
61bcfe59c3
Improve wx->qt filter mapping logic in wxQT, thanks @seandpagnier
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77929 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-09-29 04:08:02 +00:00
Mariano Reingart
aceb68f48b
Improve slider implementation in wxQT, thanks @seandpagnier
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77928 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-09-29 04:03:29 +00:00
Mariano Reingart
740bcdc81a
Block qt signals when manually setting value to avoid emitting an event in wxQT, thanks @seandpagnier
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77927 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-09-29 04:01:13 +00:00
Mariano Reingart
fdc2433ede
Fix case where widgets may get hidden by qt, thanks @seandpagnier
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77926 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-09-29 03:58:40 +00:00
Mariano Reingart
93732aba36
Enable mouse tracking in wxQT, thanks @seandepagnier
...
This is needed so qt mouse events are triggered without a button pressed.
Note that I modified this to prevent a crash if m_qtWindow was null (reproducible with controls sample and the original patch from Sean)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77925 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-09-29 03:56:33 +00:00
Mariano Reingart
9c9d6e8481
Implement abstract class for wxuniversal in wxQT, thanks @seandepagnier
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77924 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-09-29 03:50:34 +00:00
Mariano Reingart
7940e70f51
Remove unused event table in wxQT, thanks @seandepagnier
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77923 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-09-29 03:49:29 +00:00
Mariano Reingart
6a3bdf5f66
Support native font info in wxQT, thanks @seandepagnier
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77922 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-09-29 03:43:31 +00:00