And in order not to post next thread, if I have a bool function, can I call return false; in few if() ? I mean:
if (beaufortBox->isChecked() && beaufortBox_2->isChecked())
{
int ret
= QMessageBox::Information(this, tr
("Speed Units Converter"),
tr("You can't convert value to the same unit"),
return false;
}
if (beaufortBox_2->isChecked() && beaufortBox_3->isChecked())
{
int ret
= QMessageBox::Information(this, tr
("Speed Units Converter"),
tr("You can't convert value to the same unit"),
return false;
}
if (beaufortBox->isChecked() && beaufortBox_2->isChecked())
{
int ret = QMessageBox::Information(this, tr("Speed Units Converter"),
tr("You can't convert value to the same unit"),
QMessageBox::Ok | QMessageBox::Default);
return false;
}
if (beaufortBox_2->isChecked() && beaufortBox_3->isChecked())
{
int ret = QMessageBox::Information(this, tr("Speed Units Converter"),
tr("You can't convert value to the same unit"),
QMessageBox::Ok | QMessageBox::Default);
return false;
}
To copy to clipboard, switch view to plain text mode
Bookmarks