Switch wxQt to use UTF-8 for text data transfer via wxDataObject. The result otherwise was less than useful.
This commit is contained in:
parent
df38836862
commit
ece6626a59
@ -322,7 +322,7 @@ private:
|
|||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
|
||||||
#if wxUSE_UNICODE
|
#if wxUSE_UNICODE
|
||||||
#if defined(__WXGTK20__) || defined(__WXX11__)
|
#if defined(__WXGTK20__) || defined(__WXX11__) || defined(__WXQT__)
|
||||||
#define wxNEEDS_UTF8_FOR_TEXT_DATAOBJ
|
#define wxNEEDS_UTF8_FOR_TEXT_DATAOBJ
|
||||||
#elif defined(__WXMAC__)
|
#elif defined(__WXMAC__)
|
||||||
#define wxNEEDS_UTF16_FOR_TEXT_DATAOBJ
|
#define wxNEEDS_UTF16_FOR_TEXT_DATAOBJ
|
||||||
|
@ -157,6 +157,20 @@ wxBitmapDataObject::wxBitmapDataObject( const wxBitmap &WXUNUSED(bitmap) )
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//#############################################################################
|
||||||
|
// ----------------------------------------------------------------------------
|
||||||
|
// wxTextDataObject
|
||||||
|
// ----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
#if wxUSE_UNICODE
|
||||||
|
void wxTextDataObject::GetAllFormats(wxDataFormat *formats,
|
||||||
|
wxDataObjectBase::Direction WXUNUSED(dir)) const
|
||||||
|
{
|
||||||
|
formats[0] = wxDataFormat(wxDF_UNICODETEXT);
|
||||||
|
formats[1] = wxDataFormat(wxDF_TEXT);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
//#############################################################################
|
//#############################################################################
|
||||||
|
|
||||||
wxFileDataObject::wxFileDataObject()
|
wxFileDataObject::wxFileDataObject()
|
||||||
|
Loading…
Reference in New Issue
Block a user