Changeset View
Changeset View
Standalone View
Standalone View
src/global.h
Show All 35 Lines | 34 | enum class OpenNewWindowFlag { | |||
---|---|---|---|---|---|
36 | Select = 1<<1 | 36 | Select = 1<<1 | ||
37 | }; | 37 | }; | ||
38 | Q_DECLARE_FLAGS(OpenNewWindowFlags, OpenNewWindowFlag) | 38 | Q_DECLARE_FLAGS(OpenNewWindowFlags, OpenNewWindowFlag) | ||
39 | 39 | | |||
40 | /** | 40 | /** | ||
41 | * Opens a new Dolphin window | 41 | * Opens a new Dolphin window | ||
42 | */ | 42 | */ | ||
43 | void openNewWindow(const QList<QUrl> &urls = {}, QWidget *window = nullptr, const OpenNewWindowFlags &flags = OpenNewWindowFlag::None); | 43 | void openNewWindow(const QList<QUrl> &urls = {}, QWidget *window = nullptr, const OpenNewWindowFlags &flags = OpenNewWindowFlag::None); | ||
44 | | ||||
45 | /** | ||||
46 | * TODO: Move this somewhere global to all KDE apps, not just Dolphin | ||||
47 | */ | ||||
48 | const int VERTICAL_SPACER_HEIGHT = 18; | ||||
44 | } | 49 | } | ||
45 | 50 | | |||
46 | #endif //GLOBAL_H | 51 | #endif //GLOBAL_H |