Changeset View
Changeset View
Standalone View
Standalone View
runners/kill/killrunner_config.h
1 | /* Copyright 2009 <Jan Gerrit Marker> <jangerrit@weiler-marker.com> | 1 | /* Copyright 2009 <Jan Gerrit Marker> <jangerrit@weiler-marker.com> | ||
---|---|---|---|---|---|
2 | * Copyright 2020 <Alexander Lohnau> <alexander.lohnau@gmx.de> | ||||
2 | * | 3 | * | ||
3 | * This library is free software; you can redistribute it and/or | 4 | * This library is free software; you can redistribute it and/or | ||
4 | * modify it under the terms of the GNU Lesser General Public | 5 | * modify it under the terms of the GNU Lesser General Public | ||
5 | * License as published by the Free Software Foundation; either | 6 | * License as published by the Free Software Foundation; either | ||
6 | * version 2.1 of the License, or (at your option) version 3, or any | 7 | * version 2.1 of the License, or (at your option) version 3, or any | ||
7 | * later version accepted by the membership of KDE e.V. (or its | 8 | * later version accepted by the membership of KDE e.V. (or its | ||
8 | * successor approved by the membership of KDE e.V.), which shall | 9 | * successor approved by the membership of KDE e.V.), which shall | ||
9 | * act as a proxy defined in Section 6 of version 3 of the license. | 10 | * act as a proxy defined in Section 6 of version 3 of the license. | ||
Show All 16 Lines | |||||
26 | #include <KCModule> | 27 | #include <KCModule> | ||
27 | //Qt | 28 | //Qt | ||
28 | 29 | | |||
29 | class KillRunnerConfigForm : public QWidget, public Ui::KillRunnerConfigUi | 30 | class KillRunnerConfigForm : public QWidget, public Ui::KillRunnerConfigUi | ||
30 | { | 31 | { | ||
31 | Q_OBJECT | 32 | Q_OBJECT | ||
32 | 33 | | |||
33 | public: | 34 | public: | ||
34 | explicit KillRunnerConfigForm(QWidget* parent); | 35 | explicit KillRunnerConfigForm(QWidget *parent); | ||
35 | }; | 36 | }; | ||
36 | 37 | | |||
37 | class KillRunnerConfig : public KCModule | 38 | class KillRunnerConfig : public KCModule | ||
38 | { | 39 | { | ||
39 | Q_OBJECT | 40 | Q_OBJECT | ||
40 | 41 | | |||
41 | public: | 42 | public: | ||
42 | explicit KillRunnerConfig(QWidget* parent = nullptr, const QVariantList& args = QVariantList()); | 43 | explicit KillRunnerConfig(QWidget *parent = nullptr, const QVariantList &args = QVariantList()); | ||
43 | 44 | | |||
44 | public Q_SLOTS: | 45 | public Q_SLOTS: | ||
45 | void save() override; | 46 | void save() override; | ||
46 | void load() override; | 47 | void load() override; | ||
47 | void defaults() override; | 48 | void defaults() override; | ||
48 | 49 | | |||
49 | private: | 50 | private: | ||
50 | KillRunnerConfigForm* m_ui; | 51 | KillRunnerConfigForm *m_ui; | ||
51 | }; | 52 | }; | ||
52 | #endif | 53 | #endif |