mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-02 15:45:21 +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)
|
||||
{
|
||||
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;
|
||||
|
||||
if (!e->mimeData()->hasFormat("Removable")) {
|
||||
// show the forbit dropping cursor.
|
||||
// show the forbid dropping cursor.
|
||||
e->setDropAction(Qt::IgnoreAction);
|
||||
} else {
|
||||
e->setDropAction(Qt::MoveAction);
|
||||
|
Loading…
x
Reference in New Issue
Block a user