1
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:
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()) {
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 {

View File

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