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
33a4a42a
Commit
33a4a42a
authored
Sep 11, 2022
by
Waqar Ahmed
Browse files
Documents: Dont show close for disabled item
parent
71f60fd3
Changes
1
Hide whitespace changes
Inline
Side-by-side
addons/filetree/katefiletree.cpp
View file @
33a4a42a
...
...
@@ -76,7 +76,7 @@ public:
return
;
}
if
(
index
.
column
()
==
1
&&
option
.
state
&
QStyle
::
State_MouseOver
)
{
if
(
index
.
column
()
==
1
&&
option
.
state
&
QStyle
::
State_Enabled
&&
option
.
state
&
QStyle
::
State_MouseOver
)
{
const
QIcon
icon
=
QIcon
::
fromTheme
(
QStringLiteral
(
"tab-close"
));
const
int
w
=
option
.
decorationSize
.
width
();
QRect
iconRect
(
option
.
rect
.
right
()
-
w
,
option
.
rect
.
top
(),
w
,
option
.
rect
.
height
());
...
...
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