mirror of
https://github.com/Lurkki14/tuxclocker.git
synced 2025-02-25 18:55:24 -06:00
fix innaccurate label text when requesting editors consequently
This commit is contained in:
parent
8694a89891
commit
a7d7db474c
@ -100,7 +100,7 @@ bool DeviceModelDelegate::editorEvent(QEvent *event, QAbstractItemModel *model,
|
|||||||
// Private signals also get disconnected if we don't specify any signal
|
// Private signals also get disconnected if we don't specify any signal
|
||||||
if (m_functionEditor)
|
if (m_functionEditor)
|
||||||
disconnect(m_functionEditor, &FunctionEditor::connectionDataChanged,
|
disconnect(m_functionEditor, &FunctionEditor::connectionDataChanged,
|
||||||
nullptr, nullptr);
|
nullptr, nullptr);
|
||||||
disconnect(m_parametrize, nullptr, nullptr, nullptr);
|
disconnect(m_parametrize, nullptr, nullptr, nullptr);
|
||||||
disconnect(m_resetAssignable, nullptr, nullptr, nullptr);
|
disconnect(m_resetAssignable, nullptr, nullptr, nullptr);
|
||||||
m_menu.clear();
|
m_menu.clear();
|
||||||
|
@ -70,6 +70,8 @@ public:
|
|||||||
m_layout->addWidget(m_cancelButton, 3, 0, 1, 1);
|
m_layout->addWidget(m_cancelButton, 3, 0, 1, 1);
|
||||||
m_layout->addWidget(m_applyButton, 3, 1, 1, 1);
|
m_layout->addWidget(m_applyButton, 3, 1, 1, 1);
|
||||||
|
|
||||||
|
m_applyButton->setToolTip(disabledReason());
|
||||||
|
|
||||||
connect(m_dragView, &DragChartView::pointsChanged, [=](auto points) {
|
connect(m_dragView, &DragChartView::pointsChanged, [=](auto points) {
|
||||||
if (points.length() > 1 && m_latestNodeIndex.has_value())
|
if (points.length() > 1 && m_latestNodeIndex.has_value())
|
||||||
emit canApplyChanged(true);
|
emit canApplyChanged(true);
|
||||||
@ -129,6 +131,8 @@ public:
|
|||||||
[this](auto dr) { m_dragView->setRange(0, 100, dr.min, dr.max); },
|
[this](auto dr) { m_dragView->setRange(0, 100, dr.min, dr.max); },
|
||||||
p::pattern(p::as<TuxClocker::Device::Range<int>>(p::arg)) =
|
p::pattern(p::as<TuxClocker::Device::Range<int>>(p::arg)) =
|
||||||
[this](auto ir) { m_dragView->setRange(0, 100, ir.min, ir.max); });
|
[this](auto ir) { m_dragView->setRange(0, 100, ir.min, ir.max); });
|
||||||
|
|
||||||
|
m_applyButton->setToolTip(disabledReason());
|
||||||
}
|
}
|
||||||
void setAssignableName(QString name) {
|
void setAssignableName(QString name) {
|
||||||
m_dependableLabel->setText(QString{"Connecting %1 with:"}.arg(name));
|
m_dependableLabel->setText(QString{"Connecting %1 with:"}.arg(name));
|
||||||
|
Loading…
Reference in New Issue
Block a user