┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/global.h
diff options
context:
space:
mode:
authorKai Uwe Broulik <[email protected]>2017-03-08 16:52:15 +0100
committerKai Uwe Broulik <[email protected]>2017-03-08 16:52:15 +0100
commitb79ea9f5e4a83e4cc877235a6aa62f666bee0289 (patch)
tree5a7fbc123ab92d25923392607b8c8cf64edf196d /src/global.h
parent6dcbb8127c5a1da644f2927521ccac40bea54614 (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.h11
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