Small fixes for porting recent changes to windows

This commit is contained in:
Jean-Francois Dockes
2016-04-14 14:24:56 +02:00
parent ce8b68dec9
commit 021c142cee
5 changed files with 47 additions and 11 deletions
+3
View File
@@ -45,6 +45,7 @@ HEADERS += \
systray.h \
uiprefs_w.h \
viewaction_w.h \
webcache.h
SOURCES += \
advsearch_w.cpp \
@@ -79,6 +80,7 @@ SOURCES += \
systray.cpp \
uiprefs_w.cpp \
viewaction_w.cpp \
webcache.cpp \
widgets/qxtconfirmationmessage.cpp \
xmltosd.cpp
@@ -99,6 +101,7 @@ FORMS = \
ssearchb.ui \
uiprefs.ui \
viewaction.ui \
webcache.ui
RESOURCES = recoll.qrc
+8 -4
View File
@@ -21,6 +21,10 @@
#include MEMORY_INCLUDE
#include UNORDERED_MAP_INCLUDE
#ifdef _WIN32
#define USING_STD_REGEX
#endif
#ifndef USING_STD_REGEX
#include <sys/types.h>
#include <regex.h>
@@ -99,7 +103,7 @@ void WebcacheModel::reload()
break;
}
}
emit dataChanged(createIndex(0,0,0), createIndex(1, m->all.size(),0));
emit dataChanged(createIndex(0,0), createIndex(1, m->all.size()));
}
bool WebcacheModel::deleteIdx(unsigned int idx)
@@ -194,9 +198,9 @@ void WebcacheModel::setSearchFilter(const QString& _txt)
return;
}
#else
basic_regex exp;
basic_regex<char> exp;
try {
exp = basic_regexp(txt, std::regex_constants::nosubs |
exp = basic_regex<char>(txt, std::regex_constants::nosubs |
std::regex_constants::extended);
} catch(...) {
return;
@@ -212,7 +216,7 @@ void WebcacheModel::setSearchFilter(const QString& _txt)
// m->all[i].url.c_str();
}
}
emit dataChanged(createIndex(0,0,0), createIndex(1, m->all.size(),0));
emit dataChanged(createIndex(0,0), createIndex(1, m->all.size()));
}
static const int ROWHEIGHTPAD = 2;