From b79ea9f5e4a83e4cc877235a6aa62f666bee0289 Mon Sep 17 00:00:00 2001 From: Kai Uwe Broulik Date: Wed, 8 Mar 2017 16:52:15 +0100 Subject: Pass application name and icon to KRun Otherwise this results in the generic executable icon as bouncy cursor. Differential Revision: https://phabricator.kde.org/D4823 --- src/global.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/global.h') 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 &urls = {}, QWidget *window = nullptr, const OpenNewWindowFlags &flags = OpenNewWindowFlag::None); } #endif //GLOBAL_H -- cgit v1.3