Paul Cornett
61d59dfc85
non-pch build fix
2019-03-06 08:49:05 -08:00
Vadim Zeitlin
d841f7b34e
Merge branch 'wxQt-memory-leaks' of https://github.com/catalinr/wxWidgets
...
Fix many memory leaks in wxQt port.
See https://github.com/wxWidgets/wxWidgets/pull/1243
2019-03-05 23:36:41 +01:00
David Connet
c2c3096530
Detect MSVS 2019 in msvc/wx/setup.h correctly
...
_MSC_VER 1920 should be detected as MSVS 2019, which corresponds to 14.2
toolset value, rather than 14.1.
2019-03-05 23:28:20 +01:00
Vadim Zeitlin
f670cf2d29
Remove stray CR characters from msvc/wx/setup.h
...
See 46ba9ca2f9 which accidentally added
them.
No real changes.
2019-03-05 23:25:34 +01:00
Cătălin Răceanu
934698d8ac
Change Qt smart pointers with wx ones to fix compilation
2019-02-27 22:06:47 +02:00
Cătălin Răceanu
1578240b6e
Change a couple of data types and simplify code a bit
2019-02-27 17:42:01 +02:00
Cătălin Răceanu
113822d024
Change member variable type
2019-02-27 16:58:35 +02:00
Cătălin Răceanu
315a9460c0
Remove memory leaks by using smart pointers or explicit delete
2019-02-27 01:12:03 +02:00
Cătălin Răceanu
595a9945b5
Do not leak the list of panes
2019-02-26 23:13:12 +02:00
Paul Cornett
7c3ce912e0
Use ctor-initializer rather than assignment for non-POD class members
2019-02-25 10:23:35 -08:00
Paul Cornett
5e3c39043d
Fix wxQT monolithic build on Linux
...
- Remove duplicate wxConsoleAppTraits::CreateEventLoop()
It's already defined for Unix as well as Windows
- Remove wxEventLoop AddSourceForFD() "override"
the base version is static and therefore clearly not meant to be overridden
2019-02-25 00:35:27 -08:00
Cătălin Răceanu
cb74819562
Don't leak QApplication and command line arguments
2019-02-24 23:45:46 +02:00
Vadim Zeitlin
7c8ba45705
Reuse helper MSWGetFittingtSizeForControl() in a couple of places
...
Refactor the code to reuse the same function for determining the size
needed by an embedded control in the toolbar, including its label.
2019-02-24 18:19:49 +01:00
Vadim Zeitlin
82857cfa9d
Add small helper function to wxMSW wxToolBar code
...
Encapsulate the logic for deciding whether we should show the labels for
the embedded controls or not in a small helper function, to make it
simpler to change it in the future if needed and also to have a single
place to explain why do we do what we do now.
No real changes.
2019-02-24 02:04:55 +01:00
Cătălin Răceanu
0e3784c46e
Implement support for value range in wxQt wxSpinButton
...
Closes https://github.com/wxWidgets/wxWidgets/pull/1237
2019-02-22 19:49:06 +01:00
Vadim Zeitlin
38d7ba21e2
Merge branch 'tglbtn' of https://github.com/catalinr/wxWidgets
...
Reimplement wxToggleButton correctly for wxQt.
See https://github.com/wxWidgets/wxWidgets/pull/1228
2019-02-21 04:33:56 +01:00
Paul Cornett
1229ceb440
Remove unnecessary copy ctor/operator= definitions
2019-02-17 23:09:49 -08:00
Paul Cornett
7c75f46098
wxOVERRIDE
2019-02-17 22:42:26 -08:00
Paul Cornett
360342659b
Remove unimplemented wxListBase ctor declaration
2019-02-17 18:26:17 -08:00
Paul Cornett
ad59df7355
Remove unuseable wxListBase ctor
...
It calls Append(void*), which calls the pure virtual CreateNode(), which will
crash, as the required override can't be called from the base class ctor.
2019-02-17 18:19:16 -08:00
Paul Cornett
c41ff4e694
Remove unuseable wxPGArrayEditorDialog ctor
...
It calls Create(), which calls the pure virtual ArrayGetCount(), which will
crash, as the required override can't be called from the base class ctor.
2019-02-17 18:00:26 -08:00
Cătălin Răceanu
be9c18cbd6
Reuse Qt implementation of normal button for toggle buttons
2019-02-13 01:23:20 +02:00
Cătălin Răceanu
7be9c8c670
Remove functions that are identical with the ones in base classes
2019-02-13 01:15:19 +02:00
Cătălin Răceanu
50edbf24cc
Change the base class of wxBitmapToggleButton
2019-02-13 01:09:16 +02:00
Cătălin Răceanu
39c9992ec9
Remove declaration already present in common code
2019-02-13 00:58:54 +02:00
Cătălin Răceanu
193cf3fee9
Change the order of class declarations only
2019-02-13 00:55:00 +02:00
Catalin Raceanu
fb00507fb5
Implement image support for button states in wxQt
...
Closes https://github.com/wxWidgets/wxWidgets/pull/1224
2019-02-11 19:34:26 +01:00
Graham Dawes
6482664955
Fix build errors when building with gcc
2019-02-08 14:43:04 +00:00
Jay Nabonne
8844e16b03
Fix new header.
2019-02-08 14:03:32 +00:00
Jay Nabonne
b7ff45799c
Clean up file.
2019-02-08 10:57:08 +00:00
Graham Dawes
57348b4a59
Add EditControl support for wxTreeCtrl under wxQT
2019-02-06 09:20:13 +00:00
Graham Dawes
cfe36f7ae7
Move wxQtTreeItemEditorFactory to its own header
2019-02-06 08:57:29 +00:00
Vadim Zeitlin
9a9ff29098
Remove redundant wxUSE_XXX checks from wx/filesys.h
...
These checks are already performed in wx/chkconf.h and don't need to be
redone here, especially incorrectly (testing for "!wxUSE_FILESYSTEM"
inside "#if wxUSE_FILESYSTEM" is useless).
2019-02-05 21:03:27 +01:00
Graham Dawes
2a91c00c10
Add missing d'tor
2019-02-05 16:13:56 +00:00
Graham Dawes
8efe01bd8e
Implement basic styles for wxTreeCtrl under wxQT
2019-02-05 13:46:32 +00:00
Graham Dawes
308ef18a6d
Start "native" implementation of wxTreeCtrl for wxQT
2019-02-05 13:23:12 +00:00
Graham Dawes
eb00d7623a
Rename internal tree widget to something more appropriate for
...
a wxListCtrl.
2019-02-05 08:06:26 +00:00
Vadim Zeitlin
153b5e85fb
Merge branch 'qt_combobox_crash' of https://github.com/GeoTeric/wxWidgets
...
Fix crashes when using wxCB_READONLY in wxQt.
See https://github.com/wxWidgets/wxWidgets/pull/1221
2019-02-05 03:04:21 +01:00
Vadim Zeitlin
ddc550105e
Merge branch 'qt-radio-groups'
...
Fix radio button grouping in Qt.
See https://github.com/wxWidgets/wxWidgets/pull/1212
2019-02-05 03:03:10 +01:00
Graham Dawes
a60c2470b5
Dedupe wxCB_READONLY check
2019-02-04 09:26:10 +00:00
Vadim Zeitlin
efa1e8f4ff
Merge branch 'gc-from-unknown-dc'
...
Add wxGraphicsRenderer::CreateContextFromUnknownDC().
See https://github.com/wxWidgets/wxWidgets/pull/1213
2019-02-03 22:14:01 +01:00
Dan Gudmundsson
22fc3cff8f
Use base implementation of dragAcceptFiles in wxOSX
...
As is done in wxGTK implementation.
Closes https://github.com/wxWidgets/wxWidgets/pull/1116
2019-02-02 22:43:14 +01:00
Vadim Zeitlin
8bbac921f3
Add wxGraphicsRenderer::CreateContextFromUnknownDC()
...
It seems wrong to have this function in wxGraphicsContext only and not
in wxGraphicsRenderer, as this makes it impossible to create a context
associated with a non-default renderer while it doesn't cost us anything
to allow doing this.
2019-02-02 21:22:19 +01:00
Vadim Zeitlin
9a7a89b7b2
Merge branch 'qt-convert-simplify'
...
Simplify Qt conversion functions and stop mapping wxPoint(-1,-1) and
wxSize(-1,-1) to QPoint(0,0) and QSize(0,0), respectively.
See https://github.com/wxWidgets/wxWidgets/pull/1206
2019-02-02 17:12:50 +01:00
chris2oph
f8c345ca95
Fix painting logic in wxQt wxClientDC implementation
...
The original drawing mechanism was generating lots of QWarning messages
when running samples (e.g. htlbox, caret, etc.) and in some cases was
not actually completely drawing every element of the sample. The issue
was that the QPicture was being shared incorrectly between wxWindow and
wxClientDC and attempts to start painting, update, etc. were generating
console warnings.
Closes https://github.com/wxWidgets/wxWidgets/pull/1152
2019-02-02 16:23:49 +01: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
Graham Dawes
f2d20384a0
Implement wxListCtrl::GetEditControl() for wxQt
...
To get access to the control used for editing items, we need to create
it ourselves, which involves defining our own factory for doing this,
but seems to be the only way of achieving our goal.
Closes https://github.com/wxWidgets/wxWidgets/pull/1204
2019-02-02 15:35:26 +01:00
Vadim Zeitlin
10b35c22f5
Remove unnecessary "protected:" from wx/qt/radiobut.h
...
No real changes, just remove an empty protected section.
2019-02-02 15:06:11 +01:00
Vadim Zeitlin
481b29e6ce
Stop mapping QSize(0,0) to wxSize(-1,-1) as well
...
Do this for consistency with a similar recent change to wxPoint.
2019-02-02 14:24:16 +01:00
Vadim Zeitlin
1a9f0f8b8d
Make trivial Qt <-> wx conversion functions inline
...
No real changes, just make often used and trivial functions inline as
this like an obviously better thing to do.
2019-02-02 14:24:16 +01:00