Skip to content

Commit

Permalink
chore: remove deprecated function
Browse files Browse the repository at this point in the history
Log:
  • Loading branch information
Decodetalkers authored and deepin-bot[bot] committed Oct 26, 2023
1 parent de1b20c commit f65bd7e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 0 additions & 2 deletions src/frame/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
8 changes: 5 additions & 3 deletions src/plugin-update/window/widgets/resultitem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@
#include <QLabel>
#include <QDebug>
#include <dhidpihelper.h>
#include <DIcon>

DWIDGET_USE_NAMESPACE
DGUI_USE_NAMESPACE

ResultItem::ResultItem(QFrame *parent)
: SettingsItem(parent),
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit f65bd7e

Please sign in to comment.