scantool微调
This commit is contained in:
parent
ea4daf26db
commit
5e094457f4
|
@ -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);
|
assert(nullptr == m_qMessageBoxDlg);
|
||||||
m_qMessageBoxDlg = new QMessageBox(QMessageBox::Information, tr("Prompt"), content, QMessageBox::Ok, this);
|
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));
|
comboBox->setCurrentText(QString::fromUtf8(v));
|
||||||
connect(comboBox, SIGNAL(currentTextChanged(const QString)), this, SLOT(on_string_list_comboBoxClicked()));
|
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);
|
PopupMsgBox(content);
|
||||||
|
|
||||||
return;
|
return;
|
||||||
|
@ -900,7 +900,7 @@ void Form_DeviceConfig::on_int_list_comboBoxClicked()
|
||||||
comboBox->setCurrentText(QString::number(v));
|
comboBox->setCurrentText(QString::number(v));
|
||||||
connect(comboBox, SIGNAL(currentTextChanged(const QString)), this, SLOT(on_int_list_comboBoxClicked()));
|
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);
|
PopupMsgBox(content);
|
||||||
|
|
||||||
return;
|
return;
|
||||||
|
@ -930,7 +930,7 @@ void Form_DeviceConfig::on_double_list_comboBoxClicked()
|
||||||
comboBox->setCurrentText(QString::number(SANE_UNFIX(v)));
|
comboBox->setCurrentText(QString::number(SANE_UNFIX(v)));
|
||||||
connect(comboBox, SIGNAL(currentTextChanged(const QString)), this, SLOT(on_double_list_comboBoxClicked()));
|
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);
|
PopupMsgBox(content);
|
||||||
|
|
||||||
return;
|
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(slider, SIGNAL(valueChanged(int)), this, SLOT(on_int_sliderClicked(int)));
|
||||||
connect(spinBox, SIGNAL(valueChanged(int)), this, SLOT(on_relate_spinBoxClicked(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);
|
PopupMsgBox(content);
|
||||||
|
|
||||||
return;
|
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(slider, SIGNAL(valueChanged(int)), this, SLOT(on_double_sliderClicked(int)));
|
||||||
connect(doubleSpinBox, SIGNAL(valueChanged(double)), this, SLOT(on_relate_doubleSpinboxClicked(double)));
|
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);
|
PopupMsgBox(content);
|
||||||
|
|
||||||
return;
|
return;
|
||||||
|
@ -1050,7 +1050,7 @@ void Form_DeviceConfig::on_string_comboBoxClicked()
|
||||||
comboBox->setCurrentText(QString::fromUtf8(v));
|
comboBox->setCurrentText(QString::fromUtf8(v));
|
||||||
connect(comboBox, SIGNAL(currentTextChanged(const QString)), this, SLOT(on_string_comboBoxClicked()));
|
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);
|
PopupMsgBox(content);
|
||||||
|
|
||||||
return;
|
return;
|
||||||
|
@ -1080,7 +1080,7 @@ void Form_DeviceConfig::on_spinBoxClicked(int value)
|
||||||
spinBox->setValue(v);
|
spinBox->setValue(v);
|
||||||
connect(spinBox, SIGNAL(valueChanged(int)), this, SLOT(on_spinBoxClicked(int)));
|
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);
|
PopupMsgBox(content);
|
||||||
|
|
||||||
return;
|
return;
|
||||||
|
@ -1118,7 +1118,7 @@ void Form_DeviceConfig::on_customGamma_checkedClicked()
|
||||||
connect(checkBox, SIGNAL(stateChanged(int)), this, SLOT(on_checkedClicked()));
|
connect(checkBox, SIGNAL(stateChanged(int)), this, SLOT(on_checkedClicked()));
|
||||||
connect(button, &QPushButton::clicked, this, &Form_DeviceConfig::on_customGammaBtn_clicked);
|
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);
|
PopupMsgBox(content);
|
||||||
|
|
||||||
return;
|
return;
|
||||||
|
@ -1362,7 +1362,7 @@ void Form_DeviceConfig::on_checkedClicked()
|
||||||
checkBox->setCheckState(value ? Qt::Checked : Qt::Unchecked);
|
checkBox->setCheckState(value ? Qt::Checked : Qt::Unchecked);
|
||||||
connect(checkBox, SIGNAL(stateChanged(int)), this, SLOT(on_checkedClicked()));
|
connect(checkBox, SIGNAL(stateChanged(int)), this, SLOT(on_checkedClicked()));
|
||||||
|
|
||||||
QString content("The funtion is unsupported");
|
QString content(tr("The funtion is unsupported"));
|
||||||
PopupMsgBox(content);
|
PopupMsgBox(content);
|
||||||
|
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -123,7 +123,7 @@ public:
|
||||||
private:
|
private:
|
||||||
void Init(const std::vector<DeviceConfig>& deviceConfigs);
|
void Init(const std::vector<DeviceConfig>& deviceConfigs);
|
||||||
void Update(int ignoreId);
|
void Update(int ignoreId);
|
||||||
void PopupMsgBox(QString content);
|
void PopupMsgBox(const QString& content);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual bool eventFilter(QObject *target, QEvent *event) override;
|
virtual bool eventFilter(QObject *target, QEvent *event) override;
|
||||||
|
|
Loading…
Reference in New Issue