From bf628425472dc5b52691c4644adb182311f0a976 Mon Sep 17 00:00:00 2001 From: yangjiaxuan <171295266@qq.com> Date: Tue, 16 Aug 2022 14:00:16 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=9A=E5=88=97=E6=98=BE=E7=A4=BA=E6=97=B6?= =?UTF-8?q?=E7=9B=B4=E6=8E=A5=E6=98=BE=E7=A4=BA=E4=B8=A4=E5=88=97=E5=9B=BE?= =?UTF-8?q?=E7=89=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/scanner/mainwindow.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app/scanner/mainwindow.cpp b/app/scanner/mainwindow.cpp index 9866b046..1b0527ff 100644 --- a/app/scanner/mainwindow.cpp +++ b/app/scanner/mainwindow.cpp @@ -663,9 +663,17 @@ void MainWindow::on_act_moveTo_triggered() void MainWindow::on_act_thumbGrid_triggered(bool checked) { if (checked) + { m_thumb->setType(HGImgThumb::ThumbType_Grid); + resizeDocks({ui->dockWidget}, {300}, Qt::Horizontal); + } + else + { m_thumb->setType(HGImgThumb::ThumbType_Vert); + resizeDocks({ui->dockWidget}, {200}, Qt::Horizontal); + } + } void MainWindow::on_dialog_adjust_applyToImage(HGImage img)