添加定时器
This commit is contained in:
@@ -20,6 +20,7 @@ Inputter::Inputter(QWidget *parent) :
|
||||
inputType = type::Normal;
|
||||
DecimalPlaces = -1;
|
||||
|
||||
ui->label->hide();
|
||||
ui->lineEdit->setText(curentStr);
|
||||
ui->lineEdit->setReadOnly(true);
|
||||
|
||||
@@ -82,6 +83,17 @@ void Inputter::setDecimalPlaces(int value)
|
||||
DecimalPlaces = value;
|
||||
}
|
||||
|
||||
void Inputter::setLabel(QVariant s)
|
||||
{
|
||||
if(ui->label->isHidden())
|
||||
{
|
||||
ui->label->show();
|
||||
}
|
||||
|
||||
ui->label->setText(s.toString());
|
||||
}
|
||||
|
||||
|
||||
void Inputter::on_NumberClicked(QString str)
|
||||
{
|
||||
if((!curentStr.contains('n'))&&(!curentStr.contains('a')))
|
||||
|
||||
Reference in New Issue
Block a user