Stop tool buttons from changing their styling unexpectedly. Fixes #2559

This commit is contained in:
Neel Patel
2017-07-17 10:45:16 +01:00
committed by Dave Page
parent 3f83780049
commit dcc74af87b

View File

@@ -522,9 +522,6 @@ DockTabBar::DockTabBar(DockTabWidget *tabWidget, QWidget *parent) :
// Insert new tab at specified index. // Insert new tab at specified index.
int DockTabBar::insertionIndexAt(const QPoint &pos) int DockTabBar::insertionIndexAt(const QPoint &pos)
{ {
#ifndef __APPLE__
this->setStyleSheet("background-color: #E8E8E8");
#endif
int index = count(); int index = count();
for (int i = 0; i < count(); ++i) for (int i = 0; i < count(); ++i)
{ {
@@ -635,9 +632,6 @@ void DockTabBar::mouseMoveEvent(QMouseEvent *event)
// Actual tab drag started. // Actual tab drag started.
void DockTabBar::dragEnterEvent(QDragEnterEvent *event) void DockTabBar::dragEnterEvent(QDragEnterEvent *event)
{ {
#ifndef __APPLE__
this->setStyleSheet("background-color: #84ACDD");
#endif
if (DockTabWidget::eventIsTabDrag(event)) if (DockTabWidget::eventIsTabDrag(event))
event->acceptProposedAction(); event->acceptProposedAction();
} }
@@ -646,9 +640,6 @@ void DockTabBar::dragEnterEvent(QDragEnterEvent *event)
void DockTabBar::dragLeaveEvent(QDragLeaveEvent * event) void DockTabBar::dragLeaveEvent(QDragLeaveEvent * event)
{ {
Q_UNUSED(event) Q_UNUSED(event)
#ifndef __APPLE__
this->setStyleSheet("background-color: #E8E8E8");
#endif
} }
// Drop event handler for tabbar. // Drop event handler for tabbar.