diff --git a/src/widgets/notebooktab.cpp b/src/widgets/notebooktab.cpp index 353e694b0..af17173cb 100644 --- a/src/widgets/notebooktab.cpp +++ b/src/widgets/notebooktab.cpp @@ -9,8 +9,7 @@ namespace chatterino { namespace widgets { NotebookTab::NotebookTab(Notebook *_notebook) - : QWidget(_notebook) - , colorScheme(_notebook->colorScheme) + : BaseWidget(_notebook) , positionChangedAnimation(this, "pos") , notebook(_notebook) { diff --git a/src/widgets/notebooktab.hpp b/src/widgets/notebooktab.hpp index 1856509e9..36b06b49f 100644 --- a/src/widgets/notebooktab.hpp +++ b/src/widgets/notebooktab.hpp @@ -1,7 +1,8 @@ #pragma once +#include "widgets/basewidget.hpp" + #include -#include #include #include #include @@ -15,7 +16,7 @@ namespace widgets { class Notebook; class NotebookPage; -class NotebookTab : public QWidget +class NotebookTab : public BaseWidget { Q_OBJECT @@ -25,8 +26,6 @@ public: explicit NotebookTab(Notebook *_notebook); ~NotebookTab(); - ColorScheme &colorScheme; - void calcSize(); NotebookPage *page;