summaryrefslogtreecommitdiff
path: root/widgets/colorhighlighting.h
blob: 69e0391c6fe5f9b5d5e3172ff3988231f371c391 (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
28
29
30
31
32
33
#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