1 | // Copyright (C) 2020 The Qt Company Ltd. |
---|---|
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only |
3 | |
4 | #ifndef QFILTERNAMEDIALOG_H |
5 | #define QFILTERNAMEDIALOG_H |
6 | |
7 | // |
8 | // W A R N I N G |
9 | // ------------- |
10 | // |
11 | // This file is not part of the Qt API. It exists for the convenience |
12 | // of the help generator tools. This header file may change from version |
13 | // to version without notice, or even be removed. |
14 | // |
15 | // We mean it. |
16 | // |
17 | |
18 | #include "ui_qfilternamedialog.h" |
19 | |
20 | #include <QtWidgets/qdialog.h> |
21 | |
22 | QT_BEGIN_NAMESPACE |
23 | |
24 | class QFilterNameDialog : public QDialog |
25 | { |
26 | Q_OBJECT |
27 | |
28 | public: |
29 | QFilterNameDialog(QWidget *parent = nullptr); |
30 | |
31 | void setFilterName(const QString &filter); |
32 | QString filterName() const { return m_ui.lineEdit->text(); } |
33 | |
34 | private slots: |
35 | void updateOkButton(); |
36 | |
37 | private: |
38 | Ui::FilterNameDialogClass m_ui; |
39 | }; |
40 | |
41 | QT_END_NAMESPACE |
42 | |
43 | #endif // QFILTERNAMEDIALOG_H |
44 |