add plugin metadata file

Change-Id: I136bbb8e4f5c24f86e7542a5b49a9619d2d292b1
This commit is contained in:
石博文 2016-06-30 20:05:51 +08:00 committed by Hualet Wang
parent 8c45a8b261
commit b38a33ee24
5 changed files with 8 additions and 4 deletions

View File

@ -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);});
}
}

View File

@ -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;}

View File

@ -8,6 +8,7 @@ PKGCONFIG +=
TARGET = $$qtLibraryTarget(datetime)
DESTDIR = $$_PRO_FILE_PWD_/../
DISTFILES += datetime.json
HEADERS += \
datetimeplugin.h \

View File

@ -8,6 +8,7 @@ PKGCONFIG +=
TARGET = $$qtLibraryTarget(shutdown)
DESTDIR = $$_PRO_FILE_PWD_/../
DISTFILES += shutdown.json
HEADERS += \
shutdownplugin.h

View File

@ -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 \