summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt/Config/GameConfigHighlighter.h
blob: b2c26f48cb4ca761fc071609ef03abd08ee5469e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// Copyright 2018 Dolphin Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later

#pragma once

#include <vector>

#include <QObject>

struct HighlightingRule;

class QTextBlock;
class QTextDocument;

class GameConfigHighlighter : public QObject
{
  Q_OBJECT

public:
  explicit GameConfigHighlighter(QTextDocument* parent);
  ~GameConfigHighlighter() override;

private:
  void HighlightBlock(const QTextBlock& block);

  std::vector<HighlightingRule> m_rules;
};