Minor comment and coding style fixes
Minor comment and coding style fixes in ResourceModel and ResourceBrowser.
This commit is contained in:
@@ -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<ResourceItem::Relation *>( _idx.internalPointer() );
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user