mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-04 17:33:05 +00:00
change infoChanged to infoChangedEvent
Change-Id: I47d7f5d40e44866d37c276865c71d3b43cbb9513
This commit is contained in:
parent
6e0c71fc19
commit
2d3f870395
Notes:
Deepin Code Review
2016-06-14 07:19:47 +00:00
Verified+1: Anonymous Coward #1000004 Code-Review+2: <yangwanqing@linuxdeepin.com> Submitted-by: <yangwanqing@linuxdeepin.com> Submitted-at: Tue, 13 Oct 2015 13:58:14 +0800 Reviewed-on: https://cr.deepin.io/7725 Project: dde/dde-dock Branch: refs/heads/master
@ -94,7 +94,7 @@ QWidget * SystrayPlugin::getApplet(QString)
|
||||
void SystrayPlugin::changeMode(Dock::DockMode newMode, Dock::DockMode)
|
||||
{
|
||||
m_compositeItem->setMode(newMode);
|
||||
m_proxy->infoChanged(DockPluginInterface::ItemSize, CompositeItemKey);
|
||||
m_proxy->infoChangedEvent(DockPluginInterface::ItemSize, CompositeItemKey);
|
||||
}
|
||||
|
||||
QString SystrayPlugin::getMenuContent(QString)
|
||||
@ -116,7 +116,7 @@ void SystrayPlugin::onAdded(WId winId)
|
||||
|
||||
m_compositeItem->addTrayIcon(key, icon);
|
||||
|
||||
m_proxy->infoChanged(DockPluginInterface::ItemSize, CompositeItemKey);
|
||||
m_proxy->infoChangedEvent(DockPluginInterface::ItemSize, CompositeItemKey);
|
||||
}
|
||||
|
||||
void SystrayPlugin::onRemoved(WId winId)
|
||||
@ -125,5 +125,5 @@ void SystrayPlugin::onRemoved(WId winId)
|
||||
|
||||
m_compositeItem->remove(key);
|
||||
|
||||
m_proxy->infoChanged(DockPluginInterface::ItemSize, CompositeItemKey);
|
||||
m_proxy->infoChangedEvent(DockPluginInterface::ItemSize, CompositeItemKey);
|
||||
}
|
||||
|
@ -63,7 +63,7 @@ void DockPluginProxy::itemRemovedEvent(QString id)
|
||||
}
|
||||
}
|
||||
|
||||
void DockPluginProxy::infoChanged(DockPluginInterface::InfoType type, const QString &id)
|
||||
void DockPluginProxy::infoChangedEvent(DockPluginInterface::InfoType type, const QString &id)
|
||||
{
|
||||
switch (type) {
|
||||
case DockPluginInterface::ItemSize:
|
||||
|
@ -20,9 +20,7 @@ public:
|
||||
|
||||
void itemAddedEvent(QString id) Q_DECL_OVERRIDE;
|
||||
void itemRemovedEvent(QString id) Q_DECL_OVERRIDE;
|
||||
void itemSizeChangedEvent(QString id);
|
||||
void appletSizeChangedEvent(QString id);
|
||||
void infoChanged(DockPluginInterface::InfoType type, const QString &id) Q_DECL_OVERRIDE;
|
||||
void infoChangedEvent(DockPluginInterface::InfoType type, const QString &id) Q_DECL_OVERRIDE;
|
||||
|
||||
signals:
|
||||
void itemAdded(AbstractDockItem * item, QString uuid);
|
||||
@ -35,6 +33,9 @@ private:
|
||||
|
||||
QPluginLoader * m_loader;
|
||||
DockPluginInterface * m_plugin;
|
||||
|
||||
void itemSizeChangedEvent(QString id);
|
||||
void appletSizeChangedEvent(QString id);
|
||||
};
|
||||
|
||||
#endif // DOCKPLUGINPROXY_H
|
||||
|
@ -13,7 +13,7 @@ public:
|
||||
|
||||
virtual void itemAddedEvent(QString id) = 0;
|
||||
virtual void itemRemovedEvent(QString id) = 0;
|
||||
virtual void infoChanged(DockPluginInterface::InfoType type, const QString &id) = 0;
|
||||
virtual void infoChangedEvent(DockPluginInterface::InfoType type, const QString &id) = 0;
|
||||
};
|
||||
|
||||
#endif // DOCKPLUGINPROXYINTERFACE_H
|
||||
|
Loading…
x
Reference in New Issue
Block a user