Start "native" implementation of wxTreeCtrl for wxQT
This commit is contained in:
@@ -19,6 +19,7 @@
|
||||
#include <QtCore/QRect>
|
||||
#include <QtCore/QSize>
|
||||
#include <QtCore/QString>
|
||||
#include <QtGui/QColor>
|
||||
|
||||
// Rely on overloading and let the compiler pick the correct version, which makes
|
||||
// them easier to use then to write wxQtConvertQtRectToWxRect() or wxQtConvertWxRectToQtRect()
|
||||
@@ -54,6 +55,16 @@ inline QString wxQtConvertString( const wxString &str )
|
||||
return QString( str.utf8_str() );
|
||||
}
|
||||
|
||||
inline wxColour wxQtConvertColour(const QColor &colour)
|
||||
{
|
||||
return wxColour(colour.red(), colour.green(), colour.blue(), colour.alpha());
|
||||
}
|
||||
|
||||
inline QColor wxQtConvertColour(const wxColour &colour)
|
||||
{
|
||||
return QColor(colour.Red(), colour.Green(), colour.Blue(), colour.Alpha());
|
||||
}
|
||||
|
||||
#if wxUSE_DATETIME
|
||||
|
||||
class WXDLLIMPEXP_FWD_BASE wxDateTime;
|
||||
|
Reference in New Issue
Block a user