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
613513501b
Merge branch 'qt_dialog_show_modal' of https://github.com/GeoTeric/wxWidgets
...
Fix several issues with modal dialogs in wxQt and make them work more
consistently with the other ports.
See https://github.com/wxWidgets/wxWidgets/pull/1155
2019-01-21 19:10:00 +01:00
Vojtech Kral
63432e5ef5
Fix wxShowEvent not being received for maximized frames on MSW
...
Send wxEVT_SHOW explicitly when showing a maximized TLW under MSW as the
system doesn't send WM_SHOW in this case (as documented in the MSDN and
also confirmed by testing).
Closes https://github.com/wxWidgets/wxWidgets/pull/1153
2019-01-21 18:38:46 +01:00
Liam Treacy
a2356fbe4a
Made the wxListBox::GetSelection method more efficient
2019-01-21 16:16:17 +00:00
Liam Treacy
d8d7f673b2
Added comment explaining style mutual exclusive flags
2019-01-21 16:02:03 +00:00
Liam Treacy
ab3c460a93
Updated the GetSelections method to use QListWidget method to retrieve selected items rather than iterating through the list. Also updated the UnSelectAll method to be more efficient
2019-01-21 16:00:03 +00:00
Liam Treacy
ffcda97d04
wxListBox GetSelection and DoSetSelection now use the proper QListWidget interface for specifying which index is selected.
2019-01-21 15:48:12 +00:00
NikitaFeodonit
537564ae19
CMake: use the target property OUTPUT_NAME instead of LOCATION in wx_get_dependencies
2019-01-21 18:19:39 +03:00
Liam Treacy
eb6b660d27
Added setStyle method to wxListBox to allow for the proper setting of sorting and selection style of the QListWidget
2019-01-21 14:04:47 +00:00
Graham Dawes
9cfecad878
Generate wxDialogInit event for wxDialog under wxQT
2019-01-21 13:53:59 +00:00
Graham Dawes
467bb0ec66
Add WX_HOOK_MODAL_DIALOG for wxMessageDialog under wxQT
2019-01-21 13:53:14 +00:00
Graham Dawes
26cba3bcf9
Add missing WX_HOOK_MODAL_DIALOG to wxDialog::ShowModal for wxQT
2019-01-21 12:50:36 +00:00
Graham Dawes
edc315a62f
Add wxOVERRIDE to overriden wxDialog methods for wxQT
2019-01-21 12:49:06 +00:00
Liam Treacy
58df1ee13f
Added wxOVERRIDE specifiers to qt wxListBox methods
2019-01-21 11:00:25 +00:00
NikitaFeodonit
ad9175d79b
CMake: wx-config can not be used to connect the libraries with the debug suffix, remove 'd' suffix for the UNIX build in wx_set_target_properties
2019-01-21 13:47:15 +03:00
NikitaFeodonit
1bc43c8d7a
CMake: in wx_get_dependencies, for existing targets, use its LOCATION instead of the target name
2019-01-21 13:46:24 +03:00
NikitaFeodonit
3510319048
CMake: add processing the C flags for wxBUILD_USE_STATIC_RUNTIME
2019-01-21 13:45:46 +03:00
Takeshi Abe
f10939862a
Fix a typo in WebView::RunScript's comment
...
innderHTML -> innerHTML
2019-01-21 16:11:11 +09:00
Artur Wieczorek
e4198c149b
Allow entering plus/minus characters for floating point numbers
2019-01-20 18:41:05 +01:00
Artur Wieczorek
4b0d74e04d
Create wxPGHeaderCtrl in one step
...
Code simplification - 2-step creation is useless here.
2019-01-20 18:32:48 +01:00
Artur Wieczorek
547db34ce4
Don't allow reordering wxPropertyGrid header columns
...
wxPropertyGrid is designed to work with fixed order of columns.
2019-01-20 18:27:03 +01:00
Artur Wieczorek
4c9684f8d1
Improve calculating wxSimpleCheckBox rectangle
...
The code to calculate rectangle occupied by the check box is moved to the shared function GetBoxRect().
Check box rectangle is stored in the data member and this cached position and size are used in the drawing operations and hit tests.
2019-01-20 18:21:30 +01:00
Artur Wieczorek
5261605a61
Use wxSizerFlags-based API in widgets sample
...
Make the code more clear by using wxSizerFlags.
2019-01-20 13:23:11 +01:00
Artur Wieczorek
9ff9442226
Update column width in wxHeaderCtrlSimple while resizing the column
...
In EVT_HEADER_RESIZING event handler there is necessary to update actual
column width and redraw the control to show the column with new width.
Closes #18331 .
2019-01-20 13:22:50 +01:00
Artur Wieczorek
3000091cd2
Allow columns reordering only if its wxCOL_REORDERABLE flag is set
...
Dragging the column should be allowed only if wxHD_ALLOW_REORDER header
style and wxCOL_REORDERABLE column flag are both set.
Closes #18332 .
2019-01-20 13:22:03 +01:00
Vadim Zeitlin
704f03e70e
Don't use destroyed wxToolBar in wxFrame::SetToolBar() in wxQt
...
Store QToolBar pointer in wxFrame itself to avoid having to query the
already half-destroyed wxToolBar object when SetToolBar() is called from
its base class dtor.
This fixes crash when toggling the toolbar in the toolbar sample.
Closes https://github.com/wxWidgets/wxWidgets/pull/1140
2019-01-20 03:21:12 +01:00
Vadim Zeitlin
3fb84dfc0c
Make wxToolBar::GetQToolBar() non-virtual and mark it as private
...
This method has no reason to be virtual.
Also move it to the end of the class public section and document that
it's not part of the public API.
See https://github.com/wxWidgets/wxWidgets/pull/1140
2019-01-20 03:21:11 +01:00
Vadim Zeitlin
61b391da90
Make wxFrame ctors inline in wxQt
...
No real changes, just make trivial (and going to remain trivial)
functions inline.
2019-01-20 03:13:04 +01:00
Vadim Zeitlin
5b36917548
Fix harmless -Wsign-compare gcc warnings in wxQt wxStatusBar code
...
QList::count() returns int, so cast it to size_t explicitly before
comparing with wxArray::GetCount() which returns size_t.
2019-01-20 03:01:51 +01:00
Vadim Zeitlin
5bb683bcfe
Fix harmless -Wunused-parameter warnings in wxQt code
...
Note that other such warnings remain where they indicate important
missing functionality (notably in wxCairoContext ctor from wxPrinterDC).
2019-01-20 02:59:46 +01:00
Vadim Zeitlin
f20180e743
Avoid -Wswitch gcc warning in wxQt wxNativeFontInfo::SetStyle()
...
Explicitly handle wxFONTSTYLE_MAX, even if it's just to assert that it's
unexpected here.
2019-01-20 02:57:45 +01:00
jtbattle
30f9d60eec
Fix ability to replay wxSound sample on OSX
...
The sound handle was returned to the OS after the first play completed
(or the loop first stopped), making it impossible to replay that sound
again.
Now the handle is returned upon destruction of the wxSound object.
Closes https://github.com/wxWidgets/wxWidgets/pull/1149
2019-01-19 23:17:25 +01:00
Konstantin S. Matveyev
557b8526d1
Fix several problems with wxAppProgressIndicator in wxOSX
...
Don't release NSProgressIndicator too soon, we need to be able to keep
it to use it later, so move "release" from wxAppProgressDockIcon ctor to
its dtor.
OTOH, remove an extraneous "retain" to fix memory leak of
wxAppProgressDockIcon.
Finally, show the indicator, if it had been hidden, when Pulse() is
called for consistency with SetProgress().
Closes https://github.com/wxWidgets/wxWidgets/pull/1150
2019-01-19 23:13:02 +01:00
Vadim Zeitlin
a0d2212bba
Merge branch 'qt_menuitem' of https://github.com/GeoTeric/wxWidgets
...
Add wxOVERRIDE specifiers to wxMEnu{,Item,Bar} methods.
Closes https://github.com/wxWidgets/wxWidgets/pull/1146
2019-01-19 23:05:28 +01:00
Vadim Zeitlin
d3ab6a9968
Merge branch 'qt_toolbar_area' of https://github.com/GeoTeric/wxWidgets
...
Use only a single position style for QToolBar and minor cleanup in the
related code.
Closes https://github.com/wxWidgets/wxWidgets/pull/1145
2019-01-19 23:04:23 +01:00
Graham Dawes
57c12db2d9
Fix GetColumnCount() not working for wxRadioBox in wxQt
...
Add missing SetMajorDim() call to wxRadioBox::Create().
Closes https://github.com/wxWidgets/wxWidgets/pull/1144
2019-01-19 23:03:14 +01:00
Vadim Zeitlin
2a452c0b60
Fix widgets sample build when using precompiled headers
...
wx/artprov.h is not included from wx/wx.h, so it needs to be always
included from this header and not only when !WX_PRECOMP.
2019-01-19 23:02:09 +01:00
Artur Wieczorek
4fabf5238f
Fix harmless signed/unsigned comparison warning in widgets sample
...
Cast WXSIZEOF to int before comparing it with int variables.
2019-01-19 22:51:44 +01:00
Artur Wieczorek
7a6200631a
Extend wxHeaderCtrl demonstration in widgets sample
...
Added ability to show header columns with various style flags.
2019-01-19 22:09:11 +01:00
Liam Treacy
5044283b87
Adding wxOVERRIDE specifiers to wxMenu and wxMenuBar methods
2019-01-18 13:25:27 +00:00
Liam Treacy
139070b745
Removing unnecessary forward declaration
2019-01-18 13:19:08 +00:00
Liam Treacy
3cde8607ab
Adding wxOVERRIDE specifiers to menuitem methods
2019-01-18 13:17:47 +00:00
Liam Treacy
d9dd8b1f1a
Grouped related headers together
2019-01-18 11:30:43 +00:00
Liam Treacy
7b5cd77299
Removing unnecessary forward declaration from toolbar.h
2019-01-18 11:09:18 +00:00
Liam Treacy
ccfec32eb9
In wxFrame::SetToolBar, only one style will now be applied to the QToolbar
2019-01-18 11:00:55 +00:00