Changeset View
Changeset View
Standalone View
Standalone View
app/mainwindow.h
Show All 24 Lines | |||||
25 | #include <KParts/MainWindow> | 25 | #include <KParts/MainWindow> | ||
26 | #include <KParts/OpenUrlArguments> | 26 | #include <KParts/OpenUrlArguments> | ||
27 | 27 | | |||
28 | namespace KParts | 28 | namespace KParts | ||
29 | { | 29 | { | ||
30 | class ReadWritePart; | 30 | class ReadWritePart; | ||
31 | } | 31 | } | ||
32 | 32 | | |||
33 | class KRecentFilesAction; | 33 | class KRecentFilesMenu; | ||
34 | 34 | | |||
35 | class MainWindow: public KParts::MainWindow | 35 | class MainWindow: public KParts::MainWindow | ||
36 | { | 36 | { | ||
37 | Q_OBJECT | 37 | Q_OBJECT | ||
38 | public: | 38 | public: | ||
39 | explicit MainWindow(QWidget *parent = nullptr); | 39 | explicit MainWindow(QWidget *parent = nullptr); | ||
40 | ~MainWindow() override; | 40 | ~MainWindow() override; | ||
41 | bool loadPart(); | 41 | bool loadPart(); | ||
Show All 17 Lines | 54 | private Q_SLOTS: | |||
59 | void showSettings(); | 59 | void showSettings(); | ||
60 | void writeSettings(); | 60 | void writeSettings(); | ||
61 | void addPartUrl(); | 61 | void addPartUrl(); | ||
62 | 62 | | |||
63 | private: | 63 | private: | ||
64 | void setupActions(); | 64 | void setupActions(); | ||
65 | 65 | | |||
66 | KParts::ReadWritePart *m_part; | 66 | KParts::ReadWritePart *m_part; | ||
67 | KRecentFilesAction *m_recentFilesAction; | 67 | KRecentFilesMenu *m_recentFilesAction; | ||
meven: Rename the variable as well ? | |||||
68 | QAction *m_openAction; | 68 | QAction *m_openAction; | ||
69 | QAction *m_newAction; | 69 | QAction *m_newAction; | ||
70 | KParts::OpenUrlArguments m_openArgs; | 70 | KParts::OpenUrlArguments m_openArgs; | ||
71 | }; | 71 | }; | ||
72 | 72 | | |||
73 | #endif // MAINWINDOW_H | 73 | #endif // MAINWINDOW_H |
Rename the variable as well ?