scantool微调

This commit is contained in:
yangjiaxuan 2024-05-20 16:47:21 +08:00
parent ea4daf26db
commit 5e094457f4
2 changed files with 11 additions and 11 deletions

View File

@ -811,7 +811,7 @@ void Form_DeviceConfig::Update(int ignoreId)
}
}
void Form_DeviceConfig::PopupMsgBox(QString content)
void Form_DeviceConfig::PopupMsgBox(const QString& content)
{
assert(nullptr == m_qMessageBoxDlg);
m_qMessageBoxDlg = new QMessageBox(QMessageBox::Information, tr("Prompt"), content, QMessageBox::Ok, this);
@ -870,7 +870,7 @@ void Form_DeviceConfig::on_string_list_comboBoxClicked()
comboBox->setCurrentText(QString::fromUtf8(v));
connect(comboBox, SIGNAL(currentTextChanged(const QString)), this, SLOT(on_string_list_comboBoxClicked()));
QString content("The funtion is unsupported");
QString content(tr("The funtion is unsupported"));
PopupMsgBox(content);
return;
@ -900,7 +900,7 @@ void Form_DeviceConfig::on_int_list_comboBoxClicked()
comboBox->setCurrentText(QString::number(v));
connect(comboBox, SIGNAL(currentTextChanged(const QString)), this, SLOT(on_int_list_comboBoxClicked()));
QString content("The funtion is unsupported");
QString content(tr("The funtion is unsupported"));
PopupMsgBox(content);
return;
@ -930,7 +930,7 @@ void Form_DeviceConfig::on_double_list_comboBoxClicked()
comboBox->setCurrentText(QString::number(SANE_UNFIX(v)));
connect(comboBox, SIGNAL(currentTextChanged(const QString)), this, SLOT(on_double_list_comboBoxClicked()));
QString content("The funtion is unsupported");
QString content(tr("The funtion is unsupported"));
PopupMsgBox(content);
return;
@ -968,7 +968,7 @@ void Form_DeviceConfig::on_int_sliderClicked(int value)
connect(slider, SIGNAL(valueChanged(int)), this, SLOT(on_int_sliderClicked(int)));
connect(spinBox, SIGNAL(valueChanged(int)), this, SLOT(on_relate_spinBoxClicked(int)));
QString content("The funtion is unsupported");
QString content(tr("The funtion is unsupported"));
PopupMsgBox(content);
return;
@ -1006,7 +1006,7 @@ void Form_DeviceConfig::on_double_sliderClicked(int value)
connect(slider, SIGNAL(valueChanged(int)), this, SLOT(on_double_sliderClicked(int)));
connect(doubleSpinBox, SIGNAL(valueChanged(double)), this, SLOT(on_relate_doubleSpinboxClicked(double)));
QString content("The funtion is unsupported");
QString content(tr("The funtion is unsupported"));
PopupMsgBox(content);
return;
@ -1050,7 +1050,7 @@ void Form_DeviceConfig::on_string_comboBoxClicked()
comboBox->setCurrentText(QString::fromUtf8(v));
connect(comboBox, SIGNAL(currentTextChanged(const QString)), this, SLOT(on_string_comboBoxClicked()));
QString content("The funtion is unsupported");
QString content(tr("The funtion is unsupported"));
PopupMsgBox(content);
return;
@ -1080,7 +1080,7 @@ void Form_DeviceConfig::on_spinBoxClicked(int value)
spinBox->setValue(v);
connect(spinBox, SIGNAL(valueChanged(int)), this, SLOT(on_spinBoxClicked(int)));
QString content("The funtion is unsupported");
QString content(tr("The funtion is unsupported"));
PopupMsgBox(content);
return;
@ -1118,7 +1118,7 @@ void Form_DeviceConfig::on_customGamma_checkedClicked()
connect(checkBox, SIGNAL(stateChanged(int)), this, SLOT(on_checkedClicked()));
connect(button, &QPushButton::clicked, this, &Form_DeviceConfig::on_customGammaBtn_clicked);
QString content("The funtion is unsupported");
QString content(tr("The funtion is unsupported"));
PopupMsgBox(content);
return;
@ -1362,7 +1362,7 @@ void Form_DeviceConfig::on_checkedClicked()
checkBox->setCheckState(value ? Qt::Checked : Qt::Unchecked);
connect(checkBox, SIGNAL(stateChanged(int)), this, SLOT(on_checkedClicked()));
QString content("The funtion is unsupported");
QString content(tr("The funtion is unsupported"));
PopupMsgBox(content);
return;

View File

@ -123,7 +123,7 @@ public:
private:
void Init(const std::vector<DeviceConfig>& deviceConfigs);
void Update(int ignoreId);
void PopupMsgBox(QString content);
void PopupMsgBox(const QString& content);
protected:
virtual bool eventFilter(QObject *target, QEvent *event) override;