blob: 0a8c15d05ae55e3c74bbed0b40de6aa4d273c6ff (
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
|
// Copyright (C) 2018 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
#ifndef ENCODINGDIALOG_H
#define ENCODINGDIALOG_H
#include <QDialog>
QT_FORWARD_DECLARE_CLASS(QLineEdit)
class EncodingDialog : public QDialog
{
Q_OBJECT
public:
explicit EncodingDialog(QWidget *parent = nullptr);
enum Encoding { Unicode, Utf8, Utf16, Utf32, Latin1, EncodingCount };
private slots:
void textChanged(const QString &t);
private:
QLineEdit *m_lineEdits[EncodingCount];
};
#endif // ENCODINGDIALOG_H
|