thanks i did that, and now it doesn't compile. I get
/home/james/myTunes/mytunes.cpp:10: error: cannot allocate an object of abstract type ‘mediaItemDelegate’
/home/james/myTunes/mediaitemdelegate.h:25: note: because the following virtual functions are pure within ‘mediaItemDelegate’:
/home
/james
/myTunes
/mediaitemdelegate.
h:30: note
: virtual void mediaItemDelegate
::paint(QPainter*,
const QStyleOptionViewItem
&,
const QModelIndex
&) const /home
/james
/myTunes
/mediaitemdelegate.
h:31: note
: virtual QSize mediaItemDelegate
::sizeHint(const QStyleOptionViewItem
&,
const QModelIndex
&) const
/home/james/myTunes/mytunes.cpp:10: error: cannot allocate an object of abstract type ‘mediaItemDelegate’
/home/james/myTunes/mediaitemdelegate.h:25: note: because the following virtual functions are pure within ‘mediaItemDelegate’:
/home/james/myTunes/mediaitemdelegate.h:30: note: virtual void mediaItemDelegate::paint(QPainter*, const QStyleOptionViewItem&, const QModelIndex&) const
/home/james/myTunes/mediaitemdelegate.h:31: note: virtual QSize mediaItemDelegate::sizeHint(const QStyleOptionViewItem&, const QModelIndex&) const
To copy to clipboard, switch view to plain text mode
i've declared the delegate class in the header, and included the delegate's source, and i've created the object.
is it something immensely simple that i'm missing here??
Bookmarks