Python: Use a connect that will remain valid

... after a StringAspect/FileAspect split, instead of relying on
the  current inheritance.

Change-Id: I7dd91f402636d35a15e9d1618b73c0981777b06e
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
This commit is contained in:
hjk
2023-07-26 11:55:08 +02:00
parent 59ce7c14f7
commit bcb083bd99

View File

@@ -109,7 +109,7 @@ PythonWizardPage::PythonWizardPage(const QList<QPair<QString, QVariant>> &pySide
m_stateLabel->setWordWrap(true);
m_stateLabel->setFilled(true);
m_stateLabel->setType(InfoLabel::Error);
connect(&m_venvPath, &StringAspect::validChanged, this, &PythonWizardPage::updateStateLabel);
connect(&m_venvPath, &FilePathAspect::validChanged, this, &PythonWizardPage::updateStateLabel);
connect(&m_createVenv, &BaseAspect::changed, this, &PythonWizardPage::updateStateLabel);
Form {