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
#include <QSortFilterProxyModel>
2019-04-30 18:03:24 +01:00
#include "kdeconnectinterfaces_export.h"
class DevicesModel;
class KDECONNECTINTERFACES_EXPORT DevicesSortProxyModel : public QSortFilterProxyModel
{
Q_OBJECT
public:
2019-05-05 14:45:50 +01:00
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