diff --git a/app/scanner/cutpapertool.cpp b/app/scanner/cutpapertool.cpp index 6a990b08..d415deaa 100644 --- a/app/scanner/cutpapertool.cpp +++ b/app/scanner/cutpapertool.cpp @@ -17,8 +17,8 @@ CutPaperTool::CutPaperTool(QWidget *parent) : //setPaperType(200,"A4",400); ui->widget->setSizeType(MILLIM); setSizeLabel(); - ui->pbtn_init->setFixedWidth(160); - this->setFixedWidth(ui->widget->width()+20); + //ui->pbtn_init->setFixedWidth(160); + this->setFixedWidth(ui->widget->width()+40); } CutPaperTool::~CutPaperTool() @@ -41,7 +41,7 @@ void CutPaperTool::setPaperType(const int d, const QString &t, const int& w) ui->widget->setPaperSize(paperType,w); //ui->widget->refreshView(); setSizeLabel(); - this->setFixedWidth(ui->widget->width()+20); + this->setFixedWidth(ui->widget->width()+40); setSizeInit(); } diff --git a/app/scanner/cutpapertool.ui b/app/scanner/cutpapertool.ui index af8c0a65..0e5178d6 100644 --- a/app/scanner/cutpapertool.ui +++ b/app/scanner/cutpapertool.ui @@ -2,12 +2,15 @@ CutPaperTool + + true + 0 0 439 - 700 + 676 @@ -19,7 +22,7 @@ 自定义扫描区域 - + @@ -153,7 +156,7 @@ 0 0 421 - 454 + 430