mirror of
				https://github.com/dolphin-emu/dolphin.git
				synced 2025-10-25 01:19:19 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			27 lines
		
	
	
	
		
			472 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
	
		
			472 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| // 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;
 | |
| };
 |