1 | /* |
2 | * SPDX-FileCopyrightText: 2023 Kai Uwe Broulik <kde@broulik.de> |
3 | * |
4 | * SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL |
5 | */ |
6 | |
7 | #ifndef KOPENACTION_H |
8 | #define KOPENACTION_H |
9 | |
10 | #include <KToolBarPopupAction> |
11 | #include <kconfigwidgets_export.h> |
12 | |
13 | #include <memory> |
14 | |
15 | class KOpenActionPrivate; |
16 | |
17 | // TODO export only for for unittests? |
18 | class KCONFIGWIDGETS_EXPORT KOpenAction : public KToolBarPopupAction |
19 | { |
20 | Q_OBJECT |
21 | |
22 | public: |
23 | explicit KOpenAction(QObject *parent = nullptr); |
24 | KOpenAction(const QIcon &icon, const QString &text, QObject *parent); |
25 | ~KOpenAction() override; |
26 | |
27 | protected: |
28 | QWidget *createWidget(QWidget *parent) override; |
29 | |
30 | private: |
31 | std::unique_ptr<KOpenActionPrivate> const d; |
32 | }; |
33 | |
34 | #endif // KOPENACTION_H |
35 | |