17 #ifndef HORIZONTALJOURNAL_H
18 #define HORIZONTALJOURNAL_H
20 #include "abstractdashview.h"
33 Q_PROPERTY(qreal rowHeight READ rowHeight WRITE setRowHeight NOTIFY rowHeightChanged)
35 friend class HorizontalJournalTest;
40 qreal rowHeight()
const;
41 void setRowHeight(qreal rowHeight);
44 void rowHeightChanged();
47 void findBottomModelIndexToAdd(
int *modelIndex, qreal *yPos)
override;
48 void findTopModelIndexToAdd(
int *modelIndex, qreal *yPos)
override;
49 bool removeNonVisibleItems(qreal bufferFromY, qreal bufferToY)
override;
50 void addItemToView(
int modelIndex, QQuickItem *item)
override;
51 void cleanupExistingItems()
override;
52 void calculateImplicitHeight()
override;
53 void doRelayout()
override;
54 void updateItemCulling(qreal visibleFromY, qreal visibleToY)
override;
55 void processModelRemoves(
const QVector<QQmlChangeSet::Change> &removes)
override;
57 int m_firstVisibleIndex;
58 QList<QQuickItem*> m_visibleItems;
59 QMap<int, double> m_lastInRowIndexPosition;