mirror of https://github.com/Qortal/Brooklyn
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
707 B
33 lines
707 B
/* |
|
SPDX-FileCopyrightText: 2014 Marco Martin <[email protected]> |
|
|
|
SPDX-License-Identifier: LGPL-2.1-or-later |
|
*/ |
|
|
|
#pragma once |
|
|
|
#include <KFilePlacesModel> |
|
#include <QIdentityProxyModel> |
|
|
|
class PlacesProxyModel : public QIdentityProxyModel |
|
{ |
|
Q_OBJECT |
|
|
|
public: |
|
enum Roles { |
|
PlaceIndexRole = KFilePlacesModel::CapacityBarRecommendedRole + 100, |
|
IsDeviceRole, |
|
PathRole, |
|
SizeRole, |
|
UsedRole, |
|
AvailableRole, |
|
}; |
|
|
|
PlacesProxyModel(QObject *parent, KFilePlacesModel *model); |
|
|
|
QHash<int, QByteArray> roleNames() const override; |
|
QVariant data(const QModelIndex &index, int role) const override; |
|
|
|
private: |
|
KFilePlacesModel *m_placesModel; |
|
};
|
|
|