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