mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-07-31 11:20:22 +02:00
more build fixes
This commit is contained in:
@@ -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 ) {
|
||||
|
@@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user