mirror of
https://invent.kde.org/network/falkon.git
synced 2024-11-11 01:22:10 +01:00
TabManager: Cleanup and fix.
This commit is contained in:
parent
9cb5f106ef
commit
b9a9c24060
|
@ -112,11 +112,6 @@ void TabManagerDelegate::paint(QPainter* painter, const QStyleOptionViewItem &op
|
|||
if (!opt.text.isEmpty()) {
|
||||
const QString filterText = property("filterText").toString();
|
||||
|
||||
QPalette::ColorGroup cg = opt.state & QStyle::State_Enabled
|
||||
? QPalette::Normal : QPalette::Disabled;
|
||||
if (cg == QPalette::Normal && !(opt.state & QStyle::State_Active))
|
||||
cg = QPalette::Inactive;
|
||||
|
||||
if (opt.state & QStyle::State_Selected) {
|
||||
painter->setPen(opt.palette.color(cg, QPalette::HighlightedText));
|
||||
} else {
|
||||
|
|
|
@ -612,7 +612,6 @@ QTreeWidgetItem* TabManagerWidget::groupByDomainName(bool useHostName)
|
|||
// getWindow() instance is closing
|
||||
return nullptr;
|
||||
}
|
||||
windows.move(currentWindowIdx, 0);
|
||||
|
||||
QMap<QString, QTreeWidgetItem*> tabsGroupedByDomain;
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user