Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Utilities
Konsole
Commits
f4f35e9f
Commit
f4f35e9f
authored
Sep 16, 2020
by
Tomaz Canabrava
Browse files
Add the possibility to change the Profile from the Toolbar
parent
cb04dd4d
Changes
2
Hide whitespace changes
Inline
Side-by-side
desktop/sessionui.rc
View file @
f4f35e9f
...
...
@@ -63,6 +63,6 @@
<Action
name=
"edit_copy"
/>
<Action
name=
"edit_paste"
/>
<Action
name=
"edit_find"
/>
<Action
name=
"
file_print"
/>
<Action
name=
"
switch-profile"
/>
</ToolBar>
</kpartgui>
src/session/SessionController.cpp
View file @
f4f35e9f
...
...
@@ -706,6 +706,7 @@ void SessionController::setupCommonActions()
_switchProfileMenu
=
new
KActionMenu
(
i18n
(
"Switch Profile"
),
this
);
collection
->
addAction
(
QStringLiteral
(
"switch-profile"
),
_switchProfileMenu
);
connect
(
_switchProfileMenu
->
menu
(),
&
QMenu
::
aboutToShow
,
this
,
&
Konsole
::
SessionController
::
prepareSwitchProfileMenu
);
_switchProfileMenu
->
setDelayed
(
false
);
// History
_findAction
=
KStandardAction
::
find
(
this
,
&
SessionController
::
searchBarEvent
,
collection
);
...
...
@@ -873,6 +874,7 @@ void SessionController::setupExtraActions()
void
SessionController
::
switchProfile
(
const
Profile
::
Ptr
&
profile
)
{
SessionManager
::
instance
()
->
setSessionProfile
(
_sessionDisplayConnection
->
session
(),
profile
);
_switchProfileMenu
->
setIcon
(
QIcon
::
fromTheme
(
profile
->
icon
()));
updateFilterList
(
profile
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment