summaryrefslogtreecommitdiff
path: root/widgets/messageaveraging.h
blob: a5ed7b54dfa691a79f74d755bd3aa85fa4c7146c (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
34
// -*- Mode: C++ -*-
#ifndef MESSAGEAVERAGING_H_
#define MESSAGEAVERAGING_H_

#include <QWidget>

class QSettings;
class QFont;

namespace Ui {
  class MessageAveraging;
}

class MessageAveraging
  : public QWidget
{
  Q_OBJECT

public:
  explicit MessageAveraging(QSettings *, QFont const&, QWidget * parent = 0);
  ~MessageAveraging();
  void displayAvg(QString const&);
  void changeFont (QFont const&);

private:
  void read_settings ();
  void write_settings ();
  void setContentFont (QFont const&);
  QSettings * settings_;

  QScopedPointer<Ui::MessageAveraging> ui;
};

#endif