mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-23 14:48:15 +00:00
- 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` - ...
22 lines
595 B
C++
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_
|