MCPcopy Create free account
hub / github.com/KangLin/RabbitRemoteControl / CheckValidity

Method CheckValidity

Src/ParameterCompone/ParameterNetUI.cpp:55–65  ·  view source on GitHub ↗

[Check validity]

Source from the content-addressed store, hash-verified

53
54//! [Check validity]
55bool CParameterNetUI::CheckValidity(bool validity)
56{
57 if(validity && ui->leHost->text().isEmpty()) {
58 QMessageBox::critical(this, tr("Error"),
59 m_pNet->GetPrompt());
60 qCritical(log) << "The host is empty" << m_pNet->GetPrompt();
61 ui->leHost->setFocus();
62 return false;
63 }
64 return true;
65}
66//! [Check validity]
67
68//! [Accept]

Callers

nothing calls this directly

Calls 2

GetPromptMethod · 0.80
isEmptyMethod · 0.45

Tested by

no test coverage detected