summaryrefslogtreecommitdiffstats
path: root/sigmod/test/TestSigmodObject.cpp
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2008-12-24 03:51:33 -0500
committerBen Boeckel <MathStuf@gmail.com>2008-12-24 03:51:33 -0500
commitd2f2e4e22ba668a49b3a845abc89f4391fc1b170 (patch)
treeab9d8812ec686ac91fb2eea125caf9c97adb3849 /sigmod/test/TestSigmodObject.cpp
parentaff67ab422b5fa092fed852bd34274654492cc5b (diff)
downloadsigen-d2f2e4e22ba668a49b3a845abc89f4391fc1b170.tar.gz
sigen-d2f2e4e22ba668a49b3a845abc89f4391fc1b170.tar.xz
sigen-d2f2e4e22ba668a49b3a845abc89f4391fc1b170.zip
Fixed up base test class
Diffstat (limited to 'sigmod/test/TestSigmodObject.cpp')
-rw-r--r--sigmod/test/TestSigmodObject.cpp18
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;
}