diff --git a/plugins/ODbgRegisterView/RegisterView.cpp b/plugins/ODbgRegisterView/RegisterView.cpp index f19755ce9..2dc28236e 100644 --- a/plugins/ODbgRegisterView/RegisterView.cpp +++ b/plugins/ODbgRegisterView/RegisterView.cpp @@ -568,7 +568,7 @@ QList ODBRegView::valueFields() const { return allValues; } -void ODBRegView::updateFieldsPalette() { +void ODBRegView::updateFieldsPalette() const { Q_FOREACH (ValueField *field, valueFields()) { field->updatePalette(); } @@ -584,7 +584,7 @@ ValueField *ODBRegView::selectedField() const { return nullptr; } -void ODBRegView::selectAField() { +void ODBRegView::selectAField() const { const QList fields = valueFields(); if (!fields.isEmpty()) { fields.front()->select(); diff --git a/plugins/ODbgRegisterView/RegisterView.h b/plugins/ODbgRegisterView/RegisterView.h index 4b1a61ce6..7270baf7a 100644 --- a/plugins/ODbgRegisterView/RegisterView.h +++ b/plugins/ODbgRegisterView/RegisterView.h @@ -78,7 +78,7 @@ class ODBRegView : public QScrollArea { [[nodiscard]] QList valueFields() const; void groupHidden(RegisterGroup *group); void saveState(const QString &settings) const; - void selectAField(); + void selectAField() const; void setModel(RegisterViewModelBase::Model *model); void showMenu(const QPoint &position, const QList &additionalItems = {}) const; @@ -88,7 +88,7 @@ class ODBRegView : public QScrollArea { private: [[nodiscard]] ValueField *selectedField() const; - void updateFieldsPalette(); + void updateFieldsPalette() const; void keyPressEvent(QKeyEvent *event) override; void mousePressEvent(QMouseEvent *event) override; void updateFont();