调整滚轴张数和扫描张数接口
This commit is contained in:
parent
4145692026
commit
034108eb37
|
@ -283,7 +283,7 @@ void MainWindow::on_comboDevList_currentIndexChanged(int index)
|
||||||
|
|
||||||
SANE_Int rollCount = 0;
|
SANE_Int rollCount = 0;
|
||||||
unsigned int rollCountSize = sizeof(SANE_Int);
|
unsigned int rollCountSize = sizeof(SANE_Int);
|
||||||
SANE_Status ret = sane_io_control(m_curDevHandle, IO_CTRL_CODE_GET_HISTORY_ROLLER_NUM, &rollCount, &rollCountSize);
|
SANE_Status ret = sane_io_control(m_curDevHandle, IO_CTRL_CODE_GET_ROLLER_NUM, &rollCount, &rollCountSize);
|
||||||
if(ret == SANE_STATUS_GOOD && rollCount >= 0)
|
if(ret == SANE_STATUS_GOOD && rollCount >= 0)
|
||||||
{
|
{
|
||||||
ui->labelRollCount->setText(QString("%1").arg(rollCount));
|
ui->labelRollCount->setText(QString("%1").arg(rollCount));
|
||||||
|
@ -295,7 +295,7 @@ void MainWindow::on_comboDevList_currentIndexChanged(int index)
|
||||||
|
|
||||||
SANE_Int scanCount = 0;
|
SANE_Int scanCount = 0;
|
||||||
unsigned int scanCountSize = sizeof(SANE_Int);
|
unsigned int scanCountSize = sizeof(SANE_Int);
|
||||||
ret = sane_io_control(m_curDevHandle, IO_CTRL_CODE_GET_SCANN_NUM, &scanCount, &scanCountSize);
|
ret = sane_io_control(m_curDevHandle, IO_CTRL_CODE_GET_HISTORY_SCAN_NUM, &scanCount, &scanCountSize);
|
||||||
if (ret == SANE_STATUS_GOOD && scanCount >= 0)
|
if (ret == SANE_STATUS_GOOD && scanCount >= 0)
|
||||||
{
|
{
|
||||||
ui->labelScanCount->setText(QString("%1").arg(scanCount));
|
ui->labelScanCount->setText(QString("%1").arg(scanCount));
|
||||||
|
|
Loading…
Reference in New Issue