suppress qt deprecation warnings
This commit is contained in:
parent
5915dd6cea
commit
8f0d3cbac5
@ -354,7 +354,8 @@ void Preview::doSearch(const QString &_text, bool next, bool reverse,
|
||||
}
|
||||
Chrono chron;
|
||||
LOGDEB("Preview::doSearch: first find call\n");
|
||||
QTextDocument::FindFlags flags = 0;
|
||||
// FindFlags is a QFlags class with default constructor to empty.
|
||||
QTextDocument::FindFlags flags;
|
||||
if (reverse)
|
||||
flags |= QTextDocument::FindBackward;
|
||||
if (wordOnly)
|
||||
|
||||
@ -1080,7 +1080,12 @@ void ResList::onPopupJsDone(const QVariant &jr)
|
||||
{
|
||||
QString qs(jr.toString());
|
||||
LOGDEB("onPopupJsDone: parameter: " << qs2utf8s(qs) << "\n");
|
||||
QStringList qsl = qs.split("\n", QString::SkipEmptyParts);
|
||||
#if (QT_VERSION >= QT_VERSION_CHECK(5, 15, 0))
|
||||
auto skipflags = Qt::SkipEmptyParts;
|
||||
#else
|
||||
auto skipflags = QString::SkipEmptyParts;
|
||||
#endif
|
||||
QStringList qsl = qs.split("\n", skipflags);
|
||||
for (int i = 0 ; i < qsl.size(); i++) {
|
||||
int eq = qsl[i].indexOf("=");
|
||||
if (eq > 0) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user