mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 06:07:37 +02:00
more build fixes
This commit is contained in:
@@ -132,14 +132,11 @@ ResolverConfigDelegate::sizeHint( const QStyleOptionViewItem& option, const QMod
|
|||||||
bool
|
bool
|
||||||
ResolverConfigDelegate::editorEvent(QEvent* event, QAbstractItemModel* model, const QStyleOptionViewItem& option, const QModelIndex& index)
|
ResolverConfigDelegate::editorEvent(QEvent* event, QAbstractItemModel* model, const QStyleOptionViewItem& option, const QModelIndex& index)
|
||||||
{
|
{
|
||||||
Q_UNUSED(style);
|
|
||||||
|
|
||||||
// qDebug() << "EDITOR EVENT!" << ( event->type() == QEvent::MouseButtonRelease );
|
// qDebug() << "EDITOR EVENT!" << ( event->type() == QEvent::MouseButtonRelease );
|
||||||
|
|
||||||
QStyleOptionViewItemV4 viewOpt( option );
|
QStyleOptionViewItemV4 viewOpt( option );
|
||||||
initStyleOption( &viewOpt, index );
|
initStyleOption( &viewOpt, index );
|
||||||
const QWidget* w = viewOpt.widget;
|
const QWidget* w = viewOpt.widget;
|
||||||
QStyle* style = w ? w->style() : QApplication::style();
|
|
||||||
int top = viewOpt.rect.top();
|
int top = viewOpt.rect.top();
|
||||||
|
|
||||||
if( event->type() == QEvent::MouseButtonRelease || event->type() == QEvent::MouseButtonDblClick ) {
|
if( event->type() == QEvent::MouseButtonRelease || event->type() == QEvent::MouseButtonDblClick ) {
|
||||||
|
@@ -193,11 +193,9 @@ SourcesModel::flags( const QModelIndex& index ) const
|
|||||||
void
|
void
|
||||||
SourcesModel::appendItem( const Tomahawk::source_ptr& source )
|
SourcesModel::appendItem( const Tomahawk::source_ptr& source )
|
||||||
{
|
{
|
||||||
Q_UNUSED(item);
|
|
||||||
|
|
||||||
beginInsertRows( QModelIndex(), rowCount(), rowCount() );
|
beginInsertRows( QModelIndex(), rowCount(), rowCount() );
|
||||||
// append to end
|
// append to end
|
||||||
CollectionItem* item = new CollectionItem( this, m_rootItem, source );
|
new CollectionItem( this, m_rootItem, source );
|
||||||
|
|
||||||
endInsertRows();
|
endInsertRows();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user