diff options
Diffstat (limited to 'sigmod/test/TestSigmodObject.cpp')
-rw-r--r-- | sigmod/test/TestSigmodObject.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/sigmod/test/TestSigmodObject.cpp b/sigmod/test/TestSigmodObject.cpp index 6ea81d7f..07bc1500 100644 --- a/sigmod/test/TestSigmodObject.cpp +++ b/sigmod/test/TestSigmodObject.cpp @@ -23,9 +23,9 @@ void TestSigmodObject::makeConnections(Sigmod::Object* object) { -// connect(object, SIGNAL(message(QString)), this, SLOT(message(QString))); -// connect(object, SIGNAL(warning(QString)), this, SLOT(warning(QString))); -// connect(object, SIGNAL(error(QString)), this, SLOT(error(QString))); + connect(object, SIGNAL(warning(QString)), this, SLOT(warning(QString))); + connect(object, SIGNAL(error(QString)), this, SLOT(error(QString))); + connect(object, SIGNAL(changed()), this, SLOT(changed())); } void TestSigmodObject::closeConnections(Sigmod::Object* object) @@ -33,11 +33,6 @@ void TestSigmodObject::closeConnections(Sigmod::Object* object) disconnect(object, 0, this, 0); } -void TestSigmodObject::message(const QString& message) -{ - m_messages.append(message); -} - void TestSigmodObject::warning(const QString& warning) { m_warnings.append(warning); @@ -48,6 +43,11 @@ void TestSigmodObject::error(const QString& error) m_errors.append(error); } +void TestSigmodObject::changed() +{ + ++m_changedCount; +} + void TestSigmodObject::initTestCase() { m_sigmod = new Sigmod::Sigmod; @@ -64,7 +64,7 @@ void TestSigmodObject::init() void TestSigmodObject::cleanup() { - m_messages.clear(); m_warnings.clear(); m_errors.clear(); + m_changedCount = 0; } |