1042版本发行
This commit is contained in:
+6
-2
@@ -444,6 +444,8 @@ void TestPrintWidget::openWorkFile(QString filePath){
|
||||
}
|
||||
}
|
||||
|
||||
pViewer->centerOn(0, 0);
|
||||
|
||||
if(m_printSetting) {
|
||||
m_printSetting->setModel(m_printSettingModel);
|
||||
}
|
||||
@@ -661,10 +663,12 @@ void TestPrintWidget::showEvent(QShowEvent *event)
|
||||
pPicScene->update();
|
||||
auto sceneRect = pPicScene->sceneRect();
|
||||
// qreal sceneHeight = boundingRect.height() > (qreal)(sysPara->para.canvasHeight) ? SCENE_MAX_HEIGHT : (qreal)(sysPara->para.canvasHeight);
|
||||
qreal sceneHeight = qMin(qreal(SCENE_MAX_HEIGHT), (qreal)(sysPara->para.canvasHeight));
|
||||
sceneRect.setHeight(sceneHeight);
|
||||
int sceneHeight = qMin(int(SCENE_MAX_HEIGHT), (int)(sysPara->para.canvasHeight));
|
||||
sceneRect.setHeight((qreal)(sceneHeight));
|
||||
pPicScene->setSceneRect(sceneRect);
|
||||
|
||||
// TODO:: 添加代码,只在sceneHeight高度为32时,才显示 字体大小选择框中的 32 dot选项
|
||||
|
||||
// 以高度为基准 最大化显示场景到 视口
|
||||
auto viewportHeight = pViewer->viewport()->height();
|
||||
QTransform transform = pViewer->transform();
|
||||
|
||||
Reference in New Issue
Block a user