diff options
Diffstat (limited to 'examples/widgets/widgets/shortcuteditor/shortcuteditorwidget.h')
-rw-r--r-- | examples/widgets/widgets/shortcuteditor/shortcuteditorwidget.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/examples/widgets/widgets/shortcuteditor/shortcuteditorwidget.h b/examples/widgets/widgets/shortcuteditor/shortcuteditorwidget.h new file mode 100644 index 0000000000..44735e65e2 --- /dev/null +++ b/examples/widgets/widgets/shortcuteditor/shortcuteditorwidget.h @@ -0,0 +1,32 @@ +// Copyright (C) 2022 Laszlo Papp <lpapp@kde.org> +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause + +#ifndef SHORTCUTEDITORWIDGET_H +#define SHORTCUTEDITORWIDGET_H + +#include <QWidget> + +class ShortcutEditorDelegate; +class ShortcutEditorModel; + +QT_BEGIN_NAMESPACE +class QTreeView; +QT_END_NAMESPACE + +//! [0] +class ShortcutEditorWidget : public QWidget +{ + Q_OBJECT + +public: + explicit ShortcutEditorWidget(QWidget *parent = nullptr); + ~ShortcutEditorWidget() override = default; + +private: + ShortcutEditorDelegate *m_delegate; + ShortcutEditorModel *m_model; + QTreeView *m_view; +}; +//! [0] + +#endif |