diff options
| author | Kai Uwe Broulik <[email protected]> | 2017-03-08 16:52:15 +0100 |
|---|---|---|
| committer | Kai Uwe Broulik <[email protected]> | 2017-03-08 16:52:15 +0100 |
| commit | b79ea9f5e4a83e4cc877235a6aa62f666bee0289 (patch) | |
| tree | 5a7fbc123ab92d25923392607b8c8cf64edf196d /src/global.h | |
| parent | 6dcbb8127c5a1da644f2927521ccac40bea54614 (diff) | |
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
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 |
