mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-04 09:23:03 +00:00
always place system tray into left side
Change-Id: I0620b7140775b67a11761c38eff5817f2668adad
This commit is contained in:
parent
adcc57e7cb
commit
c253da3614
Notes:
Deepin Code Review
2016-09-06 09:40:41 +00:00
Verified+1: Anonymous Coward #1000004 Verified+1: <zhaofangfang@linuxdeepin.com> Code-Review+2: 石博文 <sbw@sbw.so> Submitted-by: 石博文 <sbw@sbw.so> Submitted-at: Tue, 06 Sep 2016 09:40:41 +0000 Reviewed-on: https://cr.deepin.io/15886 Project: dde/dde-dock Branch: refs/heads/master
@ -23,7 +23,7 @@ public:
|
||||
virtual const QString itemCommand(const QString &itemKey) {Q_UNUSED(itemKey); return QString();}
|
||||
|
||||
// item sort key
|
||||
virtual int itemSortKey(const QString &itemKey) {Q_UNUSED(itemKey); return 0;}
|
||||
virtual int itemSortKey(const QString &itemKey) {Q_UNUSED(itemKey); return 1;}
|
||||
// reset sort key when plugins order changed
|
||||
virtual void setSortKey(const QString &itemKey, const int order) {Q_UNUSED(itemKey); Q_UNUSED(order);}
|
||||
|
||||
|
@ -84,10 +84,16 @@ bool SystemTrayPlugin::itemIsInContainer(const QString &itemKey)
|
||||
return m_containerSettings->value(widKey, false).toBool();
|
||||
}
|
||||
|
||||
int SystemTrayPlugin::itemSortKey(const QString &itemKey)
|
||||
{
|
||||
Q_UNUSED(itemKey);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
void SystemTrayPlugin::setItemIsInContainer(const QString &itemKey, const bool container)
|
||||
{
|
||||
qDebug() << getWindowClass(itemKey.toInt());
|
||||
|
||||
// qDebug() << getWindowClass(itemKey.toInt());
|
||||
m_containerSettings->setValue(getWindowClass(itemKey.toInt()), container);
|
||||
}
|
||||
|
||||
|
@ -27,6 +27,7 @@ public:
|
||||
|
||||
bool itemAllowContainer(const QString &itemKey);
|
||||
bool itemIsInContainer(const QString &itemKey);
|
||||
int itemSortKey(const QString &itemKey);
|
||||
void setItemIsInContainer(const QString &itemKey, const bool container);
|
||||
|
||||
private:
|
||||
|
Loading…
x
Reference in New Issue
Block a user