Changeset View
Changeset View
Standalone View
Standalone View
src/filepicker/lib/dirmodelutils.h
- This file was added.
1 | #ifndef DIRMODELUTILS_H | ||||
---|---|---|---|---|---|
2 | #define DIRMODELUTILS_H | ||||
3 | | ||||
4 | #include <QObject> | ||||
5 | | ||||
6 | class DirModelUtils : public QObject | ||||
7 | { | ||||
8 | Q_OBJECT | ||||
9 | Q_PROPERTY(QString homePath READ homePath NOTIFY homePathChanged) | ||||
10 | | ||||
11 | public: | ||||
12 | explicit DirModelUtils(QObject *parent = nullptr); | ||||
13 | | ||||
14 | public Q_SLOTS: | ||||
15 | QStringList getUrlParts(const QUrl &url) const; | ||||
16 | QUrl indexOfUrl(const QUrl &url, int index) const; | ||||
17 | QString homePath() const; | ||||
18 | | ||||
19 | Q_SIGNALS: | ||||
20 | void homePathChanged(); | ||||
21 | }; | ||||
22 | | ||||
23 | #endif // DIRMODELUTILS_H |