mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-04 09:23:03 +00:00
add plugin metadata file
Change-Id: I136bbb8e4f5c24f86e7542a5b49a9619d2d292b1
This commit is contained in:
parent
8c45a8b261
commit
b38a33ee24
@ -86,10 +86,9 @@ void DockPluginsController::loadPlugins()
|
||||
continue;
|
||||
}
|
||||
|
||||
interface->init(this);
|
||||
|
||||
// m_pluginLoaderList.append(pluginLoader);
|
||||
// m_pluginsInterfaceList.append(interface);
|
||||
// interface->init(this);
|
||||
// delay load
|
||||
QTimer::singleShot(100, [=] {interface->init(this);});
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -33,6 +33,8 @@ public:
|
||||
virtual ItemType tipsType(const QString &itemKey) {Q_UNUSED(itemKey); return Simple;}
|
||||
// item sort key
|
||||
virtual int itemSortKey(const QString &itemKey) {Q_UNUSED(itemKey); return 0;}
|
||||
// reset sort key when plugins order changed
|
||||
virtual void setSortKey(const QString &itemKey, const int order) {Q_UNUSED(itemKey); Q_UNUSED(order);}
|
||||
|
||||
// if pluginType is complex widget mode, return a widget to plugins item
|
||||
virtual QWidget *itemWidget(const QString &itemKey) {Q_UNUSED(itemKey); return nullptr;}
|
||||
|
@ -8,6 +8,7 @@ PKGCONFIG +=
|
||||
|
||||
TARGET = $$qtLibraryTarget(datetime)
|
||||
DESTDIR = $$_PRO_FILE_PWD_/../
|
||||
DISTFILES += datetime.json
|
||||
|
||||
HEADERS += \
|
||||
datetimeplugin.h \
|
||||
|
@ -8,6 +8,7 @@ PKGCONFIG +=
|
||||
|
||||
TARGET = $$qtLibraryTarget(shutdown)
|
||||
DESTDIR = $$_PRO_FILE_PWD_/../
|
||||
DISTFILES += shutdown.json
|
||||
|
||||
HEADERS += \
|
||||
shutdownplugin.h
|
||||
|
@ -8,6 +8,7 @@ PKGCONFIG += xcb xcb-image xcb-composite
|
||||
|
||||
TARGET = $$qtLibraryTarget(system-tray)
|
||||
DESTDIR = $$_PRO_FILE_PWD_/../
|
||||
DISTFILES += system-tray.json
|
||||
|
||||
HEADERS += \
|
||||
systemtrayplugin.h \
|
||||
|
Loading…
x
Reference in New Issue
Block a user