summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets/signalmapper/filereader.h
blob: a3be0882990cf5f1190f1316062dacb0336ca160 (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
#ifndef FILEREADER_H
#define FILEREADER_H

#include <QTextEdit>
#include <QPushButton>
#include <QSignalMapper>

class FileReader : public QWidget
{
    Q_OBJECT

public:
    FileReader(QWidget *parent=0);
    void readFromFile(QString filename);

public slots:
    void readFile(const QString &);

private:
    QTextEdit *textEdit;
    QPushButton *taxFileButton;
    QPushButton *accountFileButton;
    QPushButton *reportFileButton;
    QSignalMapper *signalMapper;
};

#endif