Minor comment and coding style fixes

Minor comment and coding style fixes in ResourceModel and ResourceBrowser.
This commit is contained in:
Tobias Doerffel
2009-10-27 00:33:02 +01:00
parent a6d86bbf66
commit 91cc2d27aa
2 changed files with 5 additions and 2 deletions

View File

@@ -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() );

View File

@@ -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();