summaryrefslogtreecommitdiff
path: root/examples/qtobject/testobject.cpp
blob: f13c5ab2e2bc6d04e5f86c4dd2e7f50e19e1d53b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include "testobject.h"

TestObject::TestObject(QObject *parent) :
    QObject(parent)
  , p1("Hello World")
{
    connect(&timer, SIGNAL(timeout()), this, SIGNAL(timeout()));
}

QString TestObject::debugMe(const QString& data)
{
    qWarning() << data;
    return "OK";
}

void TestObject::setProp1(const QString& s)
{
    p1 = s;
    qWarning() << __func__ << p1;
}