mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-04 09:23:03 +00:00
chore: correct typos in trashwidget.cpp
Correct typos in trashwidget.cpp
This commit is contained in:
parent
7320406161
commit
2cb2a682c6
@ -86,11 +86,11 @@ void TrashWidget::invokeMenuItem(const QString &menuId, const bool checked)
|
|||||||
void TrashWidget::dragEnterEvent(QDragEnterEvent *e)
|
void TrashWidget::dragEnterEvent(QDragEnterEvent *e)
|
||||||
{
|
{
|
||||||
if (e->mimeData()->hasFormat("RequestDock")) {
|
if (e->mimeData()->hasFormat("RequestDock")) {
|
||||||
// accept prevent the event from being propgated to the dock main panel
|
// accept prevent the event from being propagated to the dock main panel
|
||||||
// which also takes drag event;
|
// which also takes drag event;
|
||||||
|
|
||||||
if (!e->mimeData()->hasFormat("Removable")) {
|
if (!e->mimeData()->hasFormat("Removable")) {
|
||||||
// show the forbit dropping cursor.
|
// show the forbid dropping cursor.
|
||||||
e->setDropAction(Qt::IgnoreAction);
|
e->setDropAction(Qt::IgnoreAction);
|
||||||
} else {
|
} else {
|
||||||
e->setDropAction(Qt::MoveAction);
|
e->setDropAction(Qt::MoveAction);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user