projects
/
web/konrad/chester.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
8c821d82b8b72d006e7aef617c999370a4322f8d
[web/konrad/chester.git]
/
tests
/
dptrtest.h
1
#include "../../src/dptr.h"
2
3
#include <QString>
4
5
class ClassWithDptr
6
{
7
DECLARE_DPTR(d)
8
public:
9
QString toString()const;
10
int num()const;
11
void setNum(int);
12
};
13
14
class ClassWithSDptr
15
{
16
DECLARE_SHARED_DPTR(d)
17
public:
18
QString toString()const;
19
int num()const;
20
void setNum(int);
21
};
22
23
24
#include <QObject>
25
26
class DPtrTest:public QObject
27
{
28
Q_OBJECT
29
private slots:
30
void simpleDP();
31
void sharedDP();
32
};