diff --git a/src/frame/main.cpp b/src/frame/main.cpp index 3cc9b18c3d..388f88a1e5 100644 --- a/src/frame/main.cpp +++ b/src/frame/main.cpp @@ -117,8 +117,6 @@ int main(int argc, char *argv[]) app->setProductIcon(DIconTheme::findQIcon("preferences-system")); app->setWindowIcon(DIconTheme::findQIcon("preferences-system")); - DApplicationSettings settings; - app->setApplicationDisplayName(QObject::tr("Control Center")); app->setApplicationDescription( QApplication::translate("main", diff --git a/src/plugin-update/window/widgets/resultitem.cpp b/src/plugin-update/window/widgets/resultitem.cpp index 22fcfbfcc6..3be6c7527a 100644 --- a/src/plugin-update/window/widgets/resultitem.cpp +++ b/src/plugin-update/window/widgets/resultitem.cpp @@ -7,8 +7,10 @@ #include #include #include +#include DWIDGET_USE_NAMESPACE +DGUI_USE_NAMESPACE ResultItem::ResultItem(QFrame *parent) : SettingsItem(parent), @@ -38,17 +40,17 @@ void ResultItem::setSuccess(ShowStatus type) switch (type) { case ShowStatus::NoActive: m_pix = ":/icons/deepin/builtin/icons/noactive.svg"; - m_icon->setPixmap(DHiDPIHelper::loadNxPixmap(m_pix)); + m_icon->setPixmap(DIcon::loadNxPixmap(m_pix)); setMessage(tr("Your system is not authorized, please activate first")); break; case ShowStatus::IsSuccessed: m_pix = ":/icons/deepin/builtin/icons/success.svg"; - m_icon->setPixmap(DHiDPIHelper::loadNxPixmap(m_pix)); + m_icon->setPixmap(DIcon::loadNxPixmap(m_pix)); setMessage(tr("Update successful")); break; case ShowStatus::IsFailed: m_pix = ":/icons/deepin/builtin/icons/failed.svg"; - m_icon->setPixmap(DHiDPIHelper::loadNxPixmap(m_pix)); + m_icon->setPixmap(DIcon::loadNxPixmap(m_pix)); setMessage(tr("Failed to update")); break; default: