comparison logparser.cpp @ 108:8ae3b44c0073

* Enable/disable update and merge actions depending on whether default update and merge will actually do anything
author Chris Cannam
date Thu, 25 Nov 2010 21:08:17 +0000
parents 10eb97683aa9
children 8fd71f570884
comparison
equal deleted inserted replaced
107:fdca34c989c0 108:8ae3b44c0073
34 } 34 }
35 35
36 LogList LogParser::parse() 36 LogList LogParser::parse()
37 { 37 {
38 LogList results; 38 LogList results;
39 QRegExp re(QString("^(\\w+)\\s*%1\\s+(.*)$").arg(m_sep)); 39 QRegExp re(QString("^(\\w+)\\s*%1\\s+([^\\s].*)$").arg(m_sep));
40 QStringList entries = split(); 40 QStringList entries = split();
41 foreach (QString entry, entries) { 41 foreach (QString entry, entries) {
42 LogEntry dictionary; 42 LogEntry dictionary;
43 QStringList lines = entry.split('\n'); 43 QStringList lines = entry.split('\n');
44 foreach (QString line, lines) { 44 foreach (QString line, lines) {