Skip to content

Commit

Permalink
elistbox: Fix overloaded virtual function error
Browse files Browse the repository at this point in the history
./../git/lib/gui/ewidget.h:48:22: error: 'virtual void eWidget::setBackgroundColor(const gRGB&)' was hidden [-Werror=overloaded-virtual=]
|    48 |         virtual void setBackgroundColor(const gRGB &col);
|       |
  • Loading branch information
Hains authored and Huevos committed Nov 4, 2024
1 parent 227d2d1 commit 5ab8438
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/gui/elistbox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -899,7 +899,7 @@ void eListbox::setTextOffset(const ePoint &textoffset)
m_style.m_text_offset = textoffset;
}

void eListbox::setBackgroundColor(gRGB &col)
void eListbox::setBackgroundColor(const gRGB &col)
{
m_style.m_background_color = col;
m_style.m_background_color_set = 1;
Expand Down Expand Up @@ -1035,4 +1035,4 @@ void eListbox::setItemCornerRadius(int radius, int edges)
void eListbox::setItemCornerRadiusSelected(int radius, int edges)
{
setItemCornerRadiusInternal(radius, edges, 1);
}
}
2 changes: 1 addition & 1 deletion lib/gui/elistbox.h
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ class eListbox: public eWidget
void setItemWidth(int w);
void setSelectionEnable(int en);

void setBackgroundColor(gRGB &col);
void setBackgroundColor(const gRGB &col);
void setBackgroundColorSelected(gRGB &col);
void setForegroundColor(gRGB &col);
void setForegroundColorSelected(gRGB &col);
Expand Down

0 comments on commit 5ab8438

Please sign in to comment.