linphone-desktop/tests/src/components/timeline/TimelineModel.hpp
Ronan Abhamon e5d9bf20f7 feat(app):
- remove useless smart-search-bar from cpp
  - create a new `SipAddressesModel` component
  - create a `UnregisteredSipAddressesModel` (it uses the previous model)
  - `TimelineModel` uses too this model
  - many fixes and refactoring
  - `mapToSipAddress` moved from `ContactsListModel` to `SipAddressesModel`
  - ...
2016-12-20 17:20:01 +01:00

22 lines
595 B
C++

#ifndef TIMELINE_MODEL_H_
#define TIMELINE_MODEL_H_
#include <QSortFilterProxyModel>
// =============================================================================
class TimelineModel : public QSortFilterProxyModel {
Q_OBJECT;
public:
TimelineModel (QObject *parent = Q_NULLPTR);
~TimelineModel () = default;
QHash<int, QByteArray> roleNames () const override;
protected:
bool filterAcceptsRow (int source_row, const QModelIndex &source_parent) const override;
bool lessThan (const QModelIndex &left, const QModelIndex &right) const override;
};
#endif // TIMELINE_MODEL_H_