UNICODE etc.
Peter Kuemmel
kuemmel at coffeelogic.de
Mon Aug 30 14:39:20 CEST 2004
Here some fixes:
UNICODE:
In winuser.h is the LPTSTR macro (WCHAR* or CHAR*) defined,
also the A/W endings of the functions.
There are qt functions for conversions declared (qstring.h),
void* must be casted to LPTSTR:
#if defined(Q_OS_WIN32)
extern Q_EXPORT QString qt_winQString(void*);
extern Q_EXPORT const void* qt_winTchar(const QString& str, bool addnul);
extern Q_EXPORT void* qt_winTchar_new(const QString& str);
extern Q_EXPORT QCString qt_winQString2MB( const QString& s, int len=-1 );
extern Q_EXPORT QString qt_winMB2QString( const char* mb, int len=-1 );
#endif
Main widget title:
The original Trolltech hello example has the title
"Qt says hello" and not "hello" - the name of the application.
So I've changed the code in setMainWidget.
qpixmap_win.cpp:
It seems there is a bug in void QPixmap::deref().
Cheers,
Peter
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: UNICODEetc.patch
Url: http://mail.kde.org/pipermail/kde-cygwin/attachments/20040830/4a5663f8/UNICODEetc.cc
More information about the kde-cygwin
mailing list