cc_item_picture.h: fix build warnings

Import base class methods setWidth and setHeight to avoid
-Woverloaded-virtual warnings


Origin commit data
------------------
Branch: ni/coolstream
Commit: f026ec1eb1
Author: Thilo Graf <dbt@novatux.de>
Date: 2025-03-10 (Mon, 10 Mar 2025)



------------------
This commit was generated by Migit
This commit is contained in:
2025-03-10 19:29:36 +01:00
committed by vanhofen
parent d9bffc0d40
commit f2bdac723c

View File

@@ -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