Improve look of tabs when using a layout other than top (#3925)

This commit is contained in:
Daniel Sage
2022-11-08 16:46:43 -05:00
committed by GitHub
parent 7714237531
commit 1741ac7482
4 changed files with 151 additions and 35 deletions
+3
View File
@@ -2,6 +2,7 @@
#include "common/Common.hpp"
#include "widgets/BaseWidget.hpp"
#include "widgets/Notebook.hpp"
#include "widgets/helper/Button.hpp"
#include <QMenu>
@@ -40,6 +41,7 @@ public:
void setSelected(bool value);
void setInLastRow(bool value);
void setTabLocation(NotebookTabLocation location);
void setLive(bool isLive);
void setHighlightState(HighlightState style);
@@ -94,6 +96,7 @@ private:
bool mouseDownX_{};
bool isInLastRow_{};
int mouseWheelDelta_ = 0;
NotebookTabLocation tabLocation_ = NotebookTabLocation::Top;
HighlightState highlightState_ = HighlightState::None;
bool highlightEnabled_ = true;