Tabs now highlight when a highlight is received

Work on #88
This commit is contained in:
Rasmus Karlsson
2017-12-26 12:32:24 +01:00
parent 7a8cc91eec
commit 13b39e374b
8 changed files with 29 additions and 6 deletions
+6
View File
@@ -107,11 +107,17 @@ void NotebookTab::setSelected(bool value)
{
this->selected = value;
this->highlightState = HighlightState::None;
this->update();
}
void NotebookTab::setHighlightState(HighlightState newHighlightStyle)
{
if (this->isSelected()) {
return;
}
this->highlightState = newHighlightStyle;
this->update();