wxqt: correct formatting and casting, no functional change
This commit is contained in:
committed by
Vadim Zeitlin
parent
42144b93b7
commit
169d61edb7
@@ -21,7 +21,7 @@ protected:
|
||||
virtual void DoGetSize(int *width, int *height) const wxOVERRIDE;
|
||||
virtual bool DoGetPixel(wxCoord x, wxCoord y, wxColour *col) const;
|
||||
|
||||
QImage *GetQImage();
|
||||
virtual QImage *GetQImage();
|
||||
|
||||
wxDECLARE_ABSTRACT_CLASS(wxScreenDCImpl);
|
||||
};
|
||||
|
@@ -62,7 +62,7 @@ wxDataFormat::wxDataFormat(const wxString &id)
|
||||
|
||||
wxDataFormat::wxDataFormat(const wxChar *id)
|
||||
{
|
||||
m_MimeType = (wxString)id;
|
||||
m_MimeType = id;
|
||||
}
|
||||
|
||||
wxDataFormat::wxDataFormat(const QString &id)
|
||||
@@ -72,7 +72,7 @@ wxDataFormat::wxDataFormat(const QString &id)
|
||||
|
||||
void wxDataFormat::SetId( const wxChar *id )
|
||||
{
|
||||
m_MimeType = (wxString)id;
|
||||
m_MimeType = id;
|
||||
}
|
||||
|
||||
void wxDataFormat::SetId( const wxString& id )
|
||||
|
@@ -111,8 +111,10 @@ wxRegion::wxRegion(const wxBitmap& bmp, const wxColour& transp, int tolerance)
|
||||
|
||||
QImage img(bmp.GetHandle()->toImage());
|
||||
int r = transp.Red(), g = transp.Green(), b = transp.Blue();
|
||||
for(int y=0; y<img.height(); y++) {
|
||||
for(int x=0; x<img.width(); x++) {
|
||||
for(int y=0; y<img.height(); y++)
|
||||
{
|
||||
for(int x=0; x<img.width(); x++)
|
||||
{
|
||||
QColor c = img.pixel(x, y);
|
||||
if ( abs(c.red() - r ) > tolerance ||
|
||||
abs(c.green() - g) > tolerance ||
|
||||
|
Reference in New Issue
Block a user