diff options
Diffstat (limited to 'src/global.h')
| -rw-r--r-- | src/global.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/global.h b/src/global.h index 0ac2e9acb..3b6af43e9 100644 --- a/src/global.h +++ b/src/global.h @@ -30,6 +30,17 @@ namespace Dolphin { * Returns the home url which is defined in General Settings */ QUrl homeUrl(); + + enum class OpenNewWindowFlag { + None = 0, + Select = 1<<1 + }; + Q_DECLARE_FLAGS(OpenNewWindowFlags, OpenNewWindowFlag) + + /** + * Opens a new Dolphin window + */ + void openNewWindow(const QList<QUrl> &urls = {}, QWidget *window = nullptr, const OpenNewWindowFlags &flags = OpenNewWindowFlag::None); } #endif //GLOBAL_H |
