1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 10:46:35 +01:00

VerticalTabs: Fix object names for close button

This commit is contained in:
David Rosca 2018-02-03 17:34:56 +01:00
parent ac9830381d
commit faec2d2b20
No known key found for this signature in database
GPG Key ID: EBC3FC294452C6D8

View File

@ -31,8 +31,6 @@
TabTreeCloseButton::TabTreeCloseButton(QWidget *parent)
: QAbstractButton(parent)
{
setObjectName(QSL("treeview_close_button"));
int width = style()->pixelMetric(QStyle::PM_TabCloseIndicatorWidth, nullptr, this);
int height = style()->pixelMetric(QStyle::PM_TabCloseIndicatorHeight, nullptr, this);
resize(width, height);
@ -98,7 +96,7 @@ TabTreeDelegate::TabTreeDelegate(TabTreeView *view)
// Needed to make it stylable the same way as real tabbar close button
QTabBar *tabBar = new QTabBar(m_view);
tabBar->setObjectName(QSL("treeview_tabbar"));
tabBar->setObjectName(QSL("tabtree_tabbar"));
tabBar->lower();
m_closeButton = new TabTreeCloseButton(tabBar);