mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-26 15:02:56 +02:00
cc_item_picture.h: fix build warnings
Import base class methods setWidth and setHeight to avoid -Woverloaded-virtual warnings
This commit is contained in:
@@ -69,6 +69,10 @@ class CCPicture : public CComponentsShapeSquare
|
||||
|
||||
void SetTransparent(const int &mode) {setBodyBGImageTranparencyMode(mode);}
|
||||
|
||||
///import base class methods for width and height to avoid -Woverloaded-virtual
|
||||
using CCDraw::setWidth;
|
||||
using CCDraw::setHeight;
|
||||
|
||||
///set width of object, keep_aspect = true keeps ratio related to height
|
||||
void setWidth(const int &w, bool keep_aspect = true);
|
||||
///set height of object, keep_aspect = true keeps ratio related to width
|
||||
@@ -281,6 +285,10 @@ class CComponentsPicture : public CComponentsForm
|
||||
*/
|
||||
void SetTransparent(const int &mode);
|
||||
|
||||
//import base class methods for width and height to avoid -Woverloaded-virtual
|
||||
using CCDraw::setWidth;
|
||||
using CCDraw::setHeight;
|
||||
|
||||
/*!
|
||||
Sets width of object, keep_aspect = true keeps ratio related to height
|
||||
* @param[in] int w image width
|
||||
|
Reference in New Issue
Block a user