mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-09 15:47:38 +02:00
Pass GenericPageItems' dragging to its ViewPage
This commit is contained in:
@@ -35,3 +35,20 @@ ViewPage::setFilter( const QString& filter )
|
||||
m_filter = filter;
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
bool
|
||||
ViewPage::willAcceptDrag( const QMimeData* data ) const
|
||||
{
|
||||
Q_UNUSED( data );
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
bool
|
||||
ViewPage::dropMimeData( const QMimeData* data, Qt::DropAction action )
|
||||
{
|
||||
Q_UNUSED( data );
|
||||
Q_UNUSED( action );
|
||||
return false;
|
||||
}
|
||||
|
@@ -66,6 +66,9 @@ public:
|
||||
virtual QString filter() const { return m_filter; }
|
||||
virtual bool setFilter( const QString& filter );
|
||||
|
||||
virtual bool willAcceptDrag( const QMimeData* data ) const;
|
||||
virtual bool dropMimeData( const QMimeData*, Qt::DropAction );
|
||||
|
||||
virtual bool jumpToCurrentTrack() = 0;
|
||||
|
||||
virtual bool isTemporaryPage() const { return false; }
|
||||
|
@@ -68,10 +68,16 @@ GenericPageItem::icon() const
|
||||
|
||||
|
||||
bool
|
||||
GenericPageItem::willAcceptDrag(const QMimeData* data) const
|
||||
GenericPageItem::willAcceptDrag( const QMimeData* data ) const
|
||||
{
|
||||
Q_UNUSED( data );
|
||||
return false;
|
||||
return m_get()->willAcceptDrag(data);
|
||||
}
|
||||
|
||||
|
||||
bool
|
||||
GenericPageItem::dropMimeData( const QMimeData* data, Qt::DropAction action )
|
||||
{
|
||||
return m_get()->dropMimeData(data, action);
|
||||
}
|
||||
|
||||
|
||||
|
@@ -36,6 +36,7 @@ public:
|
||||
virtual QString text() const;
|
||||
virtual void activate();
|
||||
virtual bool willAcceptDrag( const QMimeData* data ) const;
|
||||
virtual bool dropMimeData( const QMimeData*, Qt::DropAction );
|
||||
virtual QIcon icon() const;
|
||||
virtual int peerSortValue() const; // How to sort relative to peers in the tree.
|
||||
virtual bool isBeingPlayed() const;
|
||||
|
Reference in New Issue
Block a user