微调设置界面降速提示异常

This commit is contained in:
yangjiaxuan 2023-06-30 09:47:58 +08:00
parent f8d34fced1
commit d1da17b8b0
1 changed files with 5 additions and 2 deletions

View File

@ -679,6 +679,11 @@ void hg_settingdialog::createUI()
comboBoxCreation->setProperty("controls_id", id);
reinterpret_cast<QFormLayout*>(widget->layout())->addRow(opt->title + QString(" : "), comboBoxCreation);
if (0 == strcmp(opt->name, SANE_STD_OPT_NAME_TEXT_DIRECTION))
{
comboBoxCreation->installEventFilter(this);
}
auto p_str = opt->constraint.string_list;
QStringList stringList;
while(*p_str)
@ -1155,11 +1160,9 @@ void hg_settingdialog::slot_string_list_comboBoxClicked()
{
if (comboBox->currentText() == OPTION_VALUE_WGFX_ZDWBFXSB)
{
comboBox->installEventFilter(this);
if (!m_isRefreshUi)
QMessageBox::information(this, tr("Prompt"), tr("This function may cause a decrease in the speed of drawing."));
}
}
if (0 == comb_->currentIndex())