修正航线有多条连线的bug

This commit is contained in:
2020-06-06 16:08:11 +08:00
parent ca0f9363fd
commit 5740ba1ed4
9 changed files with 253 additions and 230 deletions
+17
View File
@@ -141,6 +141,21 @@ void Inputter::on_pushButton_0_clicked()
on_NumberClicked(ui->pushButton_0->text());
}
void Inputter::on_pushButton_minus_clicked()
{
if(curentStr.at(0) == '-')
{
curentStr = curentStr.mid(1);
}
else
{
curentStr.insert(0,'-');
}
ui->lineEdit->setText(curentStr);
}
void Inputter::on_pushButton_del_clicked()
{
curentStr = curentStr.mid(0,curentStr.size() - 1);
@@ -208,3 +223,5 @@ void Inputter::on_pushButton_nan_clicked()
curentStr = "nan";
ui->lineEdit->setText(curentStr);
}