aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs/utils/utilsicons.cpp
diff options
context:
space:
mode:
authorMitch Curtis <mitch.curtis@qt.io>2019-02-22 15:46:19 +0100
committerMitch Curtis <mitch.curtis@qt.io>2019-04-03 09:17:55 +0000
commitfe21a7a77ea893ba78b1c18a79105d48177aa603 (patch)
treec27a6e8d74ee3c3e7e1b58bb4fe393c46e467729 /src/libs/utils/utilsicons.cpp
parent19f2da8048d0ad5e52ee052908499973793525d1 (diff)
Allow pinning files to ensure that they are always open
This patch allows pinning files within a session. Pinning a file puts it at the top of the Open Documents list, and prevents Close All from closing it until it is unpinned. This is useful for files that should always be open for a given session. [ChangeLog] Files can now be pinned via the context menu. Pinning a file keeps it at the top of the Open Documents list, and prevents Close All and similar actions from closing it until it is unpinned. This provides a way to quickly close any open files without closing important ones. Change-Id: If47a599fb272db4c78a71eabe6fb29215a9a8a11 Fixes: QTCREATORBUG-21899 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Diffstat (limited to 'src/libs/utils/utilsicons.cpp')
-rw-r--r--src/libs/utils/utilsicons.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libs/utils/utilsicons.cpp b/src/libs/utils/utilsicons.cpp
index 07c4519dda6..43ceccd9267 100644
--- a/src/libs/utils/utilsicons.cpp
+++ b/src/libs/utils/utilsicons.cpp
@@ -43,6 +43,8 @@ const Icon LOCKED({
{QLatin1String(":/utils/images/locked.png"), Theme::PanelTextColorDark}}, Icon::Tint);
const Icon UNLOCKED_TOOLBAR({
{QLatin1String(":/utils/images/unlocked.png"), Theme::IconsBaseColor}});
+const Icon PINNED({
+ {QLatin1String(":/utils/images/pinned.png"), Theme::PanelTextColorDark}}, Icon::Tint);
const Icon NEXT({
{QLatin1String(":/utils/images/next.png"), Theme::IconsWarningColor}}, Icon::MenuTintedStyle);
const Icon NEXT_TOOLBAR({