Changeset View
Changeset View
Standalone View
Standalone View
src/panels/places/placesitemmodel.h
Show First 20 Lines • Show All 46 Lines • ▼ Show 20 Line(s) | |||||
47 | public: | 47 | public: | ||
48 | explicit PlacesItemModel(QObject* parent = nullptr); | 48 | explicit PlacesItemModel(QObject* parent = nullptr); | ||
49 | ~PlacesItemModel() override; | 49 | ~PlacesItemModel() override; | ||
50 | 50 | | |||
51 | /** | 51 | /** | ||
52 | * @brief Create a new place entry in the bookmark file | 52 | * @brief Create a new place entry in the bookmark file | ||
53 | * and add it to the model | 53 | * and add it to the model | ||
54 | */ | 54 | */ | ||
55 | void createPlacesItem(const QString& text, | 55 | void createPlacesItem(const QString& text, const QUrl& url, const QString& iconName = {}, const QString& appName = {}); | ||
56 | const QUrl& url, | 56 | void createPlacesItem(const QString& text, const QUrl& url, const QString& iconName, const QString& appName, int after); | ||
57 | const QString& iconName = QString(), | | |||
58 | int after = -1); | | |||
59 | 57 | | |||
60 | PlacesItem* placesItem(int index) const; | 58 | PlacesItem* placesItem(int index) const; | ||
61 | 59 | | |||
62 | /** | 60 | /** | ||
63 | * @brief Mark an item as hidden | 61 | * @brief Mark an item as hidden | ||
64 | * @param index of the item to be hidden | 62 | * @param index of the item to be hidden | ||
65 | */ | 63 | */ | ||
66 | void hideItem(int index); | 64 | void hideItem(int index); | ||
▲ Show 20 Lines • Show All 164 Lines • Show Last 20 Lines |