Navigation Menu

Skip to content

Commit

Permalink
Added new record behavior to QtTesting.
Browse files Browse the repository at this point in the history
You can choose to flush the data after each action.
You can ask the file after or before the recording.

Modify the ctkXMLEventObserver to support the continuous flush.
  • Loading branch information
benjaminlong committed May 9, 2012
1 parent 3bc45aa commit d4ee01b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeExternals/QtTesting.cmake
Expand Up @@ -23,7 +23,7 @@ if(CTK_USE_QTTESTING)

if(NOT DEFINED QtTesting_DIR)

set(revision_tag ca08897251254b8f88b40c0ed9d57dfa3454a063)
set(revision_tag dac049b06724862583f6b64b2b038c0726bd2ba0)
if(${proj}_REVISION_TAG)
set(revision_tag ${${proj}_REVISION_TAG})
endif()
Expand Down
6 changes: 6 additions & 0 deletions Libs/QtTesting/ctkXMLEventObserver.cpp
Expand Up @@ -146,5 +146,11 @@ void ctkXMLEventObserver::onRecordEvent(const QString& widget,
this->XMLStream->writeAttribute("command", command);
this->XMLStream->writeAttribute("arguments", arguments);
this->XMLStream->writeEndElement();
if (this->Stream)
{
*this->Stream << this->XMLString;
}
this->XMLString = QString();
emit this->eventRecorded(widget, command, arguments);
}
}

0 comments on commit d4ee01b

Please sign in to comment.