Changeset View
Changeset View
Standalone View
Standalone View
src/browsers/filebrowser/FileView.cpp
Show All 17 Lines | |||||
18 | #define DEBUG_PREFIX "FileView" | 18 | #define DEBUG_PREFIX "FileView" | ||
19 | 19 | | |||
20 | #include "FileView.h" | 20 | #include "FileView.h" | ||
21 | 21 | | |||
22 | #include "EngineController.h" | 22 | #include "EngineController.h" | ||
23 | #include "PaletteHandler.h" | 23 | #include "PaletteHandler.h" | ||
24 | #include "PopupDropperFactory.h" | 24 | #include "PopupDropperFactory.h" | ||
25 | #include "SvgHandler.h" | 25 | #include "SvgHandler.h" | ||
26 | // #include "context/ContextView.h" | 26 | #include "context/ContextView.h" | ||
27 | #include "core/playlists/PlaylistFormat.h" | 27 | #include "core/playlists/PlaylistFormat.h" | ||
28 | #include "core/support/Debug.h" | 28 | #include "core/support/Debug.h" | ||
29 | #include "core-impl/collections/support/CollectionManager.h" | 29 | #include "core-impl/collections/support/CollectionManager.h" | ||
30 | #include "core-impl/collections/support/FileCollectionLocation.h" | 30 | #include "core-impl/collections/support/FileCollectionLocation.h" | ||
31 | #include "core-impl/meta/file/File.h" | 31 | #include "core-impl/meta/file/File.h" | ||
32 | #include "core-impl/playlists/types/file/PlaylistFileSupport.h" | 32 | #include "core-impl/playlists/types/file/PlaylistFileSupport.h" | ||
33 | #include "core-impl/support/TrackLoader.h" | 33 | #include "core-impl/support/TrackLoader.h" | ||
34 | #include "dialogs/TagDialog.h" | 34 | #include "dialogs/TagDialog.h" | ||
▲ Show 20 Lines • Show All 444 Lines • ▼ Show 20 Line(s) | 475 | { | |||
479 | if( m_ongoingDrag ) | 479 | if( m_ongoingDrag ) | ||
480 | { | 480 | { | ||
481 | m_dragMutex.unlock(); | 481 | m_dragMutex.unlock(); | ||
482 | return; | 482 | return; | ||
483 | } | 483 | } | ||
484 | m_ongoingDrag = true; | 484 | m_ongoingDrag = true; | ||
485 | m_dragMutex.unlock(); | 485 | m_dragMutex.unlock(); | ||
486 | 486 | | |||
487 | /* FIXME: disabled temporarily for KF5 porting | | |||
488 | if( !m_pd ) | 487 | if( !m_pd ) | ||
489 | m_pd = The::popupDropperFactory()->createPopupDropper( Context::ContextView::self() ); | 488 | m_pd = The::popupDropperFactory()->createPopupDropper( Context::ContextView::self() ); | ||
490 | 489 | | |||
491 | if( m_pd && m_pd->isHidden() ) | 490 | if( m_pd && m_pd->isHidden() ) | ||
492 | { | 491 | { | ||
493 | QModelIndexList indices = selectedIndexes(); | 492 | QModelIndexList indices = selectedIndexes(); | ||
494 | 493 | | |||
495 | QList<QAction *> actions = actionsForIndices( indices ); | 494 | QList<QAction *> actions = actionsForIndices( indices ); | ||
496 | 495 | | |||
497 | QFont font; | 496 | QFont font; | ||
498 | font.setPointSize( 16 ); | 497 | font.setPointSize( 16 ); | ||
499 | font.setBold( true ); | 498 | font.setBold( true ); | ||
500 | 499 | | |||
501 | foreach( QAction *action, actions ) | 500 | foreach( QAction *action, actions ) | ||
502 | m_pd->addItem( The::popupDropperFactory()->createItem( action ) ); | 501 | m_pd->addItem( The::popupDropperFactory()->createItem( action ) ); | ||
503 | 502 | | |||
504 | m_pd->show(); | 503 | m_pd->show(); | ||
505 | } | 504 | } | ||
506 | */ | | |||
507 | 505 | | |||
508 | QTreeView::startDrag( supportedActions ); | 506 | QTreeView::startDrag( supportedActions ); | ||
509 | 507 | | |||
510 | if( m_pd ) | 508 | if( m_pd ) | ||
511 | { | 509 | { | ||
512 | connect( m_pd, &PopupDropper::fadeHideFinished, m_pd, &PopupDropper::clear ); | 510 | connect( m_pd, &PopupDropper::fadeHideFinished, m_pd, &PopupDropper::clear ); | ||
513 | m_pd->hide(); | 511 | m_pd->hide(); | ||
514 | } | 512 | } | ||
▲ Show 20 Lines • Show All 97 Lines • Show Last 20 Lines |