From f2bdac723c838bd69f63d53c19613c31c3fdeeec Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Mon, 10 Mar 2025 19:29:36 +0100 Subject: [PATCH] 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: https://github.com/neutrino-images/ni-neutrino/commit/f026ec1eb115f2db2f616444ee8d6d51d4aaf01d Author: Thilo Graf Date: 2025-03-10 (Mon, 10 Mar 2025) ------------------ This commit was generated by Migit --- src/gui/components/cc_item_picture.h | 8 ++++++++ 1 file changed, 8 insertions(+) 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