mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Stop tool buttons from changing their styling unexpectedly. Fixes #2559
This commit is contained in:
@@ -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.
|
||||||
|
|||||||
Reference in New Issue
Block a user