Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/plugin-dock/operation/dccdockexport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ DccDockExport::DccDockExport(QObject *parent)
initDisplayModeConnection();

connect(m_dockDbusProxy, &DockDBusProxy::pluginVisibleChanged, m_pluginModel, &DockPluginModel::setPluginVisible);
connect(m_dockDbusProxy, &DockDBusProxy::pluginsChanged, this, &DccDockExport::loadPluginData);
// if it has no blur effect, dcc do not need to show multitask-view plugin
connect(DWindowManagerHelper::instance(), &DWindowManagerHelper::hasBlurWindowChanged, this, &DccDockExport::initData);
}
Expand Down
5 changes: 3 additions & 2 deletions src/plugin-dock/operation/dockdbusproxy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,9 @@ DockDBusProxy::DockDBusProxy(QObject *parent)
QDBusConnection::sessionBus().connect(DaemonDockService, DaemonDockPath, DaemonDockInterface, "showRecentChanged", this, SIGNAL(showRecentChanged(bool)));
QDBusConnection::sessionBus().connect(DaemonDockService, DaemonDockPath, DaemonDockInterface, "LockedChanged", this, SIGNAL(LockedChanged(bool)));

QDBusConnection::sessionBus().connect(DockService, DockPath, DockInterface, "showInPrimaryChanged", this, SLOT(ShowInPrimaryChanged(bool)));
QDBusConnection::sessionBus().connect(DockService, DockPath, DockInterface, "pluginVisibleChanged", this, SLOT(pluginVisibleChanged(const QString &, bool)));
QDBusConnection::sessionBus().connect(DockService, DockPath, DockInterface, "showInPrimaryChanged", this, SIGNAL(ShowInPrimaryChanged(bool)));
QDBusConnection::sessionBus().connect(DockService, DockPath, DockInterface, "pluginVisibleChanged", this, SIGNAL(pluginVisibleChanged(const QString &, bool)));
QDBusConnection::sessionBus().connect(DockService, DockPath, DockInterface, "pluginsChanged", this, SIGNAL(pluginsChanged()));

registDockItemType();
}
Expand Down
1 change: 1 addition & 0 deletions src/plugin-dock/operation/dockdbusproxy.h
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ public Q_SLOTS:
// real singals
void pluginVisibleChanged(const QString &pluginName, bool visible) const;
void showRecentChanged(bool) const;
void pluginsChanged() const;

private:
QDBusInterface *m_daemonDockInter;
Expand Down