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
269a63bb
Commit
269a63bb
authored
Mar 02, 2021
by
Waqar Ahmed
Committed by
Christoph Cullmann
Mar 12, 2021
Browse files
Use tab close icon
parent
2bd08163
Changes
1
Hide whitespace changes
Inline
Side-by-side
addons/filetree/katefiletree.cpp
View file @
269a63bb
...
...
@@ -56,10 +56,9 @@ public:
auto
doc
=
index
.
data
(
KateFileTreeModel
::
DocumentRole
).
value
<
KTextEditor
::
Document
*>
();
if
(
doc
&&
index
.
column
()
==
1
&&
option
.
state
&
QStyle
::
State_MouseOver
)
{
const
QIcon
icon
=
QIcon
::
fromTheme
(
QStringLiteral
(
"document-close"
));
QRect
iconRect
(
option
.
rect
.
right
()
-
option
.
rect
.
height
(),
option
.
rect
.
y
(),
option
.
rect
.
height
(),
option
.
rect
.
height
());
const
QIcon
icon
=
QIcon
::
fromTheme
(
QStringLiteral
(
"tab-close"
));
int
w
=
option
.
decorationSize
.
width
();
QRect
iconRect
(
option
.
rect
.
right
()
-
w
,
option
.
rect
.
top
(),
w
,
option
.
rect
.
height
());
icon
.
paint
(
painter
,
iconRect
,
Qt
::
AlignRight
|
Qt
::
AlignVCenter
);
}
}
...
...
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