From 5037ee65b3b8240032b3a02858f62830feaea69a Mon Sep 17 00:00:00 2001 From: gfdgd_xi <3025613752@qq.com> Date: Tue, 1 Oct 2024 11:38:47 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=96=87=E4=BB=B6=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E5=99=A8=E8=AE=BE=E7=BD=AE=E7=AA=97=E5=8F=A3=E6=B2=A1?= =?UTF-8?q?=E6=9C=89=E5=85=B3=E9=97=AD=E6=8C=89=E9=92=AE=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98=20=EF=BC=88https://gitee.com/GXDE-OS/GXDE/issues/IAST?= =?UTF-8?q?SL=20https://github.com/GXDE-OS/GXDE/issues/3=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dde-file-manager-lib/dialogs/dfmsettingdialog.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/dde-file-manager-lib/dialogs/dfmsettingdialog.cpp b/dde-file-manager-lib/dialogs/dfmsettingdialog.cpp index 542450a..0bd0f93 100644 --- a/dde-file-manager-lib/dialogs/dfmsettingdialog.cpp +++ b/dde-file-manager-lib/dialogs/dfmsettingdialog.cpp @@ -38,6 +38,7 @@ #include "app/define.h" #include "singleton.h" #include "dfmapplication.h" +#include "dimagebutton.h" DFM_USE_NAMESPACE @@ -336,6 +337,16 @@ DFMSettingDialog::DFMSettingDialog(QWidget *parent): m_settings->setParent(this); m_settings->setBackend(backen); updateSettings("GenerateSettingTranslate", m_settings); + + // 设置关闭按钮图标 + DImageButton *closeButton = this->findChild(); + qDebug() << closeButton; + if (closeButton != NULL) { + closeButton->show(); + closeButton->setHoverPic(":/images/dialogs/images/light/window_close_hover.png"); + closeButton->setNormalPic(":/images/dialogs/images/light/window_close_normal.png"); + closeButton->setPressPic(":/images/dialogs/images/light/window_close_press.png"); + } } QWidget *DFMSettingDialog::createAutoMountCheckBox(QObject *opt)