Changeset View
Changeset View
Standalone View
Standalone View
Modules/about-distro/src/Module.h
Show All 21 Lines | |||||
22 | #define MODULE_H | 22 | #define MODULE_H | ||
23 | 23 | | |||
24 | #include <KCModule> | 24 | #include <KCModule> | ||
25 | 25 | | |||
26 | namespace Ui { | 26 | namespace Ui { | ||
27 | class Module; | 27 | class Module; | ||
28 | } | 28 | } | ||
29 | 29 | | |||
30 | class QLabel; | ||||
31 | | ||||
30 | class Module : public KCModule | 32 | class Module : public KCModule | ||
31 | { | 33 | { | ||
32 | Q_OBJECT | 34 | Q_OBJECT | ||
33 | public: | 35 | public: | ||
34 | /** | 36 | /** | ||
35 | * Constructor. | 37 | * Constructor. | ||
36 | * | 38 | * | ||
37 | * @param parent Parent widget of the module | 39 | * @param parent Parent widget of the module | ||
Show All 21 Lines | |||||
59 | */ | 61 | */ | ||
60 | void defaults() override; | 62 | void defaults() override; | ||
61 | 63 | | |||
62 | private: | 64 | private: | ||
63 | void loadSoftware(); | 65 | void loadSoftware(); | ||
64 | void loadHardware(); | 66 | void loadHardware(); | ||
65 | 67 | | |||
66 | /** | 68 | /** | ||
69 | * Copies the software and hardware information to clipboard. | ||||
70 | */ | ||||
71 | void copyToClipboard(); | ||||
rkflx: Is this comment still accurate? | |||||
72 | | ||||
73 | QList<QPair<QLabel*, QLabel*> > labelsForClipboard; | ||||
dhaumann: For future: Please pretty much always prefer QVector over QList. | |||||
74 | | ||||
75 | /** | ||||
67 | * UI | 76 | * UI | ||
68 | */ | 77 | */ | ||
69 | Ui::Module *ui = nullptr; | 78 | Ui::Module *ui = nullptr; | ||
70 | 79 | | |||
71 | /** \returns Version of plasmashell or an empty string when none was found */ | 80 | /** \returns Version of plasmashell or an empty string when none was found */ | ||
72 | QString plasmaVersion() const; | 81 | QString plasmaVersion() const; | ||
73 | }; | 82 | }; | ||
74 | 83 | | |||
75 | #endif // MODULE_H | 84 | #endif // MODULE_H |
Is this comment still accurate?