mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
Move HighlightState to common.hpp
This commit is contained in:
parent
ebd682730a
commit
7a8cc91eec
2 changed files with 7 additions and 6 deletions
|
@ -6,6 +6,12 @@
|
||||||
|
|
||||||
namespace chatterino {
|
namespace chatterino {
|
||||||
|
|
||||||
|
enum class HighlightState {
|
||||||
|
None,
|
||||||
|
Highlighted,
|
||||||
|
NewMessage,
|
||||||
|
};
|
||||||
|
|
||||||
inline QString qS(const std::string &string)
|
inline QString qS(const std::string &string)
|
||||||
{
|
{
|
||||||
return QString::fromStdString(string);
|
return QString::fromStdString(string);
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#include "common.hpp"
|
||||||
#include "widgets/basewidget.hpp"
|
#include "widgets/basewidget.hpp"
|
||||||
|
|
||||||
#include <QMenu>
|
#include <QMenu>
|
||||||
|
@ -23,12 +24,6 @@ class NotebookTab : public BaseWidget
|
||||||
std::string settingRoot;
|
std::string settingRoot;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
enum class HighlightState {
|
|
||||||
None,
|
|
||||||
Highlighted,
|
|
||||||
NewMessage,
|
|
||||||
};
|
|
||||||
|
|
||||||
explicit NotebookTab(Notebook *_notebook, const std::string &settingPrefix);
|
explicit NotebookTab(Notebook *_notebook, const std::string &settingPrefix);
|
||||||
|
|
||||||
void calcSize();
|
void calcSize();
|
||||||
|
|
Loading…
Reference in a new issue