Skip to content

Commit

Permalink
修复文件管理器设置窗口没有关闭按钮的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
gfdgd-xi committed Oct 1, 2024
1 parent 0b3a7b1 commit 5037ee6
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions dde-file-manager-lib/dialogs/dfmsettingdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
#include "app/define.h"
#include "singleton.h"
#include "dfmapplication.h"
#include "dimagebutton.h"

DFM_USE_NAMESPACE

Expand Down Expand Up @@ -336,6 +337,16 @@ DFMSettingDialog::DFMSettingDialog(QWidget *parent):
m_settings->setParent(this);
m_settings->setBackend(backen);
updateSettings("GenerateSettingTranslate", m_settings);

// 设置关闭按钮图标
DImageButton *closeButton = this->findChild<DImageButton *>();
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)
Expand Down

0 comments on commit 5037ee6

Please sign in to comment.