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
Kate
Commits
94ffafc4
Commit
94ffafc4
authored
May 07, 2021
by
Méven Car
Browse files
Project git: add icon for refresh action in the menu
parent
cb864812
Changes
1
Hide whitespace changes
Inline
Side-by-side
addons/project/gitwidget.cpp
View file @
94ffafc4
...
...
@@ -797,11 +797,13 @@ bool GitWidget::eventFilter(QObject *o, QEvent *e)
void
GitWidget
::
buildMenu
()
{
m_gitMenu
=
new
QMenu
(
this
);
m_gitMenu
->
addAction
(
i18n
(
"Refresh"
),
this
,
[
this
]
{
auto
r
=
m_gitMenu
->
addAction
(
i18n
(
"Refresh"
),
this
,
[
this
]
{
if
(
m_project
)
{
getStatus
();
}
});
r
->
setIcon
(
QIcon
::
fromTheme
(
QStringLiteral
(
"view-refresh"
)));
auto
a
=
m_gitMenu
->
addAction
(
i18n
(
"Checkout Branch"
),
this
,
[
this
]
{
BranchCheckoutDialog
bd
(
m_mainWin
->
window
(),
m_pluginView
,
m_project
->
baseDir
());
bd
.
openDialog
();
...
...
Write
Preview
Markdown
is supported
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