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:
parent
93212251b6
commit
48246e9ec1
@ -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 ) {
|
||||
|
@ -182,4 +182,4 @@ CategoryItem::activate()
|
||||
if( m_category == SourcesModel::StationsCategory ) {
|
||||
// TODO activate stations page
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user