Commit 269a63bb authored by Waqar Ahmed's avatar Waqar Ahmed Committed by Christoph Cullmann
Browse files

Use tab close icon

parent 2bd08163
......@@ -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);
}
}
......
Markdown is supported
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