Refactor widget highlighting

This commit is contained in:
WarmUpTill
2024-06-02 16:10:15 +02:00
committed by WarmUpTill
parent d72a0c0d38
commit c05a92d417
28 changed files with 112 additions and 106 deletions

View File

@@ -81,9 +81,13 @@ void ResourceTable::SetHelpVisible(bool visible) const
void ResourceTable::HighlightAddButton(bool enable)
{
_add->disconnect(_highlightConnection);
if (_highlightConnection) {
_highlightConnection->deleteLater();
_highlightConnection = nullptr;
}
if (enable && HighlightUIElementsEnabled()) {
_highlightConnection = PulseWidget(_add, QColor(Qt::green));
_highlightConnection = HighlightWidget(_add, QColor(Qt::green));
}
}