Changeset View
Changeset View
Standalone View
Standalone View
cuttlefish/src/iconmodel.h
Show First 20 Lines • Show All 55 Lines • ▼ Show 20 Line(s) | 49 | enum Roles { | |||
---|---|---|---|---|---|
56 | Sizes, | 56 | Sizes, | ||
57 | Type, | 57 | Type, | ||
58 | Theme | 58 | Theme | ||
59 | }; | 59 | }; | ||
60 | 60 | | |||
61 | explicit IconModel(QObject *parent = nullptr); | 61 | explicit IconModel(QObject *parent = nullptr); | ||
62 | 62 | | |||
63 | Q_INVOKABLE QVariantList inOtherThemes(const QString& iconName, int size); | 63 | Q_INVOKABLE QVariantList inOtherThemes(const QString& iconName, int size); | ||
64 | Q_INVOKABLE void openContainingFolder(const QString &path); | ||||
64 | 65 | | |||
65 | QHash<int, QByteArray> roleNames() const override; | 66 | QHash<int, QByteArray> roleNames() const override; | ||
66 | int rowCount(const QModelIndex &parent) const override; | 67 | int rowCount(const QModelIndex &parent) const override; | ||
67 | QVariant data(const QModelIndex &index, int role) const override; | 68 | QVariant data(const QModelIndex &index, int role) const override; | ||
68 | 69 | | |||
69 | QString key(int role) const; | 70 | QString key(int role) const; | ||
70 | 71 | | |||
71 | bool matchIcons(const QFileInfo &info); | 72 | bool matchIcons(const QFileInfo &info); | ||
▲ Show 20 Lines • Show All 60 Lines • Show Last 20 Lines |