Browse Source

Merge pull request #689 from finetjul/increment-qttesting

Fix compilation with Qt < 5.1.1
Julien Finet 8 years ago
parent
commit
d3cf5ccd15
1 changed files with 4 additions and 0 deletions
  1. 4 0
      Libs/QtTesting/ctkXMLEventSource.cpp

+ 4 - 0
Libs/QtTesting/ctkXMLEventSource.cpp

@@ -141,7 +141,11 @@ int ctkXMLEventSource::getNextEvent(QString& widget, QString& command,
   command = attributes.value("command").toString();
   arguments = attributes.value("arguments").toString();
   eventType = attributes.hasAttribute("eventType") ?
+#if QT_VERSION < 0x50101
+    this->XMLStream->attributes().value("eventType").toString().toInt() :
+#else
     this->XMLStream->attributes().value("eventType").toInt() :
+#endif
     pqEventTypes::ACTION_EVENT;
   return SUCCESS;
 }