diff --git a/src/gui/components/cc_item_picture.h b/src/gui/components/cc_item_picture.h index 25ee8f8e0..9df113e20 100644 --- a/src/gui/components/cc_item_picture.h +++ b/src/gui/components/cc_item_picture.h @@ -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