mirror of
https://github.com/Lurkki14/tuxclocker.git
synced 2025-02-20 11:38:26 -06:00
clear apply button tooltip when applying is available
This commit is contained in:
parent
7d2dce5e6c
commit
8694a89891
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user