mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-04 17:33:05 +00:00
lazy load dock plugins
Change-Id: Ia73438795ca52af05a3fbfaa9d00cec2fd2aa420
This commit is contained in:
parent
54cf3c2259
commit
3cb3f10af5
Notes:
Deepin Code Review
2016-06-14 07:19:47 +00:00
Verified+1: Anonymous Coward #1000004 Code-Review+2: <mr.asianwang@gmail.com> Submitted-by: <mr.asianwang@gmail.com> Submitted-at: Tue, 29 Sep 2015 19:41:10 +0800 Reviewed-on: https://cr.deepin.io/7505 Project: dde/dde-dock Branch: refs/heads/master
@ -18,8 +18,6 @@ class DockPluginManager : public QObject
|
||||
public:
|
||||
explicit DockPluginManager(QObject *parent = 0);
|
||||
|
||||
void initAll();
|
||||
|
||||
signals:
|
||||
void itemMove(AbstractDockItem *baseItem, AbstractDockItem *targetItem);
|
||||
void itemInsert(AbstractDockItem *baseItem, AbstractDockItem *targetItem);
|
||||
@ -27,6 +25,7 @@ signals:
|
||||
void itemRemoved(AbstractDockItem * item);
|
||||
|
||||
public slots:
|
||||
void initAll();
|
||||
void onPluginsSetting(int y);
|
||||
void onDockModeChanged(Dock::DockMode newMode,
|
||||
Dock::DockMode oldMode);
|
||||
|
@ -1,4 +1,5 @@
|
||||
#include <QHBoxLayout>
|
||||
#include <QTimer>
|
||||
|
||||
#include "panel.h"
|
||||
#include "controller/dockmodedata.h"
|
||||
@ -445,8 +446,9 @@ void Panel::showPanelMenu()
|
||||
|
||||
void Panel::loadResources()
|
||||
{
|
||||
m_pluginManager->initAll();
|
||||
m_appManager->initEntries();
|
||||
|
||||
QTimer::singleShot(500, m_pluginManager, SLOT(initAll()));
|
||||
}
|
||||
|
||||
void Panel::setY(int value)
|
||||
|
Loading…
x
Reference in New Issue
Block a user