Changed stylesheet to highlight the active tab to improve debugging

This commit is contained in:
Uwe Kindler 2018-10-11 09:21:01 +02:00
parent b3b6d20d96
commit 0e85431405
3 changed files with 9 additions and 2 deletions

View File

@ -257,6 +257,10 @@ void CDockAreaTabBar::insertTab(int Index, CDockWidgetTab* Tab)
d->TabsLayout->insertWidget(Index, Tab);
connect(Tab, SIGNAL(clicked()), this, SLOT(onTabClicked()));
d->MenuOutdated = true;
if (Index <= d->CurrentIndex)
{
d->CurrentIndex++;
}
}

View File

@ -73,7 +73,9 @@ public:
virtual ~CDockAreaTabBar();
/**
* Inserts the given dock widget tab at the given position
* Inserts the given dock widget tab at the given position.
* Inserting a new tab at an index less than or equal to the current index
* will increment the current index, but keep the current tab.
*/
void insertTab(int Index, CDockWidgetTab* Tab);

View File

@ -36,7 +36,8 @@ ads--CDockWidgetTab
ads--CDockWidgetTab[activeTab="true"]
{
background: qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:0.5, stop:0 palette(window), stop:1 palette(light));
/*background: qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:0.5, stop:0 palette(window), stop:1 palette(light));*/
background: palette(highlight);
}
ads--CDockWidgetTab QLabel