1 /*
2     SPDX-FileCopyrightText: 2009 Volker Krause <vkrause@kde.org>
3 
4     SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6 
7 #pragma once
8 
9 #include "page.h"
10 #include <QStandardItemModel>
11 
12 #include "ui_typepage.h"
13 class QSortFilterProxyModel;
14 class TypePage : public Page
15 {
16     Q_OBJECT
17 public:
18     explicit TypePage(KAssistantDialog *parent = nullptr);
19 
20     void leavePageNext() override;
21     QTreeView *treeview() const;
22 
23 Q_SIGNALS:
24     void ghnsWanted();
25 
26 private:
27     void selectionChanged();
28     void slotTextChanged(const QString &text);
29 
30     Ui::TypePage ui;
31     QStandardItemModel *m_model = nullptr;
32     QSortFilterProxyModel *mProxy = nullptr;
33 };
34 
35