Skip to content

Commit

Permalink
Widget: Use correct type
Browse files Browse the repository at this point in the history
  • Loading branch information
dscharrer committed Oct 22, 2023
1 parent 09008d3 commit a50f803
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/gui/widget/Widget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ Widget * Widget::getWidgetAt(const Vec2f & mousePos) {
return m_rect.contains(mousePos) ? this : nullptr;
}

void Widget::setShortcut(int key) {
void Widget::setShortcut(InputKeyId key) {
m_shortcut = key;
}

Expand Down
2 changes: 1 addition & 1 deletion src/gui/widget/Widget.h
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ class Widget {
void setTargetPage(MENUSTATE page) { m_targetPage = page; }

InputKeyId shortcut() const { return m_shortcut; }
void setShortcut(int key);
void setShortcut(InputKeyId key);

virtual void setEnabled(bool enable);
bool isEnabled() const { return m_enabled; }
Expand Down

0 comments on commit a50f803

Please sign in to comment.