1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-14 02:52:12 +01:00

TabManager: Cleanup and fix.

This commit is contained in:
Razi Alavizadeh 2017-10-03 14:41:43 +03:30
parent 9cb5f106ef
commit b9a9c24060
2 changed files with 0 additions and 6 deletions

View File

@ -112,11 +112,6 @@ void TabManagerDelegate::paint(QPainter* painter, const QStyleOptionViewItem &op
if (!opt.text.isEmpty()) { if (!opt.text.isEmpty()) {
const QString filterText = property("filterText").toString(); 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) { if (opt.state & QStyle::State_Selected) {
painter->setPen(opt.palette.color(cg, QPalette::HighlightedText)); painter->setPen(opt.palette.color(cg, QPalette::HighlightedText));
} else { } else {

View File

@ -612,7 +612,6 @@ QTreeWidgetItem* TabManagerWidget::groupByDomainName(bool useHostName)
// getWindow() instance is closing // getWindow() instance is closing
return nullptr; return nullptr;
} }
windows.move(currentWindowIdx, 0);
QMap<QString, QTreeWidgetItem*> tabsGroupedByDomain; QMap<QString, QTreeWidgetItem*> tabsGroupedByDomain;