kdeconnect-kde/interfaces/devicessortproxymodel.h

25 lines
727 B
C
Raw Permalink Normal View History

2013-08-16 05:23:54 +01:00
/**
* SPDX-FileCopyrightText: 2013 Albert Vaca <albertvaka@gmail.com>
*
* SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
*/
#ifndef DEVICESSORTPROXYMODEL_H
#define DEVICESSORTPROXYMODEL_H
2019-04-30 18:03:24 +01:00
#include "kdeconnectinterfaces_export.h"
#include <QSortFilterProxyModel>
class DevicesModel;
class KDECONNECTINTERFACES_EXPORT DevicesSortProxyModel : public QSortFilterProxyModel
{
Q_OBJECT
public:
explicit DevicesSortProxyModel(DevicesModel *devicesModel = nullptr);
bool lessThan(const QModelIndex &left, const QModelIndex &right) const override;
bool filterAcceptsRow(int source_row, const QModelIndex &source_parent) const override;
};
#endif // DEVICESSORTPROXYMODEL_H