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:
parent
9cb5f106ef
commit
b9a9c24060
|
@ -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 {
|
||||||
|
|
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user