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
Kate
Commits
c7d8f68e
Commit
c7d8f68e
authored
Feb 15, 2022
by
Dominik Haumann
Committed by
Christoph Cullmann
Feb 16, 2022
Browse files
Remove margins in File Browser Toolbar + Git Widget
Followup-commit to
2af20722
parent
392feb37
Pipeline
#138637
passed with stage
in 3 minutes and 24 seconds
Changes
2
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
addons/filebrowser/katefilebrowser.cpp
View file @
c7d8f68e
...
...
@@ -52,6 +52,7 @@ KateFileBrowser::KateFileBrowser(KTextEditor::MainWindow *mainWindow, QWidget *p
m_toolbar
->
setMovable
(
false
);
m_toolbar
->
setToolButtonStyle
(
Qt
::
ToolButtonIconOnly
);
m_toolbar
->
setContextMenuPolicy
(
Qt
::
NoContextMenu
);
m_toolbar
->
layout
()
->
setContentsMargins
(
0
,
0
,
0
,
0
);
// ensure reasonable icons sizes, like e.g. the quick-open and co. icons
// the normal toolbar sizes are TOO large, e.g. for scaled stuff even more!
...
...
addons/project/gitwidget.cpp
View file @
c7d8f68e
...
...
@@ -219,6 +219,7 @@ GitWidget::GitWidget(KateProject *project, KTextEditor::MainWindow *mainWindow,
});
m_commitBtn
=
toolButton
(
QStringLiteral
(
"vcs-commit"
),
QString
(),
i18n
(
"Commit"
),
Qt
::
ToolButtonTextBesideIcon
);
m_commitBtn
->
setMinimumHeight
(
16
);
m_pushBtn
=
toolButton
(
QStringLiteral
(
"vcs-push"
),
i18n
(
"Git push"
));
connect
(
m_pushBtn
,
&
QToolButton
::
clicked
,
this
,
[
this
]()
{
...
...
@@ -305,6 +306,7 @@ GitWidget::GitWidget(KateProject *project, KTextEditor::MainWindow *mainWindow,
// This Widget's layout
setLayout
(
new
QVBoxLayout
);
this
->
layout
()
->
addWidget
(
m_stackWidget
);
this
->
layout
()
->
setContentsMargins
(
0
,
0
,
0
,
0
);
}
GitWidget
::~
GitWidget
()
...
...
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