Skip to content
Snippets Groups Projects
Commit c085dd40 authored by Philip Scherer's avatar Philip Scherer
Browse files

Remove superfluous slots in MemoryViewer

Plus some template nonsense due to slot overloading
parent d85d829a
No related branches found
No related tags found
No related merge requests found
......@@ -52,8 +52,9 @@ namespace armarx::armem::gui
connect(this, &This::updatePeriodic, this, &This::update);
// See `startTimerIfEnabled` for the signal reasoning.
connect(this, &This::startTimerSignal, this, &This::_startTimerSlot);
connect(this, &This::stopTimerSignal, this, &This::_stopTimerSlot);
// qOverload is required because `QTimer::start()` is overloaded.
connect(this, &This::startTimerSignal, _timer, qOverload<>(&QTimer::start));
connect(this, &This::stopTimerSignal, _timer, &QTimer::stop);
}
QPushButton* PeriodicUpdateWidget::updateButton()
......@@ -109,16 +110,6 @@ namespace armarx::armem::gui
}
}
void PeriodicUpdateWidget::_startTimerSlot()
{
_timer->start();
}
void PeriodicUpdateWidget::_stopTimerSlot()
{
_timer->stop();
}
QCheckBox* PeriodicUpdateWidget::autoCheckBox()
{
return _autoCheckBox;
......
......@@ -49,9 +49,6 @@ namespace armarx::armem::gui
void _updateTimerFrequency();
void _toggleAutoUpdates(bool enabled);
void _startTimerSlot();
void _stopTimerSlot();
signals:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment