File tree Expand file tree Collapse file tree 4 files changed +14
-13
lines changed
src/plugins/grass/qtermwidget Expand file tree Collapse file tree 4 files changed +14
-13
lines changed Original file line number Diff line number Diff line change 25
25
26
26
#include < QObject>
27
27
28
- struct KPtyPrivate ;
28
+ class KPtyPrivate ;
29
29
struct termios ;
30
30
31
31
/* *
32
32
* Provides primitives for opening & closing a pseudo TTY pair, assigning the
33
33
* controlling TTY, utmp registration and setting various terminal attributes.
34
34
*/
35
35
class KPty {
36
- Q_DECLARE_PRIVATE (KPty)
37
-
38
- public:
39
-
36
+ public:
40
37
/* *
41
38
* Constructor
42
39
*/
@@ -175,7 +172,7 @@ class KPty {
175
172
*/
176
173
int slaveFd () const ;
177
174
178
- protected:
175
+ protected:
179
176
/* *
180
177
* @internal
181
178
*/
@@ -185,6 +182,9 @@ class KPty {
185
182
* @internal
186
183
*/
187
184
KPtyPrivate * const d_ptr;
185
+
186
+ private:
187
+ Q_DECLARE_PRIVATE (KPty)
188
188
};
189
189
190
190
#endif
Original file line number Diff line number Diff line change 27
27
28
28
#include < QByteArray>
29
29
30
- struct KPtyPrivate {
31
-
30
+ class KPtyPrivate {
31
+ public:
32
32
Q_DECLARE_PUBLIC (KPty)
33
33
34
34
KPtyPrivate (KPty* parent);
Original file line number Diff line number Diff line change 35
35
36
36
#define KMAXINT ((int )(~0U >> 1 ))
37
37
38
- struct KPtyDevicePrivate ;
38
+ class KPtyDevicePrivate ;
39
39
class QSocketNotifier ;
40
40
41
41
#define Q_DECLARE_PRIVATE_MI (Class, SuperClass ) \
@@ -332,8 +332,8 @@ class KRingBuffer
332
332
int totalSize;
333
333
};
334
334
335
- struct KPtyDevicePrivate : public KPtyPrivate {
336
-
335
+ class KPtyDevicePrivate : public KPtyPrivate {
336
+ public:
337
337
Q_DECLARE_PUBLIC (KPtyDevice)
338
338
339
339
KPtyDevicePrivate (KPty* parent) :
Original file line number Diff line number Diff line change 37
37
38
38
class KPtyDevice ;
39
39
40
- struct KPtyProcessPrivate ;
40
+ class KPtyProcessPrivate ;
41
41
42
42
/* *
43
43
* This class extends KProcess by support for PTYs (pseudo TTYs).
@@ -155,7 +155,8 @@ class KPtyProcess : public KProcess
155
155
// private data //
156
156
// ////////////////
157
157
158
- struct KPtyProcessPrivate : KProcessPrivate {
158
+ class KPtyProcessPrivate : public KProcessPrivate {
159
+ public:
159
160
KPtyProcessPrivate () :
160
161
ptyChannels (KPtyProcess::NoChannels),
161
162
addUtmp (false )
You can’t perform that action at this time.
0 commit comments