mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-04-21 16:31:58 +02:00
* Style fixes.
This commit is contained in:
parent
df8390a9df
commit
e82fc614de
src/tomahawk/sourcetree/items
@ -1,6 +1,6 @@
|
||||
/* === This file is part of Tomahawk Player - <http://tomahawk-player.org> ===
|
||||
*
|
||||
* Copyright 2010-2011, Christian Muehlhaeuser <muesli@tomahawk-player.org>
|
||||
* Copyright 2010-2014, Christian Muehlhaeuser <muesli@tomahawk-player.org>
|
||||
* Copyright 2010-2011, Leo Franchi <lfranchi@kde.org>
|
||||
*
|
||||
* Tomahawk is free software: you can redistribute it and/or modify
|
||||
@ -74,7 +74,7 @@ GroupItem::text() const
|
||||
|
||||
|
||||
bool
|
||||
GroupItem::willAcceptDrag(const QMimeData* data) const
|
||||
GroupItem::willAcceptDrag( const QMimeData* data ) const
|
||||
{
|
||||
Q_UNUSED( data );
|
||||
return false;
|
||||
@ -96,7 +96,7 @@ GroupItem::isBeingPlayed() const
|
||||
|
||||
|
||||
void
|
||||
GroupItem::setDefaultExpanded(bool b)
|
||||
GroupItem::setDefaultExpanded( bool b )
|
||||
{
|
||||
m_defaultExpanded = b;
|
||||
}
|
||||
|
@ -102,21 +102,21 @@ SourceTreeItem::children() const
|
||||
|
||||
|
||||
void
|
||||
SourceTreeItem::appendChild(SourceTreeItem* item)
|
||||
SourceTreeItem::appendChild( SourceTreeItem* item )
|
||||
{
|
||||
m_children.append( item );
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
SourceTreeItem::insertChild(int index, SourceTreeItem* item)
|
||||
SourceTreeItem::insertChild( int index, SourceTreeItem* item )
|
||||
{
|
||||
m_children.insert( index, item );
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
SourceTreeItem::removeChild(SourceTreeItem* item)
|
||||
SourceTreeItem::removeChild( SourceTreeItem* item )
|
||||
{
|
||||
m_children.removeAll( item );
|
||||
}
|
||||
@ -151,14 +151,14 @@ SourceTreeItem::icon() const
|
||||
|
||||
|
||||
bool
|
||||
SourceTreeItem::willAcceptDrag(const QMimeData*) const
|
||||
SourceTreeItem::willAcceptDrag( const QMimeData* ) const
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
bool
|
||||
SourceTreeItem::dropMimeData(const QMimeData*, Qt::DropAction)
|
||||
SourceTreeItem::dropMimeData( const QMimeData*, Qt::DropAction )
|
||||
{
|
||||
return false;
|
||||
}
|
||||
@ -186,7 +186,7 @@ SourceTreeItem::IDValue() const
|
||||
|
||||
|
||||
SourceTreeItem::DropTypes
|
||||
SourceTreeItem::supportedDropTypes(const QMimeData* mimeData) const
|
||||
SourceTreeItem::supportedDropTypes( const QMimeData* mimeData ) const
|
||||
{
|
||||
Q_UNUSED( mimeData );
|
||||
return DropTypesNone;
|
||||
@ -194,7 +194,7 @@ SourceTreeItem::supportedDropTypes(const QMimeData* mimeData) const
|
||||
|
||||
|
||||
void
|
||||
SourceTreeItem::setDropType(SourceTreeItem::DropType type)
|
||||
SourceTreeItem::setDropType( SourceTreeItem::DropType type )
|
||||
{
|
||||
m_dropType = type;
|
||||
}
|
||||
@ -222,7 +222,7 @@ SourceTreeItem::customActions() const
|
||||
|
||||
|
||||
void
|
||||
SourceTreeItem::beginRowsAdded(int from, int to)
|
||||
SourceTreeItem::beginRowsAdded( int from, int to )
|
||||
{
|
||||
emit beginChildRowsAdded( from, to );
|
||||
}
|
||||
@ -236,7 +236,7 @@ SourceTreeItem::endRowsAdded()
|
||||
|
||||
|
||||
void
|
||||
SourceTreeItem::beginRowsRemoved(int from, int to)
|
||||
SourceTreeItem::beginRowsRemoved( int from, int to )
|
||||
{
|
||||
emit beginChildRowsRemoved( from, to );
|
||||
}
|
||||
@ -250,18 +250,19 @@ SourceTreeItem::endRowsRemoved()
|
||||
|
||||
|
||||
void
|
||||
SourceTreeItem::setRowType(SourcesModel::RowType t)
|
||||
SourceTreeItem::setRowType( SourcesModel::RowType t )
|
||||
{
|
||||
m_type = t;
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
SourceTreeItem::setParentItem(SourceTreeItem* item)
|
||||
SourceTreeItem::setParentItem( SourceTreeItem* item )
|
||||
{
|
||||
m_parent = item;
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
SourceTreeItem::removeFromList()
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user