mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-04 09:23:03 +00:00
fix: unable drag desktop into dock
RequestDock dbus call, only local path passed into log: fix unable drag desktop info dock and make it docked
This commit is contained in:
parent
82caae4c83
commit
532350f48d
@ -27,6 +27,7 @@
|
|||||||
#include "quicksettingcontroller.h"
|
#include "quicksettingcontroller.h"
|
||||||
|
|
||||||
#include <QDrag>
|
#include <QDrag>
|
||||||
|
#include <QUrl>
|
||||||
#include <QTimer>
|
#include <QTimer>
|
||||||
#include <QStandardPaths>
|
#include <QStandardPaths>
|
||||||
#include <QString>
|
#include <QString>
|
||||||
@ -483,7 +484,9 @@ void MainPanelControl::dropEvent(QDropEvent *e)
|
|||||||
{
|
{
|
||||||
if (m_placeholderItem) {
|
if (m_placeholderItem) {
|
||||||
|
|
||||||
emit itemAdded(e->mimeData()->data(m_draggingMimeKey), m_appAreaSonLayout->indexOf(m_placeholderItem));
|
QUrl desktopPath = QUrl::fromUserInput(e->mimeData()->data(m_draggingMimeKey));
|
||||||
|
|
||||||
|
emit itemAdded(desktopPath.toLocalFile(), m_appAreaSonLayout->indexOf(m_placeholderItem));
|
||||||
|
|
||||||
removeAppAreaItem(m_placeholderItem);
|
removeAppAreaItem(m_placeholderItem);
|
||||||
m_placeholderItem->deleteLater();
|
m_placeholderItem->deleteLater();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user