This commit is contained in:
yangjiaxuan 2023-05-29 18:45:15 +08:00
parent e5951a960e
commit 6400b4db88
7 changed files with 16 additions and 10 deletions

Binary file not shown.

View File

@ -97,7 +97,7 @@
<message>
<location filename="dialog_aquireinto.ui" line="136"/>
<source>delete all configurations</source>
<translation></translation>
<translation></translation>
</message>
<message>
<source>confgiuration information:</source>
@ -106,12 +106,12 @@
<message>
<location filename="dialog_aquireinto.ui" line="94"/>
<source>change name</source>
<translation></translation>
<translation></translation>
</message>
<message>
<location filename="dialog_aquireinto.ui" line="117"/>
<source>delete</source>
<translation></translation>
<translation></translation>
</message>
<message>
<source>apply</source>
@ -120,12 +120,12 @@
<message>
<location filename="dialog_aquireinto.ui" line="75"/>
<source>found scheme</source>
<translation></translation>
<translation></translation>
</message>
<message>
<location filename="dialog_aquireinto.ui" line="151"/>
<source>Restore Defaults</source>
<translation></translation>
<translation></translation>
</message>
<message>
<location filename="dialog_aquireinto.ui" line="179"/>

Binary file not shown.

View File

@ -125,7 +125,7 @@
<message>
<location filename="dialog_aquireinto.ui" line="136"/>
<source>delete all configurations</source>
<translation>Delete all configurations</translation>
<translation>Delete all</translation>
</message>
<message>
<source>confgiuration information:</source>
@ -153,7 +153,7 @@
<message>
<location filename="dialog_aquireinto.ui" line="151"/>
<source>Restore Defaults</source>
<translation>Restore default configuration</translation>
<translation>Restore default</translation>
</message>
<message>
<location filename="dialog_aquireinto.ui" line="179"/>

View File

@ -203,6 +203,9 @@ public:
{
const SANE_Option_Descriptor* opt = saneApi->sane_get_option_descriptor_api(h, i);
if(!opt)
continue;
if (opt->type == SANE_TYPE_BUTTON || opt->type == SANE_TYPE_GROUP)
continue;
saneApi->sane_control_option_api(h, i, SANE_ACTION_SET_AUTO, NULL, NULL);

View File

@ -205,6 +205,9 @@ public:
if(!opt)
continue;
if (opt->type == SANE_TYPE_BUTTON || opt->type == SANE_TYPE_GROUP)
continue;
saneApi->sane_control_option_api(h, i, SANE_ACTION_SET_AUTO, NULL, NULL);
}
@ -213,7 +216,7 @@ public:
static SANE_Status get_default_value(const SANEAPI* saneApi, SANE_Handle h, int i, void* def)
{
const SANE_Option_Descriptor* opt = saneApi->sane_get_option_descriptor_api(h, i);
if(!opt)
if(!opt || opt->type == SANE_TYPE_BUTTON || opt->type == SANE_TYPE_GROUP)
{
return SANE_STATUS_INVAL;
}
@ -272,7 +275,7 @@ public:
for(int i = 1; i < dev_options; ++i)
{
const SANE_Option_Descriptor* opt = saneApi->sane_get_option_descriptor_api(h, i);
if(!opt)
if(!opt || opt->type == SANE_TYPE_BUTTON || opt->type == SANE_TYPE_GROUP)
continue;
unsigned int n = i;

View File

@ -117,7 +117,7 @@ void Dialog_progress_ui::on_scan_finish(int flag, QString finishInfo)
void Dialog_progress_ui::on_image_recived()
{
ui->lineEdit_imgRecived->setText(QString::number(imageRecivedCount++));
ui->lineEdit_imgRecived->setText(QString::number(++imageRecivedCount));
}
void Dialog_progress_ui::on_image_uploaded()