diff --git a/src/debugger/gui/DataGridWidget.cxx b/src/debugger/gui/DataGridWidget.cxx index d258ae9ba..6f8a9a880 100644 --- a/src/debugger/gui/DataGridWidget.cxx +++ b/src/debugger/gui/DataGridWidget.cxx @@ -586,7 +586,7 @@ void DataGridWidget::handleCommand(CommandSender* sender, int cmd, } // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -void DataGridWidget::setGridToolTip(int column, int row, const string& text) +void DataGridWidget::setToolTip(int column, int row, const string& text) { if(row >= 0 && row < _rows && column >= 0 && column < _cols) _toolTipList[row * _cols + column] = text; diff --git a/src/debugger/gui/DataGridWidget.hxx b/src/debugger/gui/DataGridWidget.hxx index 99f50bddc..99dee406a 100644 --- a/src/debugger/gui/DataGridWidget.hxx +++ b/src/debugger/gui/DataGridWidget.hxx @@ -84,7 +84,8 @@ class DataGridWidget : public EditableWidget void setCrossed(bool enable); - void setGridToolTip(int column, int row, const string& text); + using EditableWidget::setToolTip; + void setToolTip(int column, int row, const string& text); string getToolTip(const Common::Point& pos) const override; bool changedToolTip(const Common::Point& oldPos, const Common::Point& newPos) const override; diff --git a/src/debugger/gui/RiotWidget.cxx b/src/debugger/gui/RiotWidget.cxx index 092bde657..e0eaef2e6 100644 --- a/src/debugger/gui/RiotWidget.cxx +++ b/src/debugger/gui/RiotWidget.cxx @@ -157,8 +157,8 @@ RiotWidget::RiotWidget(GuiObject* boss, const GUI::Font& lfont, } xpos += t->getWidth() + _fontWidth / 2; myTimRead = new DataGridWidget(boss, nfont, xpos, ypos, 1, 4, 4, 30, Common::Base::Fmt::_16); - myTimRead->setGridToolTip(0, 1, "Timer interrupt flag in bit 7.\n"); - myTimRead->setGridToolTip(0, 2, "Number of CPU cycles since last TIMxxT write.\n"); + myTimRead->setToolTip(0, 1, "Timer interrupt flag in bit 7.\n"); + myTimRead->setToolTip(0, 2, "Number of CPU cycles since last TIMxxT write.\n"); myTimRead->setTarget(this); myTimRead->setEditable(false);