Skip to content

Commit

Permalink
fix: typo2
Browse files Browse the repository at this point in the history
Change-Id: I2b1c9b1936becb74be46ca42fc764ba4a4ce87b4
  • Loading branch information
listenerri committed Dec 4, 2018
1 parent a87911c commit 9c37265
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion frame/item/pluginsitem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions interfaces/pluginsiteminterface.h
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion plugins/network/networkplugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
2 changes: 1 addition & 1 deletion plugins/network/networkplugin.h
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion plugins/trash/trashplugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
2 changes: 1 addition & 1 deletion plugins/trash/trashplugin.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion plugins/tray/system-trays/systemtrayitem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 9c37265

Please sign in to comment.