Changeset View
Changeset View
Standalone View
Standalone View
src/global.h
Show All 24 Lines | |||||
25 | 25 | | |||
26 | namespace Dolphin { | 26 | namespace Dolphin { | ||
27 | QList<QUrl> validateUris(const QStringList& uriList); | 27 | QList<QUrl> validateUris(const QStringList& uriList); | ||
28 | 28 | | |||
29 | /** | 29 | /** | ||
30 | * Returns the home url which is defined in General Settings | 30 | * Returns the home url which is defined in General Settings | ||
31 | */ | 31 | */ | ||
32 | QUrl homeUrl(); | 32 | QUrl homeUrl(); | ||
33 | | ||||
34 | enum class OpenNewWindowFlag { | ||||
35 | None = 0, | ||||
36 | Select = 1<<1 | ||||
37 | }; | ||||
38 | Q_DECLARE_FLAGS(OpenNewWindowFlags, OpenNewWindowFlag) | ||||
39 | | ||||
40 | /** | ||||
41 | * Opens a new Dolphin window | ||||
42 | */ | ||||
43 | void openNewWindow(const QList<QUrl> &urls = {}, QWidget *window = nullptr, const OpenNewWindowFlags &flags = OpenNewWindowFlag::None); | ||||
emmanuelp: 0 -> None | |||||
33 | } | 44 | } | ||
34 | 45 | | |||
35 | #endif //GLOBAL_H | 46 | #endif //GLOBAL_H |
0 -> None