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
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
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
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
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
Jay Nabonne
a130a59111
Handle clipping regions with negative width or height in wxQt
2019-01-21 23:20:24 +01:00
Jay Nabonne
ce5301e4e6
Fix off by 1 errors in wxQt wxDC::SetClippingRegion()
2019-01-21 23:19:25 +01:00
Richard Smith
4c05b3650a
Add a test for WriteText and fix implementation in wxQt
2019-01-21 23:09:17 +01:00
Richard Smith
3618356cf1
Fix wxComboBox implementation of wxTextEntry interface
...
Implement missing methods and send, or suppress, the expected events.
2019-01-21 23:08:42 +01:00
Richard Smith
1a7f9124b6
Update insertion point in wxTextEntry::Remove()
...
Move the insertion point to the end of the string if its position has
become invalid after removing part of the text.
2019-01-21 23:08:07 +01:00
Richard Smith
b0defd5876
Don't select the newly added item in wxChoice
2019-01-21 23:08:07 +01:00
Richard Smith
f2538a0bc4
Reset selection in after deleting selected item from wxChoice
2019-01-21 23:08:07 +01:00
Vadim Zeitlin
cfdf80d586
Rename wxChoice::InitialiseSort() to QtInitSort()
...
Use the prefix to indicate that this function is unique to this port.
Also don't make unnecessarily make it virtual.
2019-01-21 23:08:07 +01:00
Richard Smith
b27971c501
Use case-insensitive comparison in Qt wxComboBox and wxChoice
...
Define LexicalSortProxyModel to use the same sort order in wxQt as in
the other ports.
2019-01-21 23:08:07 +01:00
Vadim Zeitlin
000f8ef422
Put private wxQtChoice class inside an anonymous namespace
...
No real changes, just avoid polluting global scope unnecessarily.
2019-01-21 20:06:31 +01:00
Vadim Zeitlin
21e989751f
Get rid of m_ownsPainter flag in wxQtGraphicsContext
...
Use wxScopedPtr to ensure that the pointer is destroyed automatically
instead of doing it manually.
2019-01-21 19:44:05 +01:00
Vadim Zeitlin
8434adb00e
Use AttachPainter() instead of setting m_ownsPainter directly
...
No real changes, just another tiny simplification.
2019-01-21 19:40:22 +01:00
Vadim Zeitlin
6d91374dff
Simplify QPainter ownership in wxQtGraphicsContext
...
No real changes, just refactor the code to use more explicit
AttachPainter() when giving ownership of a new QPainter object to
wxQtGraphicsContext.
This method also allows to simplify wxQtImageContext as it doesn't need
to handle ownership on its own and can just leave it to the base class.
And m_ownsPainter can now be made private.
2019-01-21 19:40:11 +01:00