18 const std::function<
bool()> &checkFunc,
19 const std::function<QMetaObject::Connection()> &connectFunction)
const {
21 QMetaObject::Connection m_connection = connectFunction();
22 if (requestFunc && !requestFunc()) {
23 QObject::disconnect(m_connection);
28 QObject::disconnect(m_connection);