mirror of
				https://github.com/saitohirga/WSJT-X.git
				synced 2025-10-25 10:00:23 -04:00 
			
		
		
		
	This change incorporates a reorganization of the GUI code with widgets, validators, models, and item delegates being moved to sub-directories. Relax the requirements of the ForeignKeyDelegate and related CandidateKeyFilter classes to allow them to work with constant model pointers for both referenced and referencing models.
		
			
				
	
	
		
			34 lines
		
	
	
		
			600 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			34 lines
		
	
	
		
			600 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| #ifndef COLORHIGHLIGHTING_H_
 | |
| #define COLORHIGHLIGHTING_H_
 | |
| 
 | |
| #include <QDialog>
 | |
| #include <QScopedPointer>
 | |
| 
 | |
| class QSettings;
 | |
| class DecodeHighlightingModel;
 | |
| 
 | |
| namespace Ui {
 | |
|   class ColorHighlighting;
 | |
| }
 | |
| 
 | |
| class ColorHighlighting final
 | |
| : public QDialog
 | |
| {
 | |
|   Q_OBJECT;
 | |
| 
 | |
|  public:
 | |
|   explicit ColorHighlighting(QSettings *, DecodeHighlightingModel const&, QWidget * parent = nullptr);
 | |
|   ~ColorHighlighting ();
 | |
| 
 | |
|   Q_SLOT void set_items (DecodeHighlightingModel const&);
 | |
| 
 | |
|  private:
 | |
|   void read_settings ();
 | |
|   void write_settings ();
 | |
| 
 | |
|   QScopedPointer<Ui::ColorHighlighting> ui;
 | |
|   QSettings * settings_;
 | |
| };
 | |
| 
 | |
| #endif
 |