调整裁剪区域窗口
This commit is contained in:
parent
108f2623d5
commit
6c457d48a8
|
@ -17,8 +17,8 @@ CutPaperTool::CutPaperTool(QWidget *parent) :
|
||||||
//setPaperType(200,"A4",400);
|
//setPaperType(200,"A4",400);
|
||||||
ui->widget->setSizeType(MILLIM);
|
ui->widget->setSizeType(MILLIM);
|
||||||
setSizeLabel();
|
setSizeLabel();
|
||||||
ui->pbtn_init->setFixedWidth(160);
|
//ui->pbtn_init->setFixedWidth(160);
|
||||||
this->setFixedWidth(ui->widget->width()+20);
|
this->setFixedWidth(ui->widget->width()+40);
|
||||||
}
|
}
|
||||||
|
|
||||||
CutPaperTool::~CutPaperTool()
|
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->setPaperSize(paperType,w);
|
||||||
//ui->widget->refreshView();
|
//ui->widget->refreshView();
|
||||||
setSizeLabel();
|
setSizeLabel();
|
||||||
this->setFixedWidth(ui->widget->width()+20);
|
this->setFixedWidth(ui->widget->width()+40);
|
||||||
setSizeInit();
|
setSizeInit();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -2,12 +2,15 @@
|
||||||
<ui version="4.0">
|
<ui version="4.0">
|
||||||
<class>CutPaperTool</class>
|
<class>CutPaperTool</class>
|
||||||
<widget class="QWidget" name="CutPaperTool">
|
<widget class="QWidget" name="CutPaperTool">
|
||||||
|
<property name="enabled">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>439</width>
|
<width>439</width>
|
||||||
<height>700</height>
|
<height>676</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="sizePolicy">
|
<property name="sizePolicy">
|
||||||
|
@ -19,7 +22,7 @@
|
||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
<string>自定义扫描区域</string>
|
<string>自定义扫描区域</string>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QVBoxLayout" name="verticalLayout_3">
|
<layout class="QVBoxLayout" name="verticalLayout_2">
|
||||||
<item>
|
<item>
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_4">
|
<layout class="QHBoxLayout" name="horizontalLayout_4">
|
||||||
<item>
|
<item>
|
||||||
|
@ -153,7 +156,7 @@
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>421</width>
|
<width>421</width>
|
||||||
<height>454</height>
|
<height>430</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QVBoxLayout" name="verticalLayout">
|
<layout class="QVBoxLayout" name="verticalLayout">
|
||||||
|
|
Loading…
Reference in New Issue