mirror of
https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git
synced 2024-12-25 23:51:33 +08:00
Changed stylesheet to highlight the active tab to improve debugging
This commit is contained in:
parent
b3b6d20d96
commit
0e85431405
@ -257,6 +257,10 @@ void CDockAreaTabBar::insertTab(int Index, CDockWidgetTab* Tab)
|
|||||||
d->TabsLayout->insertWidget(Index, Tab);
|
d->TabsLayout->insertWidget(Index, Tab);
|
||||||
connect(Tab, SIGNAL(clicked()), this, SLOT(onTabClicked()));
|
connect(Tab, SIGNAL(clicked()), this, SLOT(onTabClicked()));
|
||||||
d->MenuOutdated = true;
|
d->MenuOutdated = true;
|
||||||
|
if (Index <= d->CurrentIndex)
|
||||||
|
{
|
||||||
|
d->CurrentIndex++;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -73,7 +73,9 @@ public:
|
|||||||
virtual ~CDockAreaTabBar();
|
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);
|
void insertTab(int Index, CDockWidgetTab* Tab);
|
||||||
|
|
||||||
|
@ -36,7 +36,8 @@ ads--CDockWidgetTab
|
|||||||
|
|
||||||
ads--CDockWidgetTab[activeTab="true"]
|
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
|
ads--CDockWidgetTab QLabel
|
||||||
|
Loading…
Reference in New Issue
Block a user