diff --git a/include/ResourceModel.h b/include/ResourceModel.h index a6ed4a3ac..43d5b6f46 100644 --- a/include/ResourceModel.h +++ b/include/ResourceModel.h @@ -56,7 +56,7 @@ public: // used for drag'n'drop - return proper MIME data for indexes virtual QMimeData * mimeData( const QModelIndexList & _indexes ) const; - // return ResourceTreeItem belonging to a certain index + // return ResourceItem::Relation belonging to a certain index static inline ResourceItem::Relation * relation( const QModelIndex & _idx ) { return static_cast( _idx.internalPointer() ); diff --git a/src/gui/ResourceBrowser.cpp b/src/gui/ResourceBrowser.cpp index e98d6804d..9da44df58 100644 --- a/src/gui/ResourceBrowser.cpp +++ b/src/gui/ResourceBrowser.cpp @@ -269,6 +269,8 @@ void ResourceBrowser::startItemPreview( const QModelIndex & _idx ) } + + void ResourceBrowser::setFocusAndPreview( const QModelIndex & _idx ) { // transfor focus to the treeview. for some reason you have to @@ -291,7 +293,7 @@ void ResourceBrowser::stopItemPreview( const QModelIndex & ) void ResourceBrowser::currentChanged( const QModelIndex & current, - const QModelIndex & previous ) + const QModelIndex & previous ) { // stop previous previews @@ -303,6 +305,7 @@ void ResourceBrowser::currentChanged( const QModelIndex & current, + void ResourceBrowser::stopPreview() { m_previewer.stopPreview();