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
8d24766c
Commit
8d24766c
authored
Oct 03, 2022
by
Tomaz Canabrava
Committed by
Tomaz Canabrava
Oct 05, 2022
Browse files
Auto expand plugin folders when first opening
parent
fa389c37
Pipeline
#242219
passed with stage
in 5 minutes and 47 seconds
Changes
4
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
src/plugins/QuickCommands/quickcommandswidget.cpp
View file @
8d24766c
...
...
@@ -15,6 +15,9 @@
#include
<QStandardPaths>
#include
<QTemporaryFile>
#include
<QTimer>
#include
<QShowEvent>
#include
<kmessagebox.h>
#include
<kstandardguiitem.h>
...
...
@@ -23,6 +26,7 @@ struct QuickCommandsWidget::Private {
FilterModel
*
filterModel
=
nullptr
;
Konsole
::
SessionController
*
controller
=
nullptr
;
bool
hasShellCheck
=
false
;
bool
isSetup
=
false
;
QTimer
shellCheckTimer
;
};
...
...
@@ -307,3 +311,11 @@ void QuickCommandsWidget::runShellCheck()
ui
->
tabWidget
->
setTabText
(
1
,
i18n
(
"Warnings (*)"
));
}
}
void
QuickCommandsWidget
::
showEvent
(
QShowEvent
*
)
{
if
(
!
priv
->
isSetup
)
{
ui
->
commandsTreeView
->
expandAll
();
priv
->
isSetup
=
true
;
}
}
src/plugins/QuickCommands/quickcommandswidget.h
View file @
8d24766c
...
...
@@ -54,6 +54,9 @@ public:
void
setModel
(
QuickCommandsModel
*
model
);
void
setCurrentController
(
Konsole
::
SessionController
*
controller
);
protected:
void
showEvent
(
QShowEvent
*
)
override
;
private:
QuickCommandData
data
()
const
;
void
prepareEdit
();
...
...
src/plugins/SSHManager/sshmanagerpluginwidget.cpp
View file @
8d24766c
...
...
@@ -38,6 +38,7 @@ struct SSHManagerTreeWidget::Private {
SSHManagerModel
*
model
=
nullptr
;
SSHManagerFilterModel
*
filterModel
=
nullptr
;
Konsole
::
SessionController
*
controller
=
nullptr
;
bool
isSetup
=
false
;
};
SSHManagerTreeWidget
::
SSHManagerTreeWidget
(
QWidget
*
parent
)
...
...
@@ -502,3 +503,11 @@ void SSHManagerTreeWidget::connectRequested(const QModelIndex &idx)
d
->
controller
->
session
()
->
views
().
at
(
0
)
->
setFocus
();
}
}
void
SSHManagerTreeWidget
::
showEvent
(
QShowEvent
*
)
{
if
(
!
d
->
isSetup
)
{
ui
->
treeView
->
expandAll
();
d
->
isSetup
=
true
;
}
}
src/plugins/SSHManager/sshmanagerpluginwidget.h
View file @
8d24766c
...
...
@@ -64,6 +64,9 @@ public:
void
connectRequested
(
const
QModelIndex
&
idx
);
void
handleImportedData
(
bool
isImported
);
protected:
void
showEvent
(
QShowEvent
*
)
override
;
private:
void
updateProfileList
();
...
...
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