ResourceBrowser: stop preview when drag operation starts
Make sure preview is stopped as soon as a drag operation starts. This is done by overloading QAbstractItemView::startDrag() and emit a signal from there which is connected to an according slot in ResourceBrowser. Signed-off-by: Tobias Doerffel <tobias.doerffel@gmail.com>
This commit is contained in:
1 parent
65b044c5c1
commit
75a45cca5f
4 files changed
+34
-2
No files matched your search
@@ -72,4 +72,13 @@ void ResourceTreeView::updateFilter( void )
|
||||
|
||||
|
||||
|
||||
void ResourceTreeView::startDrag( Qt::DropActions supportedActions )
|
||||
{
|
||||
emit dragStarted();
|
||||
|
||||
QTreeView::startDrag( supportedActions );
|
||||
}
|
||||
|
||||
|
||||
|
||||
#include "moc_ResourceTreeView.cxx"
|
||||
Reference in new issue
Block a user