1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-22 16:59:58 +01:00

more build fixes

This commit is contained in:
Leo Franchi 2011-05-03 13:49:55 -04:00
parent 93212251b6
commit 48246e9ec1
3 changed files with 2 additions and 7 deletions

View File

@ -132,14 +132,11 @@ ResolverConfigDelegate::sizeHint( const QStyleOptionViewItem& option, const QMod
bool
ResolverConfigDelegate::editorEvent(QEvent* event, QAbstractItemModel* model, const QStyleOptionViewItem& option, const QModelIndex& index)
{
Q_UNUSED(style);
// qDebug() << "EDITOR EVENT!" << ( event->type() == QEvent::MouseButtonRelease );
QStyleOptionViewItemV4 viewOpt( option );
initStyleOption( &viewOpt, index );
const QWidget* w = viewOpt.widget;
QStyle* style = w ? w->style() : QApplication::style();
int top = viewOpt.rect.top();
if( event->type() == QEvent::MouseButtonRelease || event->type() == QEvent::MouseButtonDblClick ) {

View File

@ -182,4 +182,4 @@ CategoryItem::activate()
if( m_category == SourcesModel::StationsCategory ) {
// TODO activate stations page
}
}
}

View File

@ -193,11 +193,9 @@ SourcesModel::flags( const QModelIndex& index ) const
void
SourcesModel::appendItem( const Tomahawk::source_ptr& source )
{
Q_UNUSED(item);
beginInsertRows( QModelIndex(), rowCount(), rowCount() );
// append to end
CollectionItem* item = new CollectionItem( this, m_rootItem, source );
new CollectionItem( this, m_rootItem, source );
endInsertRows();
}