Summary: | Dotted rectangle remains visible after setting wallpaper via drag & drop | ||
---|---|---|---|
Product: | kdesktop | Reporter: | dpavlotzky |
Component: | general | Assignee: | David Faure <faure> |
Status: | CLOSED FIXED | ||
Severity: | normal | CC: | finex |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Gentoo Packages | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
dpavlotzky
2002-07-26 14:36:18 UTC
Subject: kdebase/kdesktop CVS commit by waba: CCMAIL: 45796-done@bugs.kde.org Fix dropping of images on desktop. M +21 -8 kdiconview.cc 1.71 --- kdebase/kdesktop/kdiconview.cc #1.70:1.71 @@ -985,16 +985,29 @@ void KDIconView::contentsDropEvent( QDro bool isColorDrag = KColorDrag::canDecode(e); bool isImageDrag = QImageDrag::canDecode(e); + bool isUrlDrag = QUriDrag::canDecode(e); bool isImmutable = KGlobal::config()->isImmutable(); - if ( isColorDrag ) { - if ( isImmutable ) // just ignore event in kiosk-mode + if ( (isColorDrag || isImageDrag) && !isUrlDrag ) { + // Hack to clear the drag shape + bool bMovable = itemsMovable(); + bool bSignals = signalsBlocked(); + setItemsMovable(false); + blockSignals(true); + KIconView::contentsDropEvent( e ); + blockSignals(bSignals); + setItemsMovable(bMovable); + // End hack + + if ( !isImmutable ) // just ignore event in kiosk-mode + { + if ( isColorDrag) emit colorDropEvent( e ); - } - else if ( isImageDrag ) { - if ( isImmutable ) // just ignore event in kiosk-mode + else if (isImageDrag) emit imageDropEvent( e ); - } else + } + } else { KonqIconViewWidget::contentsDropEvent( e ); + } } Bug closed. Kdesktop is no more mantained. |