Switch to unified view

a/src/qtgui/advshist.cpp b/src/qtgui/advshist.cpp
...
...
27
using namespace Rcl;
27
using namespace Rcl;
28
28
29
class SDHXMLHandler : public QXmlDefaultHandler {
29
class SDHXMLHandler : public QXmlDefaultHandler {
30
public:
30
public:
31
    SDHXMLHandler()
31
    SDHXMLHandler()
32
  : slack(0)
33
    {
32
    {
33
  resetTemps();
34
    }
34
    }
35
    bool startElement(const QString & /* namespaceURI */,
35
    bool startElement(const QString & /* namespaceURI */,
36
              const QString & /* localName */,
36
              const QString & /* localName */,
37
              const QString &qName,
37
              const QString &qName,
38
              const QXmlAttributes &attributes);
38
              const QXmlAttributes &attributes);
...
...
163
    for (unsigned int i = 0; i < vt.size(); i++) 
163
    for (unsigned int i = 0; i < vt.size(); i++) 
164
        sd->remFiletype(vt[i]);
164
        sd->remFiletype(vt[i]);
165
    } else if (qName == "YD") {
165
    } else if (qName == "YD") {
166
    string d;
166
    string d;
167
    base64_decode((const char*)currentText.trimmed().toAscii(), d);
167
    base64_decode((const char*)currentText.trimmed().toAscii(), d);
168
  sd->addDirSpec(d);
168
  sd->addClause(new SearchDataClausePath(d));
169
    } else if (qName == "ND") {
169
    } else if (qName == "ND") {
170
    string d;
170
    string d;
171
    base64_decode((const char*)currentText.trimmed().toAscii(), d);
171
    base64_decode((const char*)currentText.trimmed().toAscii(), d);
172
  sd->addDirSpec(d, true);
172
  sd->addClause(new SearchDataClausePath(d, true));
173
    } else if (qName == "SD") {
173
    } else if (qName == "SD") {
174
    // Closing current search descriptor. Finishing touches...
174
    // Closing current search descriptor. Finishing touches...
175
    if (hasdates)
175
    if (hasdates)
176
        sd->setDateSpan(&di);
176
        sd->setDateSpan(&di);
177
    resetTemps();
177
    resetTemps();