From 7a8cc91eec3fe5c191637d812ea73f46cfbe037b Mon Sep 17 00:00:00 2001 From: Rasmus Karlsson Date: Tue, 26 Dec 2017 12:30:32 +0100 Subject: [PATCH] Move HighlightState to common.hpp --- src/common.hpp | 6 ++++++ src/widgets/helper/notebooktab.hpp | 7 +------ 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/common.hpp b/src/common.hpp index 58748e166..62303fc31 100644 --- a/src/common.hpp +++ b/src/common.hpp @@ -6,6 +6,12 @@ namespace chatterino { +enum class HighlightState { + None, + Highlighted, + NewMessage, +}; + inline QString qS(const std::string &string) { return QString::fromStdString(string); diff --git a/src/widgets/helper/notebooktab.hpp b/src/widgets/helper/notebooktab.hpp index 36e397dc2..e41e32bd9 100644 --- a/src/widgets/helper/notebooktab.hpp +++ b/src/widgets/helper/notebooktab.hpp @@ -1,5 +1,6 @@ #pragma once +#include "common.hpp" #include "widgets/basewidget.hpp" #include @@ -23,12 +24,6 @@ class NotebookTab : public BaseWidget std::string settingRoot; public: - enum class HighlightState { - None, - Highlighted, - NewMessage, - }; - explicit NotebookTab(Notebook *_notebook, const std::string &settingPrefix); void calcSize();