Skip to content
GitLab
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
893cafe7
Commit
893cafe7
authored
Oct 08, 2022
by
Tomaz Canabrava
Browse files
Forbid the current plugins to be on the bottom or top dock areas
parent
d17037e8
Pipeline
#244257
failed with stage
in 2 minutes and 48 seconds
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
src/plugins/QuickCommands/quickcommandsplugin.cpp
View file @
893cafe7
...
...
@@ -46,6 +46,7 @@ void QuickCommandsPlugin::createWidgetsForMainWindow(Konsole::MainWindow *mainWi
qcDockWidget
->
setWidget
(
qcWidget
);
qcDockWidget
->
setObjectName
(
QStringLiteral
(
"QuickCommandsDock"
));
qcDockWidget
->
setVisible
(
false
);
qcDockWidget
->
setAllowedAreas
(
Qt
::
DockWidgetArea
::
LeftDockWidgetArea
|
Qt
::
DockWidgetArea
::
RightDockWidgetArea
);
mainWindow
->
addDockWidget
(
Qt
::
LeftDockWidgetArea
,
qcDockWidget
);
connect
(
qcWidget
,
&
QuickCommandsWidget
::
quickAccessShortcutChanged
,
this
,
[
this
](
QKeySequence
s
)
{
...
...
src/plugins/SSHManager/sshmanagerplugin.cpp
View file @
893cafe7
...
...
@@ -63,6 +63,7 @@ void SSHManagerPlugin::createWidgetsForMainWindow(Konsole::MainWindow *mainWindo
sshDockWidget
->
setWindowTitle
(
i18n
(
"SSH Manager"
));
sshDockWidget
->
setObjectName
(
QStringLiteral
(
"SSHManagerDock"
));
sshDockWidget
->
setVisible
(
false
);
sshDockWidget
->
setAllowedAreas
(
Qt
::
DockWidgetArea
::
LeftDockWidgetArea
|
Qt
::
DockWidgetArea
::
RightDockWidgetArea
);
mainWindow
->
addDockWidget
(
Qt
::
LeftDockWidgetArea
,
sshDockWidget
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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