调整清除滚轴计数枚举名

This commit is contained in:
yangjiaxuan 2022-12-14 09:25:16 +08:00
parent 273ebeb85a
commit ea6ad093e5
2 changed files with 3 additions and 3 deletions

View File

@ -547,7 +547,7 @@ void MainWindow::on_comboDevList2_currentIndexChanged(int index)
void MainWindow::on_btnClearRollCount_clicked()
{
unsigned int count = 0;
int ret = sane_io_control(m_curDevHandle, IO_CTRL_CODE_CLEAR_ROLLER_COUNT, nullptr, &count);
int ret = sane_io_control(m_curDevHandle, IO_CTRL_CODE_SET_CLEAR_ROLLER_COUNT, nullptr, &count);
QString info;
if (ret == SANE_STATUS_GOOD)

View File

@ -2944,7 +2944,7 @@ void MainWindow::on_act_clearRoller_triggered()
return;
unsigned int count = 0;
int ret = sane_io_control(dev_que_.handle(), IO_CTRL_CODE_CLEAR_ROLLER_COUNT, nullptr, &count);
int ret = sane_io_control(dev_que_.handle(), IO_CTRL_CODE_SET_CLEAR_ROLLER_COUNT, nullptr, &count);
if(ret == SANE_STATUS_GOOD)
{
@ -3023,7 +3023,7 @@ void MainWindow::my_url_handler(const QUrl& url)
if(msg.clickedButton() == msg.button(QMessageBox::Yes))
{
unsigned int count = 0;
int ret = sane_io_control(dev_que_.handle(), IO_CTRL_CODE_CLEAR_ROLLER_COUNT, nullptr, &count);
int ret = sane_io_control(dev_que_.handle(), IO_CTRL_CODE_SET_CLEAR_ROLLER_COUNT, nullptr, &count);
QString info;
if(ret == SANE_STATUS_GOOD)