clear apply button tooltip when applying is available

This commit is contained in:
Jussi Kuokkanen 2023-09-04 20:16:13 +03:00
parent 7d2dce5e6c
commit 8694a89891

View File

@ -81,8 +81,11 @@ public:
connect(m_cancelButton, &QPushButton::clicked, this, &FunctionEditor::cancelled);
connect(this, &FunctionEditor::canApplyChanged, m_applyButton,
&QPushButton::setEnabled);
connect(this, &FunctionEditor::canApplyChanged, [=](bool canApply) {
if (canApply)
m_applyButton->setToolTip("");
m_applyButton->setEnabled(canApply);
});
connect(m_applyButton, &QPushButton::clicked, [this] {
auto index = m_latestNodeIndex.value();