@@ -162,10 +162,6 @@ class BaseTrackTableModel : public QAbstractTableModel, public TrackModel {
162162 virtual Qt::ItemFlags readWriteFlags (
163163 const QModelIndex& index) const ;
164164
165- // / At least one of the following functions must be overridden,
166- // / because each default implementation will call the other
167- // / function!!
168- // /
169165 // / Return the raw data value at the given index.
170166 // /
171167 // / Expected types by ColumnCache field (pass-through = not validated):
@@ -211,10 +207,7 @@ class BaseTrackTableModel : public QAbstractTableModel, public TrackModel {
211207 // / COLUMN_LIBRARYTABLE_LAST_PLAYED_AT: QDateTime
212208 // / COLUMN_PLAYLISTTABLE_DATETIMEADDED: QDateTime
213209 virtual QVariant rawValue (
214- const QModelIndex& index) const ;
215- virtual QVariant rawSiblingValue (
216- const QModelIndex& index,
217- ColumnCache::Column siblingField) const ;
210+ const QModelIndex& index) const = 0;
218211
219212 QVariant roleValue (
220213 const QModelIndex& index,
@@ -250,6 +243,10 @@ class BaseTrackTableModel : public QAbstractTableModel, public TrackModel {
250243 const QPixmap& pixmap);
251244
252245 private:
246+ QVariant rawSiblingValue (
247+ const QModelIndex& index,
248+ ColumnCache::Column siblingField) const ;
249+
253250 // Track models may reference tracks by an external id
254251 // TODO: TrackId should only be used for tracks from
255252 // the internal database.
0 commit comments