Commit 33a4a42a authored by Waqar Ahmed's avatar Waqar Ahmed
Browse files

Documents: Dont show close for disabled item

parent 71f60fd3
......@@ -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());
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment