From 9c3726571302a40f36e6db38e56d63402a8bc137 Mon Sep 17 00:00:00 2001 From: listenerri Date: Tue, 4 Dec 2018 16:05:15 +0800 Subject: [PATCH] fix: typo2 Change-Id: I2b1c9b1936becb74be46ca42fc764ba4a4ce87b4 --- frame/item/pluginsitem.cpp | 2 +- interfaces/pluginsiteminterface.h | 6 +++--- plugins/network/networkplugin.cpp | 2 +- plugins/network/networkplugin.h | 2 +- plugins/trash/trashplugin.cpp | 2 +- plugins/trash/trashplugin.h | 2 +- plugins/tray/system-trays/systemtrayitem.cpp | 2 +- 7 files changed, 9 insertions(+), 9 deletions(-) diff --git a/frame/item/pluginsitem.cpp b/frame/item/pluginsitem.cpp index 7c22e2521..5bd89da3b 100644 --- a/frame/item/pluginsitem.cpp +++ b/frame/item/pluginsitem.cpp @@ -111,7 +111,7 @@ QSize PluginsItem::sizeHint() const void PluginsItem::refershIcon() { - m_pluginInter->refershIcon(m_itemKey); + m_pluginInter->refreshIcon(m_itemKey); } QWidget *PluginsItem::centralWidget() const diff --git a/interfaces/pluginsiteminterface.h b/interfaces/pluginsiteminterface.h index b6afc3548..051f02652 100644 --- a/interfaces/pluginsiteminterface.h +++ b/interfaces/pluginsiteminterface.h @@ -184,12 +184,12 @@ class PluginsItemInterface virtual void positionChanged(const Dock::Position position) {Q_UNUSED(position);} /// - /// \brief refershIcon - /// refersh item icon, its triggered when system icon theme changed. + /// \brief refreshIcon + /// refresh item icon, its triggered when system icon theme changed. /// \param itemKey /// item key /// - virtual void refershIcon(const QString &itemKey) { Q_UNUSED(itemKey); } + virtual void refreshIcon(const QString &itemKey) { Q_UNUSED(itemKey); } protected: diff --git a/plugins/network/networkplugin.cpp b/plugins/network/networkplugin.cpp index 2f2b9b7c1..cb9dbb958 100644 --- a/plugins/network/networkplugin.cpp +++ b/plugins/network/networkplugin.cpp @@ -75,7 +75,7 @@ void NetworkPlugin::invokedMenuItem(const QString &itemKey, const QString &menuI Q_UNREACHABLE(); } -void NetworkPlugin::refershIcon(const QString &itemKey) +void NetworkPlugin::refreshIcon(const QString &itemKey) { Q_UNUSED(itemKey); diff --git a/plugins/network/networkplugin.h b/plugins/network/networkplugin.h index b14c95c42..0ffa4222f 100644 --- a/plugins/network/networkplugin.h +++ b/plugins/network/networkplugin.h @@ -41,7 +41,7 @@ class NetworkPlugin : public QObject, PluginsItemInterface const QString pluginDisplayName() const; void init(PluginProxyInterface *proxyInter); void invokedMenuItem(const QString &itemKey, const QString &menuId, const bool checked); - void refershIcon(const QString &itemKey); + void refreshIcon(const QString &itemKey); void pluginStateSwitched(); bool pluginIsAllowDisable() { return true; } bool pluginIsDisable(); diff --git a/plugins/trash/trashplugin.cpp b/plugins/trash/trashplugin.cpp index cd57345ee..1de9f482e 100644 --- a/plugins/trash/trashplugin.cpp +++ b/plugins/trash/trashplugin.cpp @@ -112,7 +112,7 @@ const QString TrashPlugin::itemContextMenu(const QString &itemKey) return m_trashWidget->contextMenu(); } -void TrashPlugin::refershIcon(const QString &itemKey) +void TrashPlugin::refreshIcon(const QString &itemKey) { Q_UNUSED(itemKey); diff --git a/plugins/trash/trashplugin.h b/plugins/trash/trashplugin.h index 4e17329ed..7fdff21e7 100644 --- a/plugins/trash/trashplugin.h +++ b/plugins/trash/trashplugin.h @@ -50,7 +50,7 @@ class TrashPlugin : public QObject, PluginsItemInterface QWidget *itemPopupApplet(const QString &itemKey); const QString itemCommand(const QString &itemKey); const QString itemContextMenu(const QString &itemKey); - void refershIcon(const QString &itemKey); + void refreshIcon(const QString &itemKey); void invokedMenuItem(const QString &itemKey, const QString &menuId, const bool checked); int itemSortKey(const QString &itemKey) override; diff --git a/plugins/tray/system-trays/systemtrayitem.cpp b/plugins/tray/system-trays/systemtrayitem.cpp index 1c27bee2a..b43a00600 100644 --- a/plugins/tray/system-trays/systemtrayitem.cpp +++ b/plugins/tray/system-trays/systemtrayitem.cpp @@ -90,7 +90,7 @@ void SystemTrayItem::setActive(const bool active) void SystemTrayItem::updateIcon() { - m_pluginInter->refershIcon(m_itemKey); + m_pluginInter->refreshIcon(m_itemKey); } const QImage SystemTrayItem::trayImage()