mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-03 00:15:21 +00:00
feat: 修改托盘展开图标对AM接口的访问
托盘图标需要通过AM接口来获取透明度,增加该接口对AM服务的访问 Log: Influence: 任务栏 Task: https://pms.uniontech.com/task-view-133075.html Change-Id: If4c981e23254776ea73b45834910899f39913ae8
This commit is contained in:
parent
7fc1ec3ae5
commit
0aba7ba0db
@ -230,9 +230,10 @@ void ExpandIconWidget::onGlobMousePress(const QPoint &mousePos, const int flag)
|
||||
* @brief 圆角窗体的绘制
|
||||
* @param parent
|
||||
*/
|
||||
|
||||
RoundWidget::RoundWidget(QWidget *parent)
|
||||
: QWidget (parent)
|
||||
, m_dockInter(new DBusDock("com.deepin.dde.daemon.Dock", "/com/deepin/dde/daemon/Dock", QDBusConnection::sessionBus(), this))
|
||||
, m_dockInter(new DockInter(dockServiceName(), dockServicePath(), QDBusConnection::sessionBus(), this))
|
||||
{
|
||||
setAttribute(Qt::WA_TranslucentBackground);
|
||||
}
|
||||
|
@ -23,15 +23,12 @@
|
||||
|
||||
#include "constants.h"
|
||||
#include "basetraywidget.h"
|
||||
|
||||
#include <com_deepin_dde_daemon_dock.h>
|
||||
#include "dbusutil.h"
|
||||
|
||||
class TrayGridView;
|
||||
class TrayModel;
|
||||
class TrayDelegate;
|
||||
|
||||
using DBusDock = com::deepin::dde::daemon::Dock;
|
||||
|
||||
namespace Dtk { namespace Gui { class DRegionMonitor; } }
|
||||
|
||||
class ExpandIconWidget : public BaseTrayWidget
|
||||
@ -91,7 +88,7 @@ private:
|
||||
QColor maskColor() const;
|
||||
|
||||
private:
|
||||
DBusDock *m_dockInter;
|
||||
DockInter *m_dockInter;
|
||||
};
|
||||
|
||||
#endif // EXPANDICONWIDGET_H
|
||||
|
Loading…
x
Reference in New Issue
Block a user