Vadim Zeitlin
b38587c0ca
Merge branch 'tests-wait-event' of https://github.com/vadz/wxWidgets
...
Refactor code waiting for events in the test suite.
See https://github.com/wxWidgets/wxWidgets/pull/1173
2019-01-27 03:58:23 +01:00
Vadim Zeitlin
c74727c20f
Merge branch 'qt_more_event_loop_improvements' of https://github.com/GeoTeric/wxWidgets
...
Event loop and idle events improvements for wxQt
See https://github.com/wxWidgets/wxWidgets/pull/1171
2019-01-27 03:55:38 +01:00
Vadim Zeitlin
d8348b0419
Merge branch 'master' of https://github.com/dghart/wxWidgets
...
Improve wxDateTime::SetToWeekDay documentation.
See https://github.com/wxWidgets/wxWidgets/pull/1185
2019-01-27 03:41:22 +01:00
dghart
8e4b492cf4
Clarify what happens if the wxDateTime::SetToWeekDay month and/or year parameters are left as the default Inv_Month/Inv_Year
...
This causes the month and/or year being set to their wxDateTime::Now values, even if the original values in the wxDateTime object were valid.
2019-01-26 21:12:07 +00:00
dghart
2716347f17
Correct the order of parameters in the wxDateTime::SetToWeekDay examples
...
e.g. "For example, SetToWeekDay(wxDateTime::Wed, 2)"
not "For example, SetToWeekDay(2, wxDateTime::Wed)"
2019-01-26 20:55:20 +00:00
Scott Talbert
c68e5d0617
Fix some spelling/grammar errors in documentation
...
Mostly replace ungrammatical "allows to do" with correct "allows doing".
Closes https://github.com/wxWidgets/wxWidgets/pull/1183
2019-01-26 03:50:47 +01:00
Graham Dawes
e40323d312
Simplify shared timer reference counting in wxEventLoop for wxQT
2019-01-25 16:44:23 +00:00
ali kettab
84fc5c1714
Fix changing tooltip via wxToolTip::SetTip() in wxQt
...
Update the actual tool tip used by Qt and not just the internal variable
when SetTip() is called.
Also implement wxToolTip::SetWindow().
Closes https://github.com/wxWidgets/wxWidgets/pull/1175
2019-01-25 14:39:37 +01:00
ali kettab
3c369af2e6
Translate QFocusEvent to wxFocusEvent correctly
...
Set the ID, object and the associated window.
Closes https://github.com/wxWidgets/wxWidgets/pull/1177
2019-01-25 03:31:22 +01:00
Vadim Zeitlin
5811d541da
Refactor code waiting for events in the test suite
...
We already had WX_ASSERT_EVENT_OCCURS_IN macro and a recent commit also
added code doing almost the same thing manually in wxTopLevelWindow unit
test, which was one version too many.
Replace both of them with the new EventCounter::WaitEvent().
No real changes, this is just a refactoring.
2019-01-24 22:52:46 +01:00
Vadim Zeitlin
f4ea128007
Include wx/stopwatch.h explicitly from wxTextCtrl unit test
...
Don't rely on it being implicitly included from another header when we
use wxStopWatch in this file (with wxGTK only).
2019-01-24 22:52:46 +01:00
Vadim Zeitlin
7c831d25ee
Group headers together in wxTextCtrl unit test
...
No real changes.
2019-01-24 22:52:46 +01:00
ali kettab
515031cf6b
Set event object for wxKeyEvents generated in wxQt
...
Not setting the event object broke the code expecting it to be set,
notably in our own validators code.
Closes https://github.com/wxWidgets/wxWidgets/pull/1176
2019-01-24 22:47:26 +01:00
Vadim Zeitlin
7a42dbd83b
Merge branch 'qt_listctrl_find_text' of https://github.com/GeoTeric/wxWidgets
...
Fix wxListCtrl::FindItem() and add support for columns to GetItemText()
in wxQt.
See https://github.com/wxWidgets/wxWidgets/pull/1174
2019-01-24 22:42:35 +01:00
Liam Treacy
f9280c8529
Now use the column index to retrieve the correct text in GetItemText
2019-01-24 14:38:38 +00:00
Liam Treacy
ca00251454
Fix in wxListCtrl::FindItem. Every item is now iterated through, rather than only the first
2019-01-24 14:35:47 +00:00
Liam Treacy
83f23cec89
Added virtual and override specifiers to derived method in ListCtrl
2019-01-24 14:31:17 +00:00
Maarten Bent
42c602bddf
CMake: test installation with Travis CI
...
With wx-config working, test installing and building the minimal sample
with Travis CI.
Closes https://github.com/wxWidgets/wxWidgets/pull/1172
2019-01-24 13:20:38 +01:00
Graham Dawes
9cd566789d
Added file missing from previous commit
2019-01-24 08:08:12 +00:00
Dummy
b0660cc87c
Pass argument of proper type to wxPropertyGridInterface::SetPropertyBackgroundColour
...
The last argument passed to this function should be an int flag not a Boolean value.
Boolean value 'true' passed here is converted to int 1 so wxPG_RECURSE flag is never set and the background colour is never changed for sub-properties.
Closes #18333 .
2019-01-23 20:08:57 +01:00
Richard Smith
537b2c3bb0
Reinstate wxTextCtrl unit test previously disabled for wxQt
...
This test was fixed by earlier changes to wxQt font styles and passes
now.
Closes https://github.com/wxWidgets/wxWidgets/pull/1169
2019-01-23 16:48:26 +01:00
Vadim Zeitlin
9c16a3748e
Declare variable only needed inside an "if" inside it
...
No real changes, just make the code slightly more concise.
2019-01-23 16:47:05 +01:00
Vadim Zeitlin
6b3a0cc460
Make wxQtSpinBoxBase-derived valueChanged() methods inline
...
It seems better to have them in the class itself, near the connect()
call binding them.
This also resolves an inconsistency between wxQtSpinBox::valueChanged(),
which was defined elsewhere in the source file, and the same method of
wxQtDoubleSpinBox, which was defined directly after the class
declaration.
See https://github.com/wxWidgets/wxWidgets/pull/1168
2019-01-23 16:45:21 +01:00
Matthew Griffin
adee46d155
Send event when wxSpinCtrlDouble value changes in wxQt
...
Closes https://github.com/wxWidgets/wxWidgets/pull/1168
2019-01-23 16:44:46 +01:00
phowstan
7cfb5b91a5
Implement wxStaticBox::Set/GetLabel() in wxQt
...
Closes https://github.com/wxWidgets/wxWidgets/pull/1167
2019-01-23 16:38:25 +01:00
Graham Dawes
6aecaa8845
Share a single idle timer for all event loops in wxQT
2019-01-23 13:55:20 +00:00
Graham Dawes
0c28952ff6
Make ScheduleIdleCheck take into account whether the loop is exiting
2019-01-23 12:04:42 +00:00
Graham Dawes
b8f71efc04
Implement filtering in wxEventLoop::DoYieldFor under wxQT
2019-01-23 11:57:16 +00:00
Artur Wieczorek
5d40d57218
Don't process last HDN_ITEMCHANGING notification
...
Just skipping last HDN_ITEMCHANGING arriving after HDN_ENDTRACK (to prevent emitting EVT_HEADER_RESIZING) when current column width is less than minimal value allowed is not enough because this notification will be handled by the native control in a standard way causing column width to resize below the limit.
When current width is below the limit this last HDN_ITEMCHANGING notification has to be explicitly "vetoed" to prevent default handling from happening.
Close #18335 .
2019-01-23 00:04:37 +01:00
Vadim Zeitlin
2753bb2f50
Merge branch 'qt_event_loop' of https://github.com/GeoTeric/wxWidgets
...
Use QEventLoop for wxEventLoop implementation in wxQt to fix several
issues with wxEventLoop, notably avoid "QApplication::exec is already
running" errors.
See https://github.com/wxWidgets/wxWidgets/pull/1165
2019-01-22 19:05:53 +01:00
Graham Dawes
c2270f8a83
Don't generate events in wxChoice::SetSelection() under wxQt
...
This makes it consistent with the other ports and makes the
corresponding unit test pass.
Closes https://github.com/wxWidgets/wxWidgets/pull/1163
2019-01-22 19:03:41 +01:00
Liam Treacy
31c2bd7aa3
Add default parameter to wxDialog::Show() in wxQt
...
Closes https://github.com/wxWidgets/wxWidgets/pull/1164
2019-01-22 15:49:44 +01:00
Vadim Zeitlin
6fbc7a7e16
Merge branch 'qt-region-fixes'
...
wxQt region-related fixes: fix bugs in clipping region handling and
add wxRegion::DoCombine().
See https://github.com/wxWidgets/wxWidgets/pull/1162
2019-01-22 15:46:19 +01:00
Vadim Zeitlin
8703f0c437
Merge branch 'qt-dropdown'
...
Make wxQt wxComboBox behave more consistently with the other ports. Also
includes related fixes to wxChoice and wxTextEntry.
See https://github.com/wxWidgets/wxWidgets/pull/1161
2019-01-22 15:45:03 +01:00
Vadim Zeitlin
37f7da858d
Merge branch 'qt-painter-fixes'
...
Fixes for measuring text extent and improve/simplify ownership in
wxQtGraphicsContext.
See https://github.com/wxWidgets/wxWidgets/pull/1160
2019-01-22 15:43:45 +01:00
Graham Dawes
8a73f65285
Use QEventLoop to implement wxEventLoop for wxQT
2019-01-22 14:37:18 +00:00
Graham Dawes
7fa7fd1beb
Don't generate idle events when the event loop is not running
2019-01-22 08:11:30 +00:00
Graham Dawes
278f4fa1d6
Add wxOVERRIDE to overriden methods
2019-01-22 08:11:30 +00:00
Graham Dawes
dd62c82d30
Remove event filter on destruction
2019-01-22 08:11:30 +00:00
Vadim Zeitlin
55ed5e8181
Merge branch 'master' of https://github.com/NikitaFeodonit/wxWidgets
...
Fixes for CMake build when using wxBUILD_USE_STATIC_RUNTIME and more.
See https://github.com/wxWidgets/wxWidgets/pull/1154
2019-01-21 23:45:39 +01:00
Vadim Zeitlin
26c9fd0033
Merge branch 'qt_listbox_failing_tests'
...
Fixes for item selection and cleanup.
See https://github.com/wxWidgets/wxWidgets/pull/1159
2019-01-21 23:43:56 +01:00
Vadim Zeitlin
c8f427181e
Reuse code between wxListBox::Create() overloads
...
Add DoCreate() helper to actually create and initialize QListWidget.
2019-01-21 23:43:03 +01:00
Vadim Zeitlin
99b0efcdf2
Reformat a couple of for loops
...
Only whitespace changes.
2019-01-21 23:34:12 +01:00
Jay Nabonne
8412a40b90
Make some local variables const
...
No real changes.
2019-01-21 23:34:12 +01:00
Jay Nabonne
dddca2f516
Unindent wxRegionRefData class body
...
Only whitespace changes.
2019-01-21 23:34:12 +01:00
Vadim Zeitlin
c28a8c9e7e
Implement wxRegion operations in terms of DoCombine()
2019-01-21 23:34:12 +01:00
Jay Nabonne
637b861eb1
Don't allocate wxRegionRefData at all for empty region
...
Empty regions don't really need any data.
2019-01-21 23:34:12 +01:00
Jay Nabonne
0cd2f7b687
Remove unnecessary checks for null pointer before deleting it
...
No real changes.
2019-01-21 23:34:12 +01:00
Jay Nabonne
5929c5831e
Fix handling of empty clipping region in wxQt
2019-01-21 23:34:12 +01:00
Jay Nabonne
5b8b30d243
Don't use pointer for wxDC::m_clippingRegion in wxQt
...
An object can be used directly instead.
2019-01-21 23:34:12 +01:00