summaryrefslogtreecommitdiffstats
path: root/src/testlib/qtestelement.h
blob: f5d74661be456bf4a88e323bd9dfda521ff4cdf1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#ifndef QTESTELEMENT_H
#define QTESTELEMENT_H

#include "qtestcoreelement.h"

QT_BEGIN_NAMESPACE

class QTestElement: public QTestCoreElement<QTestElement>
{
    public:
        QTestElement(int type = -1);
        ~QTestElement();

        bool addLogElement(QTestElement *element);
        QTestElement *childElements() const;

        const QTestElement *parentElement() const;
        void setParent(const QTestElement *p);

    private:
        QTestElement *listOfChildren;
        const QTestElement * parent;

};

QT_END_NAMESPACE

#endif