mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-02 12:20:45 +02:00
* Removed obsolete code from TreeItemDelegate.
This commit is contained in:
@@ -34,7 +34,6 @@
|
|||||||
|
|
||||||
#include "PlayableItem.h"
|
#include "PlayableItem.h"
|
||||||
#include "TreeProxyModel.h"
|
#include "TreeProxyModel.h"
|
||||||
#include "Source.h"
|
|
||||||
#include "TreeView.h"
|
#include "TreeView.h"
|
||||||
|
|
||||||
|
|
||||||
@@ -46,14 +45,6 @@ TreeItemDelegate::TreeItemDelegate( TreeView* parent, TreeProxyModel* proxy )
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
QSize
|
|
||||||
TreeItemDelegate::sizeHint( const QStyleOptionViewItem& option, const QModelIndex& index ) const
|
|
||||||
{
|
|
||||||
QSize size = QStyledItemDelegate::sizeHint( option, index );
|
|
||||||
return size;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
TreeItemDelegate::paint( QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index ) const
|
TreeItemDelegate::paint( QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index ) const
|
||||||
{
|
{
|
||||||
|
@@ -40,9 +40,6 @@ public:
|
|||||||
|
|
||||||
protected:
|
protected:
|
||||||
void paint( QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index ) const;
|
void paint( QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index ) const;
|
||||||
QSize sizeHint( const QStyleOptionViewItem& option, const QModelIndex& index ) const;
|
|
||||||
|
|
||||||
// QWidget* createEditor( QWidget* parent, const QStyleOptionViewItem& option, const QModelIndex& index ) const;
|
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
void updateIndex( const QModelIndex& idx );
|
void updateIndex( const QModelIndex& idx );
|
||||||
|
Reference in New Issue
Block a user